Input string was not in a correct format.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/21/2009 2:19:37 PM
Gravatar
Total Posts 25

Input string was not in a correct format.

 I have successfully installed mojoportal on Godaddy. I plan to add a tutorial on the steps I took for other users if thats ok.

The question I have now is about an error I frequently get when changing the skin for the site as admin.

 

 

Any Ideas? Here is the error.

I'm using mysql since godaddy restricts mssql size to 200mb, but mysql size is subtracted from disk quota.

 

 

 

Server Error in '/mojo' Application.

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112
System.Int32.Parse(String s) +20
mojoPortal.Web.AdminUI.SiteSettingsPage.btnSave_Click(Object sender, EventArgs e) in SiteSettings.aspx.cs:785
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

 

 

 

 

Thanks, Joe

1/21/2009 2:37:02 PM
Gravatar
Total Posts 18439

Re: Input string was not in a correct format.

The site settings page could use a little better validation, I will look into improving it, it would be better to trap this error and give a good error message on the page.

I suspect you are inputing something invalid in a field that expects an integer. I don't really see how changing the skin can cause this error. I can create the error by inputing something invalid, but not otherwise.

Best,

Joe

1/21/2009 2:49:14 PM
Gravatar
Total Posts 25

Re: Input string was not in a correct format.

Ok. I will download the site and step through the code and see whats up.

I'll post the results for future usage.

 

 

Thanks, Joe

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