-
Getting an ASP.NET 4 application to work on IIS6
Following the instructions from the first of these, I checked what extensions where available on my server:
Notice that the Status for the .NET 4 ASP.NET ISAPI extension is 0? Well, that means that it is disabled. Now, if you read the other knowledge base article, it will tell you how to enable it. Just run the following command:
cscript iisext.vbs /EnFile C:WINDOWSMicrosoft.NETFrameworkv4.0.30319aspnet_isapi.dllAnd If I now run the /ListFile command again, I will se that the ASP.NET 4 extension is now showing a little “1” as status, telling me that it is now enabled.
Note :The previous how to has been copied from http://johan.driessen.se/posts/getting-an-asp.net-4-application-to-work-on-iis6
After you have done the previous steps ,Asp.net 4 should be registered on IIS ,If you want to enable .net frame work 4 for one or more sites , you have to do the following:
First,
We need to know what is the version of .NET assigned to each site ,this can be done from the following:
Go to C:WINDOWSMicrosoft.NETFrameworkv4.0.30319> (from cmd)
Then,run aspnet_regiis -lk
======= The results should be as following===================
C:WINDOWSMicrosoft.NETFrameworkv4.0.30319>aspnet_regiis -lk
W3SVC/1600/ROOT/mssql/ 2.0.50727.3053
W3SVC/16273/ROOT/ 2.0.50727.3053
W3SVC/2/Root/ 4.0.30319.0
W3SVC/2/Root/Sites/ 4.0.30319.0
W3SVC/20288/ROOT/ 2.0.50727.3053
W3SVC/25988/ROOT/ 2.0.50727.3053
W3SVC/26776/ROOT/ 2.0.50727.3053
W3SVC/26854/ROOT/ 2.0.50727.3053
W3SVC/27538/ROOT/ 2.0.50727.3053
W3SVC/27538/ROOT/cu2/ 2.0.50727.3053
W3SVC/2770/ROOT/ 2.0.50727.3053
W3SVC/2790/ROOT/ 2.0.50727.3053
W3SVC/2806/ROOT/ 2.0.50727.3053
W3SVC/2822/ROOT/ 2.0.50727.3053
W3SVC/2839/ROOT/ 2.0.50727.3053
W3SVC/2855/ROOT/ 2.0.50727.3053
W3SVC/2871/ROOT/ 2.0.50727.3053
W3SVC/2881/ROOT/ 2.0.50727.3053
W3SVC/29755/ROOT/ 2.0.50727.3053
W3SVC/29917/ROOT/ 2.0.50727.3053
W3SVC/32595/ROOT/ 2.0.50727.3053
W3SVC/7393/ROOT/ 2.0.50727.3053
==============================================
Second,
We need to change the .Net framework from 2 to 4 for site id 7393 ,You can do that by running the following command:
C:WINDOWSMicrosoft.NETFrameworkv4.0.30319>aspnet_regiis -SN W3SVC/7393/ROOTNote:To get site id ,open IIS from Start menu >Administrative Tool>Internet information service
Open IIS ,Expand Websites ,at the right side ,you will find all sites and their identifier 🙂Now,run again
C:WINDOWSMicrosoft.NETFrameworkv4.0.30319> aspnet_regiis -lk
Here are the results:
===============================
C:WINDOWSMicrosoft.NETFrameworkv4.0.30319>aspnet_regiis -lk
W3SVC/1600/ROOT/mssql/ 2.0.50727.3053
W3SVC/16273/ROOT/ 2.0.50727.3053
W3SVC/2/Root/ 4.0.30319.0
W3SVC/2/Root/Sites/ 4.0.30319.0
W3SVC/20288/ROOT/ 2.0.50727.3053
W3SVC/25988/ROOT/ 2.0.50727.3053
W3SVC/26776/ROOT/ 2.0.50727.3053
W3SVC/26854/ROOT/ 2.0.50727.3053
W3SVC/27538/ROOT/ 2.0.50727.3053
W3SVC/27538/ROOT/cu2/ 2.0.50727.3053
W3SVC/2770/ROOT/ 2.0.50727.3053
W3SVC/2790/ROOT/ 2.0.50727.3053
W3SVC/2806/ROOT/ 2.0.50727.3053
W3SVC/2822/ROOT/ 2.0.50727.3053
W3SVC/2839/ROOT/ 2.0.50727.3053
W3SVC/2855/ROOT/ 2.0.50727.3053
W3SVC/2871/ROOT/ 2.0.50727.3053
W3SVC/2881/ROOT/ 2.0.50727.3053
W3SVC/29755/ROOT/ 2.0.50727.3053
W3SVC/29917/ROOT/ 2.0.50727.3053
W3SVC/32595/ROOT/ 2.0.50727.3053
W3SVC/7393/ROOT/ 4.0.30319.0 >>changed
================================================Exim useful commands.. How to install ioncube on Cpanel Linux Server ?
Getting an ASP.NET 4 application to work on IIS6
Recent Posts
Categories
Archives
Comments are currently closed.