The Environment:
Windows Server 2008 R2 Enterprise Edition IIS 7.5.7600.26385
The Problem: I have an existing web site currently running ASP.Net version 2.0 and want to move to ASP.Net 4.0. I do NOT have Visual Studio so I cannot simply use an “upgrade wizard” to perform this task. Here is what I have tried so far:
in IIS:
- Create a new application pool name “aspnet_v40” and configured to use ASP.Net 4.0 (Integrated)
- Stop the web site
- Change web site to the new application pool (“aspnet_v40”)
- Click on Web site “.Net Compile” option – IIS displays the following error: There was an error performing this operation \Windows\Microsoft.Net\Framework64\v4.0.30319\config\web.config Line #141 Error: Unrecognized element 'folderLevelBuildProviders'
When logged into the server, I use the aspnet_regiis program to list and verify the versions of ASP.Net that are installed (I thought I would get the same answer from all directories, but below is what is reported):
C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -lv
2.0.50727.0 C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll
4.0.30319.0 c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
2.0.50727.0 C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
4.0.30319.0 c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
C:\Windows\Microsoft.NET\Framework64\v2.0.50727>aspnet_regiis -lv
2.0.50727.0 C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll
4.0.30319.0 c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
2.0.50727.0 C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
4.0.30319.0 c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -lv
2.0.50727.0 C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll
4.0.30319.0 c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
4.0.30319.0 c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -lv
2.0.50727.0 C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll
4.0.30319.0 c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
4.0.30319.0 c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
Obviously, there are steps I am missing:
- How to get rid of the the "Unrecognized element 'folderLevelBuildProviders'" error.
- What are the steps (commands) required to move from 2.0 to 4.0 (ie: new or changed elements in web.config??)
Does anyone have a step-by-step guide for upgrading from 2.0 to 4.0 WITHOUT Visual Studio? Or, does anyone have link to such a guide??
Thanks in advance!