Link to home
Start Free TrialLog in
Avatar of trumajee
trumajee

asked on

Cannot get .Net 1.1 ASP.Net website to work on Windows Server 2012 R2 (64 bit)

Hey,

I am in the process of migrating a .Net 1.1 ASP.Net website from a dedicated Windows 2008 Server R2 (64 bit) server to a new Windows 2012 R2 Datacenter Server on Azure.

The site has worked fine on the Win2008 server, but I cannot get it to run on the new Win2012 server.

I have configured a separate Application Pool, targeting .NET CLR Version 2.0.

The mappings to the virtual folder seem to be ok, as I can access static files from the browser. But any reference to *.aspx pages just results in:

HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

I'm at a loss.

Can anyone offer any advice?

Thanks.
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

Open in new window

Avatar of James Bilous
James Bilous
Flag of United States of America image

Sometimes running the following command will help:

aspnet_regiis.exe -i

https://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx
Avatar of trumajee
trumajee

ASKER

I have located a number of instances of aspnet_regiis.exe, one located in:

c:\Windows\Microsoft.NET\Framework\v1.1.4322

I ran aspnet_regiis.exe -i from there, and it finished installing.  I restarted IIS, but still get the same error as above.
The error information definately indicates 4.0 framework is not registered on IIS side. The registration is required, and to use different runtime for one site, you will need to create an application under the site and set a different application pool that targeted to the different framework for the application.

Check this post
http://stackoverflow.com/questions/11319311/mime-types-missing-in-iis-7-for-asp-net-404-17
http://forums.iis.net/t/1160143.aspx
ASKER CERTIFIED SOLUTION
Avatar of trumajee
trumajee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not resolved.