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

by APIJunkie 11/5/2007 12:40:00 PM

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…
 
 

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

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 gb

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 in

5/25/2008 9:28:58 PM

fnadeem

Thanks a ton!

fnadeem in

Add comment


(Will show your Gravatar icon)  

  Country flag





Live preview

9/5/2008 4:54:07 PM

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

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. I am currently stuck in C++ and sniffing .NET.

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.

E-mail me Send mail


Calendar

<<  September 2008  >>
MoTuWeThFrSaSu
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

View posts in large calendar

Pages

    Recent comments

    Authors

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in