Server upgrade from ASP.NET 3.5 to 4

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.
11/21/2011 5:52:03 AM
Gravatar
Total Posts 220

Server upgrade from ASP.NET 3.5 to 4

Hi,

please do not groan. I can imagine this question has been asked many times before, but I am probably to blind to find it in the forum:

Our ISP will upgrade to ASP.NET 4 and I do not know what that means for our sites. One is pretty old (2.3.1.9 MySQL).
Do I have to change something on this sites before upgrade to ASP.NET 4 or is 4 backward compatible?

We are satisfied with most sites, as they are.

Best
Matthias
 

11/21/2011 7:14:51 AM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Server upgrade from ASP.NET 3.5 to 4

You might not have to do anything. The frameworks can run independently from one another on the same server and your host is probably just installing 4.0 and it may not have an impact on your sites. But I would check with your host first to find out their exact plans.

A side note that your version of mojoPortal is quit old and you should probably look at upgrading at some point. There are always features and bug fixes in the latest versions. Also you version will run fine on 3.51 framework but at some point support will be dropped. Also if your host is going to require your apps to run under the 4.0 framework you will have to upgrade mojoPortal.

11/21/2011 8:58:44 AM
Gravatar
Total Posts 220

Re: Server upgrade from ASP.NET 3.5 to 4

Hello Aaron,

thank you so far.
I will check with my host first ...

Best
 Matthias
 

11/21/2011 4:18:28 PM
Gravatar
Total Posts 1204
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Server upgrade from ASP.NET 3.5 to 4

Hi Matthias, to move to .NET 4.0, I believe you'll need to overlay your mojoPortal installation with the same mojoPortal version, but the .NET 4.0 distribution package. You may want to consider doing an upgrade of your site to the current .NET 3.5 package before you start, if you're on an older version. Also, if you have purchased any of Joe's fantastic add-on products, be sure to upload the .NET 4.0 versions of the binaries for those as well.

Joe may have more information about this that I'm not aware of. We should probably add a documentation page that covers this type of migration, since I'm sure .NET 3.5 support in mojoPortal is going to be phased out sooner or later, and it would be a useful resource for those in your position. Joe, I can create a documentation page if you can cover any additional steps that I may have missed.

Jamie

11/22/2011 11:03:36 AM
Gravatar
Total Posts 18439

Re: Server upgrade from ASP.NET 3.5 to 4

Hi Mathias,

Technically your current installation can run under .NET 4 but as soon as they update your site to .NET 4 it will cause an error because of a change in .NET 4 where the section declaration for system.web.extensions is no longer needed in Web.config because it already exists in machine.config. So what will happen first is that you will get an error about  duplicate section registration.

This problem is discussed in the 9th and 10 items on our FAQ page. You would solve the error by removing that section declaration from your web.config file after they change you to .NET 4.

Then there will also be most likely some problems with rendering, that could be solved by adding controlRenderingCompatibilityVersion="3.5" on the <pages element in Web.config

So, you could potentially keep the version of mojoPortal you have if you don't want to upgrade.

That is a very old version of mojoPortal, so it is likely that if you do decide to upgrade there will be some problems with your skin that need fixing after upgrading. We have some notes about skin changes that you will need but it doesn't go all the way back to your current version. But I'm sure we can help you figure out any other problems that remain after making the changes we do have documented.

To upgrade a site this old I would definitely back up everything, all the files and database first. If you do plan to upgrade I would suggest as Jamie said to upgrade to the latest .NET 3.5 version of mojoPortal before they make the change to .NET 4, then after they change it to .NET 4 upgrade to the .NET 4 version of mojoPortal with the same version number.

Hope that helps,

Joe

11/23/2011 1:22:42 PM
Gravatar
Total Posts 220

Re: Server upgrade from ASP.NET 3.5 to 4

Hello Joe,

thank you.

Best
 Matthias
 

11/25/2011 5:50:55 AM
Gravatar
Total Posts 18439

Re: Server upgrade from ASP.NET 3.5 to 4

Hi Matthias,

Thank you for the beer! Much appreciated as always.

Best,

Joe

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