At A Glance Main Projects Tutorials Resume

Contact


Email: palen1c at gmail.com




Windows XP IIS Install Problems Especially with ASP.NET 2.0

Fri, 10 Jul 2010 24:05:23 EST

The first wrong move of many is installing IIS on Windows XP.
In my day job I have to install IIS on a Windows XP machine about every six months. After two years or sporadically having to install IIS across different computer models and service packs, I have noticed that IIS never works correctly after you install it on Windows XP. I am so confident of this that I decided to install it on my own, fully patched Windows XP Service Pack 3 machine and document how I get ASP.NET 2.0 applications to work in hope that it will help someone else.

Permission errors with IIS in Windows XP.
The first thing that always happens when I install IIS on Windows XP is that I always end up with permission errors on the default http://localhost website. I re-started, but this still did not solve the problem.

Permission errors with IIS in Windows XP.
Because all I ever want to do is get ASP.NET working anyway, I created a new directory in Inetpub/wwwroot called ASP2Test and created an application directory out of it using the IIS control panel in Administrative Tools. I specifically set the ASP.NET version to 2.0. I then attempted to access the new application directory which I had created a simple aspx file in, but got the infamous failed to access IIS metabase error.

Creating a new application directory in IIS on Windows XP.
Setting the ASP.net version in IIS in Windows XP.
The fun failed to access metabase error with IIS on Windows XP.







After having to deal with this several times, I have figured out a step that normally will solve the error in ASP.NET 2.0 applications at least. Open up a command line and navigate to C:\WINDOWS\Microsoft.NET\Framework\v2.0.xxx and use the exe "aspnet_regiis" with the parameter -i, which I think re-installs the framework. If you do this, then re-start your computer, you may get lucky and your ASP.NET application will now run in IIS on Windows XP.

aspnet_regiis -i

Running the aspnet_regiis command.
My ASP.NET 2.0 application finally works on IIS in Windows XP.








Charles Palen has been involved in the technology sector for several years. His formal education focused on Enterprise Database Administration. He currently works as the principal software architect and manager at Transcending Digital where he can be hired for your next contract project. Charles is a full stack developer who has been on the front lines of small business and enterprise for over 10 years. Charles current expertise covers the areas of .NET, Java, PHP, Node.js, Javascript, HTML, and CSS. Charles created Technogumbo in 2008 as a way to share lessons learned while making original products.

Comments

No one has posted any comments yet, be the first

Comments are currently disabled.


Techno Gumbo RSS Feed

Related Links