Error when adding new page

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
4/30/2010 12:53:25 PM
Koe
Gravatar
Total Posts 29

Error when adding new page

My website has run for some time and do not have problem, but today when I want to add a new page, an error come out. The error message is:

 

Server Error in '/' Application.
String was not recognized as a valid Boolean.
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: String was not recognized as a valid Boolean.

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: String was not recognized as a valid Boolean.]
System.Boolean.Parse(String value) +7663730
System.String.System.IConvertible.ToBoolean(IFormatProvider provider) +15
System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +7601248
System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) +4872946

[FormatException: Failed to convert parameter value from a String to a Boolean.]
System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) +4872143
System.Data.SqlClient.SqlParameter.GetCoercedValue() +32
System.Data.SqlClient.SqlParameter.Validate(Int32 index, Boolean isCommandProc) +100
System.Data.SqlClient.SqlCommand.SetUpRPCParameters(_SqlRPC rpc, Int32 startCount, Boolean inSchema, SqlParameterCollection parameters) +118
System.Data.SqlClient.SqlCommand.BuildRPC(Boolean inSchema, SqlParameterCollection parameters, _SqlRPC& rpc) +70
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteScalar() +139
mojoPortal.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +135
mojoPortal.Data.SqlParameterHelper.ExecuteScalar() +20
mojoPortal.Data.DBPageSettings.Create(Int32 siteId, Int32 parentId, String pageName, String pageTitle, String skin, Int32 pageOrder, String authorizedRoles, String editRoles, String draftEditRoles, String createChildPageRoles, Boolean requireSsl, Boolean allowBrowserCache, Boolean showBreadcrumbs, Boolean showChildPageBreadcrumbs, String pageKeyWords, String pageDescription, String pageEncoding, String additionalMetaTags, Boolean useUrl, String url, Boolean openInNewWindow, Boolean showChildPageMenu, Boolean hideMainMenu, Boolean includeInMenu, String menuImage, String changeFrequency, String siteMapPriority, Guid pageGuid, Guid parentGuid, Boolean hideAfterLogin, Guid siteGuid, String compiledMeta, DateTime compiledMetaUtc, Boolean includeInSiteMap, Boolean isClickable, Boolean showHomeCrumb, Boolean isPending, String canonicalOverride, Boolean includeInSearchMap, Boolean enableComments) +1622
mojoPortal.Business.PageSettings.Create() +723
mojoPortal.Business.PageSettings.Save() +22
mojoPortal.Web.AdminUI.PageProperties.SavePageData() +3450
mojoPortal.Web.AdminUI.PageProperties.Apply_Click(Object sender, EventArgs e) +34
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
 

 

Anyone have the idea of why this error happen?

5/3/2010 12:28:30 PM
Gravatar
Total Posts 18439

Re: Error when adding new page

Have you upgraded?

Did you visit the /Setup/Default.aspx page?

What version of mojoPortal?

Are you running any custom code?

5/3/2010 9:20:28 PM
Koe
Gravatar
Total Posts 29

Re: Error when adding new page

My version is 2.3.3.9, and I have hosting several website, but only the server in Japan (in Japanese OS) have this problem, so I don't think is the problem of version.

I have traced some topics in the forum, and I have tried to change the language to en-US, but the problem don't solved.

Will setup one more time works? and will the previous data(website data) be lost if I setup again?

 

 

Thanks.

5/4/2010 11:16:12 AM
Gravatar
Total Posts 18439

Re: Error when adding new page

Hi,

If you are getting this kind of error using English content on a Japanese OS, maybe it is some mismatch with the charset and collation of the database. I would try using a new db with English/Latin charset/collation or at least take a look at what the charset and collation are set as on the current db you are using.

Hope it helps,

Joe

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