Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors Running ASP.NET 1.1 on IIS7 (applicationHost.config)

Tags:

asp.net

iis-7

I am trying to port an existing ASP.Net 1.1 website to another web server that currently runs IIS7 and a number of websites that target either .Net 2.0, 3.5 or 4.0. All other sites continue to work perfectly. Unfortunately, I can only browse static files on the newly imported site. If I try to access any of the Features in IIS7 for the new site I get the following error dialog:

There was an error while performing this operation.

Details:

Filename:

\\?\C:\Windows\system32\inetsrv\config\applicationHost.config

Error:

I followed the instructions on this page but am at a loss as to how to get this working.

like image 522
Chris Arnold Avatar asked Jan 11 '11 14:01

Chris Arnold


People also ask

How do I fix applicationHost config file?

The solution is to use AppCmd.exe. We can find it in C:\Windows\System32\inetsrv. Note: You need to open the backup file and check if it contains errors before you choose it to recover IIS. You could find these backup files in C:\inetpub\history.

What is the applicationHost config file?

ApplicationHost. config is the root file of the configuration system when you are using IIS 7 and above. It includes definitions of all sites, applications, virtual directories and application pools, as well as global defaults for the web server settings (similar to machine.


1 Answers

I encountered this problem too this afternoon.

I did a quick google and found others with the same issue on the asp.net forum. The issue seemed to be that

Here is what got me past this error, hope it works for you.

the runtime tries to load the corresponding configuration, it doesn't take the bitness of the application pool into the consideration. As you know, ASP.NET 1.1 is only supported on 32-bit. So if you have a 64-bit OS, in order to run ASP.NET 1.1, you have to enable 32-bit applications in the application pool. So, with the QFE/SP2 on 64-bit OS (and only on 64-bit OS), the runtime is incorrectly looking for the 1.1 version of the configuration under Framework64, which does not exist.

Workaround:

  1. Create the Framework64 directory for 1.1 md \windows\microsoft.net\framework64\v1.1.4322\config\
  2. Copy the 32bit config to 64bit config location created in step 1. copy \windows\microsoft.net\framework\v1.1.4322\config\machine.config \windows\microsoft.net\framework64\v1.1.4322\config\

http://blogs.iis.net/wonyoo/archive/2009/06/18/workaround-running-asp-net-1-1-on-vista-sp2-ws08-sp2.aspx

like image 79
Kenny Avatar answered Sep 28 '22 16:09

Kenny