FormatException: Input string was not in a correct format.-and fix

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/3/2012 12:22:20 PM
Gravatar
Total Posts 1

FormatException: Input string was not in a correct format.-and fix

After upgrading to the latest mojoportal and running the setup/default.aspx page successfully, my site would get a string format exception upon loading. I downloaded the source and when i debugged it i found that I had pages where the PublishMode column was set to null in both the mp_Modules and mp_Pages table. After i updated the null values to be 0, the problem was fixed. I wish i had saved the stack trace so that i could post it, but i didn't. I think a simple fix would be to change the column data type to INT NOT NULL DEFAULT 0 (for MS Sql Server anyways). I hope this helps.

You must sign in to post in the forums. This thread is closed to new posts.