Error when adding pages. String was not recognized as a valid Boolean

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
8/1/2009 7:18:58 PM
Gravatar
Total Posts 10

Error when adding pages. String was not recognized as a valid Boolean

 

When I try and create a page I get this error from the server.  I just hit new page, and take the defaults and hit save.

I have been installing my own dll all day and it worked fine until late this PM.  I removed the pages with my custom stuff on them then removed my custome stuff as well. 

I would have to guess I did it but I have no idea of what I did .

:

Server Error in '/Portal' 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) +7661350
System.String.System.IConvertible.ToBoolean(IFormatProvider provider) +15
System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +7598864
System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) +4872946


Here is the mojoportal log where it happens.

2009-08-01 16:54:55,514 ERROR mojoPortal.Web.mojoBasePage - 72.71.100.59-en-US - /Portal/Admin/PageSettings.aspx
System.FormatException: Failed to convert parameter value from a String to a Boolean. ---> System.FormatException: String was not recognized as a valid Boolean.
at System.Boolean.Parse(String value)
at System.String.System.IConvertible.ToBoolean(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType)
--- End of inner exception stack trace ---
at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType)
at System.Data.SqlClient.SqlParameter.GetCoercedValue()
at System.Data.SqlClient.SqlParameter.Validate(Int32 index, Boolean isCommandProc)
at System.Data.SqlClient.SqlCommand.SetUpRPCParameters(_SqlRPC rpc, Int32 startCount, Boolean inSchema, SqlParameterCollection parameters)
at System.Data.SqlClient.SqlCommand.BuildRPC(Boolean inSchema, SqlParameterCollection parameters, _SqlRPC& rpc)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteScalar()
at mojoPortal.Data.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)
at mojoPortal.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
at mojoPortal.Data.SqlParameterHelper.ExecuteScalar()
at mojoPortal.Data.DBPageSettings.Create(Int32 siteId, Int32 parentId, String pageName, String pageTitle, String skin, Int32 pageOrder, String authorizedRoles, String editRoles, 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)
at mojoPortal.Business.PageSettings.Create()
at mojoPortal.Business.PageSettings.Save()
at mojoPortal.Web.AdminUI.PageProperties.SavePageData()
at mojoPortal.Web.AdminUI.PageProperties.Apply_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

8/2/2009 4:42:55 AM
Gravatar
Total Posts 10

Re: Error when adding pages. String was not recognized as a valid Boolean

To try and troubleshoot I pulled the database down to my local machine and set up IIS so it would follow the same path then pointed my dev site at the copy of my live database.  I kinda hoped it would break but it works perfectly. 

The difference now is the web.config file, and the data in the site folder.  I guess my next step is to copy the files from the sites/1 folder to my local machine to see if something in there is the issue.

8/2/2009 7:05:32 AM
Gravatar
Total Posts 10

Re: Error when adding pages. String was not recognized as a valid Boolean

I have now replaced the whole bin directory, web.config, all the files in admin.  Pulled the site down to my local machine and it runs fine there.

My guess is it will be something simple and stupid but I just don't have a clue.

8/2/2009 4:27:23 PM
Gravatar
Total Posts 10

Re: Error when adding pages. String was not recognized as a valid Boolean

So after a few hours of screwing around I backed up the database, backed up the data folder, deleted all the files off the server.  Uploaded a new copy, let it install, restored the database. 

All is well.  I would love to know what it was but at least it is working again.

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