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. AM

    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.

  2. AM

    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,

  3. Miguel S.

    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!

  4. 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.

  5. Sana

    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

  6. yorrick

    awsome! really helpful thanks🙂

  7. Isaac Russell Costa

    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

  8. Lakshman

    I have also same problem like Miguel S.
    Please help me in this issue.
    Thankyou

  9. Jibran Sabir

    wooohoooo!!! thanks dude!! God bless you !!😀

  10. Vishal

    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.

  11. Aniedozie Ubaka, Benin/Nigeria

    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!

  12. Axel

    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.

  13. Zaynul(tuhin ruet)

    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

  14. Girish

    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

  15. works like a charm!
    thanks a lot :))

  16. Mahesh

    How to run Asp.net project on localhost,and server in windows xp-2…?

  1. 1 2010 in review « Sampath’s Mindspace

    […] Running ASP.NET 2.0 Applications on IIS 5.1 (Win XP) March 2006 16 comments 3 […]




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s



%d bloggers like this: