Click to See Complete Forum and Search --> : How do i change web server? (Beginner!)


KJay
December 20th, 2006, 07:23 AM
Hi, I'm trying to create my first ASP.NET application ("Hello World!"). I've created the virtual folder and subweb in IIS (version 5.1). Now I am trying to create a web application project in Visual Studio .NET 2003. But I keep getting the message "Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services." and no project is created. I have confirmed that my ISP is running ASP.NET 1.1.
My question is, where can I specify the web server that I want to use? I've searched through the various help files, but they all refer you to Start Page...Online Resources...Web Hosting. But I don't want a new ISP, I just want to specify the one I already have! Please help.

karim_medusa
December 20th, 2006, 08:48 AM
Hi,

if you install .NET first then after it install IIS you must run aspnet_iis.exe to register asp.net on IIS .

in Command line :
<%WinDir%>\Windows\microsoft.net\Framework\v1.1.4322\aspnet_iis.exe -i

take care to use -i parameter .

KJay
December 20th, 2006, 05:10 PM
Hi karim_medusa,

I have run aspnet_regiis.exe as suggested (I couldn't find aspnet_iis.exe, but I think regiis is correct). This ran OK so I rebooted (just in case), re-created a virtual folder in IIS and created a subweb. All without errors.
I then loaded Visual Studio, selected new project, ASP .NET Web Application, amended the Location to the newly created subweb and clicked OK. After a few seconds the same error message was displayed, sigh!
Thanks for the suggestion, but I'm still stuck wondering exactly what Visual Studio is looking for.

TheCPUWizard
December 20th, 2006, 05:22 PM
Did you check that aspnet was an enabled (ie not prohibited) extension?

KJay
December 20th, 2006, 05:30 PM
You've got me there! Where do I find the enabled/prohibited extension setting?

KJay
December 29th, 2006, 07:02 AM
After trying various actions suggested on Microsoft KB, I have come to the conclusion that my problem lies with the "localhost". For whatever reason this simply does not want to work. If I replace "localhost" with my own IP address I can successfully create a Web project. But this means a trip to a web server (not sure which one!) and makes it impossible to run in debug mode. Any suggestions gratefully welcomed.

In case it helps someone else, I have attached a list of the actions I have tried so far (Sources: karim_medusa and Microsoft KB).