Running ASP.NET 2.0 Applications on IIS 5.1 (Win XP)
Today I was trying to deploy a ASP.NET 2.0 app on my Win XP machine. This machine did not have .NET 2.0 framework or any of .NET 2.0 development tools, hence it is a clean deployment. I faced a few problems upfront, so I thought of recording issues faced and the solution here for greater benefit of all.
First, I installed the .NET redistributable 2.0 using the dotnetfx.exe free download avaialble from MS web site. You can download it here.
Then after successfully installing .NET 2.0, I copied the application files, created the databases and created a virtual directory on IIS for the application and tried to run it. This is where I faced the issue. I got an error message saying that xmlns attribute on the web.config file was not recognized. I googled for possible solutions. But I did not come up with the exact issue anywhere.
Figuring out that there was a config issue somewhere, I turned my attention to configuring. And hence I ran the aspnet_iisconfig tool in the \WINDOWS\Microsoft.NET\Framework\v1.1.4322 directory with -i switch. And voila, that solved the problem!