Changing asp.net version in iis6.0

We have Windows Server 2003 R2 Standard Edition on our production server. There are more active applications on the server running ASP.NET 2.0.

We installed the .NET Framework 4.0 on our server.

I have an example ASP.NET 4.0 application, and I created a sample website in IIS 6.0. Now I want to change the version of ASP.NET to 4.0.

During this change, I received a warning message:

"changing the structure requires restarting the w3svc service. alternatively, you can change the versions without restarting the w3svc service by running: aspnet_regiis.exe -norestart -s iid-virtual-path. you want to continue (this will change the versions and restart w3svc)"

My question is: if I changed the version to 4.0 (only for my website), will this affect existing live applications? These applications run ASP.NET 2.0.

+7
source share
2 answers

If you simply change the version of ASP.NET using the ASP.NET tab of the new site, the changes will apply only to that site.

What you need to ensure that you are not trying to run ASP.NET 2.0 and ASP.NET 4.0 applications in the same application pool. If you do this, you will encounter this error:

alt text

You will also see this audit event in the application event log:

  Event Type: Error
 Event Source: ASP.NET 2.0.50727.0
 Event Category: None
 Event ID: 1062
 Date: 01/12/2011
 Time: 12:31:43
 User: N / A
 Computer: KK-DEBUG
 Description:
 It is not possible to run two different versions of ASP.NET in the same 
 IIS process.  Please use the IIS Administration Tool to reconfigure your
 server to run the application in a separate process.

Create a new application pool for your new ASP.NET 4.0 application (you can do this by cloning an existing pool):

enter image description here

Then assign a new ASP.NET web application for this pool on its property pages:

enter image description here

+12
source

It should also be noted that with IIS 6, even if you have installed the .Net 4 infrastructure, it will not work.

You need to register .Net 4.0 infrastructure for IIS, follow this guide. http://johan.driessen.se/posts/getting-an-asp.net-4-application-to-work-on-iis6

0
source

All Articles