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!
-
1
Pingback on Jan 4th, 2011 at 7:11 am
[...] Running ASP.NET 2.0 Applications on IIS 5.1 (Win XP) March 2006 16 comments 3 [...]
February 20, 2007 at 2:33 pm
I’m having similar problems with a .net 2 website that I’m trying to host on an XP machine.
One question I had for you, I cannot locate the aspnet_iisconfig tool in \WINDOWS\Microsoft.NET\Framework\v1.1.4322
Any help/thoughts greatly appreciated.
February 20, 2007 at 2:39 pm
After submitting my reply I played around a little more and figure what you meant aspnet_regiis.
One question, why did you run the v.1.1.4322 verssion, wouldn’t that have set things up for .net 1.1?
Cheers,
April 12, 2007 at 8:19 pm
I ran into a similar issue. It came from the fact that I installed IIS after already having VS 2005 and the .net 2.0 framework. So my asp .net 2.0 apps wouldn’t run.
So I re-registered asp .net 2.0 via:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -i
and voila, it was all working great!
April 20, 2007 at 12:51 pm
hi sampath
how is the 2.0 development going on. I am looking a good ORM tool probebly the open source or little cheaper one. What you guys using for the ORM.
April 23, 2007 at 6:33 pm
hi Miguel S. and everyone there
i need help my problem is same that is my webserver is unable to run asp.net applications or webservices , i have run the cmd aspnet_regiis.exe -i but it gives error of invalid cmd and i hv run it through v1.1.4322 but still i cant open asp.net 1.1 applications …please anyone help
July 27, 2007 at 6:53 am
awsome! really helpful thanks
October 30, 2007 at 4:16 pm
You may just configure with version of the framework will you aplication use, goto the properties of the Virtual Directory of the aplication on the tab ASP .NET, you just change the version. The tool you provide is not correct, beacus you disable all Framework 1.1.
Greedings
April 9, 2008 at 7:22 am
I have also same problem like Miguel S.
Please help me in this issue.
Thankyou
April 14, 2008 at 11:14 am
wooohoooo!!! thanks dude!! God bless you !!
May 2, 2008 at 8:28 am
Sampath,
stop posting stuff with sufficient knowledge. You posted a trial and error stuff without providing any explanation behind it.
It will only confuse people more.
Some people just post garbage just to establish blogs.
Thanks no but thanks.
September 21, 2008 at 3:38 pm
I’m in d same soup. Tried to deploy asp.net 2 app on iis 5.1 few months ago, i ran into a brick wall.
I googled for solution found out that asp.net 2 runs beta on iis 7.0 and vista comes with it. I quickly upgraded my xp to vista. and used iis manager to setup my app in minutes.
Now am back to face d same challenge, deploying my asp.net on my office xp desktop.
I pray that AM’s and Russel’s ideas will work for me.
Thumbs up Guyz!
December 23, 2008 at 8:57 pm
Thanks a lot!!! I was wondering if I needed to upgrade from IIS 5.1 but usign the registration tool for .net framework 2 worked fine.
February 7, 2009 at 11:25 am
I am also fall the same problem but follow the instruction i cant benefit and till now i think in what way i can solve this problem
March 1, 2009 at 6:30 pm
hi Miguel S. and everyone there
I was facing same problem. and the sol’n provided by Miguel S. helped me out.
but he didn’t explained how to do it.
first of all you have to install the dotnet framework 2 then in command prompt go to
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>
directory whrer C:\ is your system dir.
then just type “aspnet_regiis.exe -i” command (without quots)
then tool will show something like
Start installing ASP.NET (2.0.50727).
…………………………………………..
Finished installing ASP.NET (2.0.50727).
and now you can host your ASP.NET 2.0 website with few changes in your webconfig file in your project.
Have a good day.
Girish
April 7, 2009 at 11:41 am
works like a charm!
)
thanks a lot
August 14, 2010 at 3:44 pm
How to run Asp.net project on localhost,and server in windows xp-2…?
December 2, 2011 at 9:07 am
maa kaa chood