Installing IIS on an XP machine with SP2 and .Net 2.0 already installed

by APIJunkie 5. November 2007 12:40

I recently had to install IIS on an XP Pro machine with service pack 2 and .NET already installed.
 
All in all it was quite an annoying and time consuming ordeal for something that was supposed be a walk in the park.
 
Here is the list of the problems I encountered and the solutions I used:
 
1. Unless you are extremely lucky you will probably run into the infamous IIS installation bug.
 
I got the following error message while trying to install IIS:
 
“Setup cannot copy the file staxmem.dll...”
 
To solve this problem follow the instructions in the link below *:

http://support.microsoft.com/default.aspx?scid=kb;en-us;894351

 * Note that they offer 2 solutions and for me solution number 1 didn’t work so I had to go for solution number 2(merge XP setup and SP2 setup). I hope you will be luckier and avoid the need to download SP2 and merge it with the original XP installation files.
 
2. After installing IIS. Dot Net needs to be reregistered in order to work properly.
 
I got the following error after installing IIS and trying to run an ASP.NET web project:
 
“System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase. The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.”
 
I had to run the following command line to reregister .net 2.0 and make it work properly:
 
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe –i
 
You can find more info about aspnet_regiis.exe here:
http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx

 3. After all that, debugging still did not work because my IIS default authentication options did not include integrated windows authentication.
 
I got the following error:
 
“Unable to start debugging on the web server. Debugging Failed Because Integrated Windows Authentication Is Not Enabled…”
 
To fix this go here:
http://msdn2.microsoft.com/en-us/library/x8a5axew(VS.80).aspx


I hope this will save some one else, some time, some day…
 
 

Tags:

IIS | .NET

Comments

1/10/2008 10:13:51 PM #

frank

This peice of information is wonderfull. May God bless the author abundantly for saving a whole lot of time for me
Thank you

frank United Kingdom

2/5/2008 11:39:23 PM #

Vj Chan

Follow these steps to resolve this issue.

1. Click on the Windows Start Menu.

2. Click Run.

3. Type esentutl /p %windir%\security\database\secedit.sdb in the Open box, and click OK.

4. Install IIS through the Control Panel Add/Remove Windows Components applet.

Vj Chan India

5/25/2008 9:28:58 PM #

fnadeem

Thanks a ton!

fnadeem India

1/23/2009 1:20:14 AM #

Couch

Excellent instructions!

I had to run aspnet_regiis -i without the .exe for it to work.

C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –i

Couch United Kingdom

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



About the author

Name of author

My name is Bacon…James Bacon.

I am an API wars veteran. I was wounded by x86 assembly, recovered and moved on to C. Following a long addiction to C++ and a short stint at rehab I decided to switch to a healthier addiction so I am now happily sniffing .NET and getting hooked on Silverlight.

I am mainly here to ramble about coding, various API’s, Junkies(me especially) and everything else that happens between coders and their significant other.