Unable to Edit content

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
12/16/2008 5:16:08 AM
Gravatar
Total Posts 32

Unable to Edit content

I have installed Mojo, this is my 3rd mojo site, however when I try to edit an item as soon as I update I get the following error message:

2008-11-24 09:28:15,988 ERROR mojoPortal.Web.BannedIPBlockingHttpModule - MySql.Data.MySqlClient.MySqlException: Table 'activeeight.mp_bannedipaddresses' doesn't exist
at MySql.Data.MySqlClient.MySqlStream.OpenPacket()
at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId)
at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet()
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()
at MySql.Data.MySqlClient.MySqlHelper.ExecuteScalar(MySqlConnection connection, String commandText, MySqlParameter[] commandParameters)
at MySql.Data.MySqlClient.MySqlHelper.ExecuteScalar(String connectionString, String commandText, MySqlParameter[] commandParameters)
at mojoPortal.Data.DBBannedIP.IsBanned(String ipAddress)
at mojoPortal.Business.BannedIPAddress.IsBanned(String ipAddress)
at mojoPortal.Web.BannedIPBlockingHttpModule.BeginRequest(Object sender, EventArgs e)

Any help that anyone could give would be greatly appreciated.

Cheers

Shaun

12/16/2008 5:21:55 AM
Gravatar
Total Posts 18439

Re: Unable to Edit content

I don't see how that error can be related to editing content. I would clear the log then cause the error and then see if its the same error logged again.

The error says "activeeight.mp_bannedipaddresses' doesn't exist", does the table exist or not?

In any case you can disable the bannedip http module from the httpmodules section of web.config

Hope it helps,

Joe

12/16/2008 5:25:27 AM
Gravatar
Total Posts 32

Re: Unable to Edit content

Aha! Yes, different error. Here we go:

2008-12-16 11:24:38,844 ERROR mojoPortal.Web.mojoBasePage - 84.45.141.26-en-GB - /HtmlEdit.aspx?mid=2&pageid=3
System.TypeInitializationException: The type initializer for 'mojoPortal.Business.WebHelpers.IndexBuilderManager' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The module was expected to contain an assembly manifest. ---> System.BadImageFormatException: Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'mojoPortal.Features.UI'
at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

--- End of inner exception stack trace ---
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit, Boolean ignoreCase)
at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
at mojoPortal.Business.WebHelpers.IndexBuilderManager.Initialize()
at mojoPortal.Business.WebHelpers.IndexBuilderManager..cctor()
--- End of inner exception stack trace ---
at mojoPortal.Business.WebHelpers.IndexBuilderManager.get_Providers()
at mojoPortal.Web.ContentUI.EditHtml.btnUpdate_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)
2008-12-16 11:24:38,859 ERROR mojoPortal.Web.Global - 84.45.141.26-en-GB - /HtmlEdit.aspx?mid=2&pageid=3
System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The module was expected to contain an assembly manifest. ---> System.BadImageFormatException: Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'mojoPortal.Features.UI'
at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

--- End of inner exception stack trace ---
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit, Boolean ignoreCase)
at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
at mojoPortal.Business.WebHelpers.IndexBuilderManager.Initialize()
at mojoPortal.Business.WebHelpers.IndexBuilderManager..cctor()
2008-12-16 11:24:38,891 ERROR mojoPortal.Web.Global - 84.45.141.26-en-GB - /HtmlEdit.aspx?mid=2&pageid=3
System.TypeInitializationException: The type initializer for 'mojoPortal.Business.WebHelpers.IndexBuilderManager' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The module was expected to contain an assembly manifest. ---> System.BadImageFormatException: Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'mojoPortal.Features.UI'
at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

--- End of inner exception stack trace ---
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit, Boolean ignoreCase)
at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
at mojoPortal.Business.WebHelpers.IndexBuilderManager.Initialize()
at mojoPortal.Business.WebHelpers.IndexBuilderManager..cctor()
--- End of inner exception stack trace ---
at mojoPortal.Business.WebHelpers.IndexBuilderManager.get_Providers()
at mojoPortal.Web.ContentUI.EditHtml.btnUpdate_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)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.htmledit_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

12/16/2008 5:33:49 AM
Gravatar
Total Posts 18439

