Solve issue with mojoPortal not running under .NET 4.0 Runtime

Posted: August 10, 2010 in Uncategorized

We run a lot of mojoPortal-based Web sites. Unfortunately, upgrading mojoPortal between the hundred releases per month is difficult and often unnecessary. Unfortunately, .NET 4.0 appears to break mojoPortal. It’s not a big deal to fix the issues, but they can take a while to find. Below are the changes we had to make, hopefully saving you hours or days of lost time Smile

If you’re having issues getting mojoPortal to run under the .NET 4.0 Runtime, please try the following:

  • Bring your project into VS2010, convert it, and recompile.
    • This will likely require you to check your references – System.Web.Services will likely have a broken reference. Just remove it and add it again.
    • Compile the projects separately.
  • In the web.config, uncomment the httpRuntime config item and make sure it looks like this:
<httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" 
requestValidationMode="2.0" />
  • The requestValidationMode is the big deal. Otherwise you’ll get errors whenever you post on your site.
  • For the most part, the above changes worked. Once you have mojoPortal compiling (in case I left something out <grin>), the change above may be the only other change you need to make.

Please ask additional questions in comments.

Good luck!

-Auri

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s