Thursday, January 27, 2011

Error configuring asp.net 1.1 websites IIS 7 windows 7 64 bit

Eventhough you set up the asp.net 1.1 websites correctly and they run... When you try to make some changes like Authentication etc from IIS 7 in a 64 Bit win7 OS you might see the follwing error

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


Do the Following:
1. create a directory v1.1.4322 under (\windows\microsoft.net\framework64 by default 64 doesnt have the v1.1)
2. create a directory called CONFIG under (\windows\microsoft.net\framework64\v1.1.4322)
3. copy the machine.config file from \windows\microsoft.net\framework\v1.1.4322\config to \windows\microsoft.net\framework64\v1.1.4322\config folder.

4. Everything should work fine.

Found this solution from this http://forums.iis.net/t/1157568.aspx

In a 64 bit OS IIS 7 is wrongly looking for the machine.config under framework64 and as it doesnt exist there it fails.. so we can fool it by creating the necessary folders and copying the file :)