Re: Unable to Edit content

I would try uploading the bin folder again, then clear the log again. It seems the file mojoPortal.Features.UI.dll did not upload all the way.

Hope it helps,

Joe

12/18/2008 8:40:20 AM
Gravatar
Total Posts 32

Re: Unable to Edit content

Ok so I completely reinstalled and functionality wise the site is great. However there seems to be a problem with creating new skins. If your testing on and running ot on the site, it now seems to be caching older changes you've made to the CSS. It really bizarre, I reached a certain point where it won't recognise font for the body of the page, so no formatting.

I thought the reinstall would solve this, but no joy.

Any help?

Cheers

Shaun

12/18/2008 8:51:35 AM
Gravatar
Total Posts 18439

Re: Unable to Edit content

Hi,

See important skin change information here. css is heavily cached, both in the server and the browser.

Please when you have a new question start a new thread instead of changing the topic on an existing unrelated thread.

Hope it helps,

Joe

11/4/2010 4:38:53 PM
Gravatar
Total Posts 6

Re: Unable to Edit content

Just updated to the latest  version see below:

System Information
mojoPortal Version 2.3.5.5 MSSQL
Operating System Microsoft Windows NT 6.0.6001 Service Pack 1
ASP.NET Info v4.0.30319 Running in Full Trust
Server Time Zone Pacific Daylight Time
Server Local Time (GMT -7) 11/4/2010 2:33:08 PM
Greenwich Mean Time (GMT/UTC) 11/4/2010 9:33:08 PM

I can not update, edit or add anything on the site, here is the error.

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

 

Checked the log file and here is the error:

2010-11-04 14:34:46,717 ERROR mojoPortal.Web.mojoBasePage - 141.150.209.243-en-US - /HtmlEdit.aspx?mid=0&pageid=0
System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$mainContent$edContentinnerEditor="<h4 style="text-alig...").
at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection)
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

2010-11-04 14:34:46,862 ERROR mojoPortal.Web.Global - 141.150.209.243-en-US - /HtmlEdit.aspx?mid=0&pageid=0
System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$mainContent$edContentinnerEditor="<h4 style="text-alig...").
at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection)
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.htmledit_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\5adde05f\633339ee\App_Web_m3m4qyhf.1.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 



 

11/5/2010 7:47:17 AM
Gravatar
Total Posts 69

Re: Unable to Edit content

make sure you use the new web.config file don't try to keep your old one

Steve

11/5/2010 10:42:04 AM
Gravatar
Total Posts 6

Re: Unable to Edit content

I have had several issues with the upgrade, some of the problems were with my host.

In short, whenever I tried to upgrade to asp.net 4.0, and they changed over the app pool, the site would not load at all.

I finally gave up on 4.0 and settled on 3.5 files.

The weird thing is, according to my admin page, my site is running under 4.0.

2.3.5.5 MSSQL
Operating System Microsoft Windows NT 6.0.6001 Service Pack 1
ASP.NET Info v4.0.30319 Running in Full Trust
Server Time Zone Pacific Daylight Time
Server Local Time (GMT -7) 11/5/2010 8:39:40 AM
Greenwich Mean Time (GMT/UTC) 11/5/2010 3:39:40 PM

 

And here is the error code that is listed in my admin log everytime I try to update any content:

2010-11-05 08:27:15,312 ERROR mojoPortal.Web.Global - 65.223.188.178-en-US - /HtmlEdit.aspx?mid=0&pageid=0
System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$mainContent$edContentinnerEditor="<h4 style="text-alig...").
at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection)
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.htmledit_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\5adde05f\633339ee\App_Web_wnn3dkui.3.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 

 

PLEASE HELP

11/5/2010 10:55:31 AM
Gravatar
Total Posts 2202

Re: Unable to Edit content

Hi,

It sounds to me like your site is probably still set to use a .NET 4 application pool. Have your host change that to a .NET 2 Application Pool.

I would also re-upload all the release files, and replace your existing web.config with an original from the 3.5 package.

HTH,
Joe D.

11/5/2010 1:19:52 PM
Gravatar
Total Posts 6

Re: Unable to Edit content

That did the trick,

Thank you very much.

 

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