¤ I've installed Visual Studio .NET 2003 on my Windows 2000 machine. I
¤ installed IIS also.
¤ It serves up HTML and .ASP pages but will not work with asp.net pages
¤ (.asmx).
¤ As a matter of fact, when I try to create a new c# or VB ASP.NET
¤ webservice or application, I get the following error:
¤ "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
¤ applications"
¤ I don't know what is going on. I uninstalled and reinstalled IIS and
¤ the Web Service Extensions that came with VS. I tried running VS Setup
¤ in maintence mode to repair my installation of VS .NET, but nothing
¤ works. I also tried reinstalling the .NET runtime (as suggested in a KB
¤ article), but still nothing.
¤ I thought there was supposed to be an ASP.NET tab in IISmanager, but
¤ there is not.
¤
¤ As a side note, I have also had problems with IIS on my XP-Pro machine.
¤ It won't even serve plain HTML or ASP pages. It's totally broken. I've
¤ tried all of the above fixes for it also, with no luck. When I try to
¤ create an asp.net project in VS on the XP machine, it just hangs.
¤ Any suggestions would be greatly appreciated!
¤ -Jeff
See if the following helps:
Troubleshoot "Visual Studio .NET has detected Web server is not running ASP.NET 1.1"
http://support.microsoft.com/default.aspx?scid=kb;en-us;555132
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
Thanks Paul,
Actually just after posting this message I found a KB article (306005 -
How To Repair IIS Mapping After You Remove and Reinstall IIS) and
followed the instructions. (using aspnet_regiis.exe -i then registering
the aspnet_isapi.dll)
Now both my XP-Pro and Win2k machines show the correct ISAPI
Application entries for ASP and ASP.NET files in IISmanager - that's
progress. But...
My XP machine is still the same--VS and IE say that the webserver is
not running--although IISmanager says that it is, and stopping and
restarting has no effect
However, on my Win2k machine we have made more progress.Now I can open
a VS asp.net project successfully with no error or warning messages and
build it, but when I try to run it (either from within VS or directly
from IE) I get this error message on a "This page cannot be displayed"
web page:
Error Type:
Active Server Pages, ASP 0221 (0x80004005)
The specified 'WebService Language="c#"
Codebehind="Service1.asmx.cs"
Class="WebService1.Service1" '
option is unknown or invalid.
/WebService1/Service1.asmx, line 1
I've also tried some solutions in other KB articles:
* The one you mentioned KB 555132 (it is about putting an explicit IP
address in the IP Address field in the default web site properties:Web
Site:IP Address - field in IISmanager, and in the
Namespace="xxx.xxx.xx.xxx" code in the VS project file. But in the
article it also says to do something in IISmanager with the "working
status" -- I can't find such a field...
* KB82579 - providing a file called Get_aspx_ver.aspx in the wwwroot
directory.
All to no avail.
I'm about ready to start from scratch on my XP system and reformat the
hard drive and re-install EVERYTHING again, but it seems that I am SO
CLOSE TO SOLVING this on the Win2k machine that I don't want to give up
there (I can't give up anyway--I'm on a job where I have to create some
web services!!!)
What do you think my next step needs to be? aparently IIS, even with
the help of aspnet_isapi.dll
does not understand the [Webservice Language="C#" class="Webservice1"
...] line in the page.
I'm getting desperate, but hopeful at the same time!!! - Please help.
-Thanks again,
Jeff
Paul Clement - 08 Jan 2005 15:24 GMT
¤ Thanks Paul,
¤ Actually just after posting this message I found a KB article (306005 -
¤ How To Repair IIS Mapping After You Remove and Reinstall IIS) and
¤ followed the instructions. (using aspnet_regiis.exe -i then registering
¤ the aspnet_isapi.dll)
¤
¤ Now both my XP-Pro and Win2k machines show the correct ISAPI
¤ Application entries for ASP and ASP.NET files in IISmanager - that's
¤ progress. But...
¤
¤ My XP machine is still the same--VS and IE say that the webserver is
¤ not running--although IISmanager says that it is, and stopping and
¤ restarting has no effect
¤
¤ However, on my Win2k machine we have made more progress.Now I can open
¤ a VS asp.net project successfully with no error or warning messages and
¤ build it, but when I try to run it (either from within VS or directly
¤ from IE) I get this error message on a "This page cannot be displayed"
¤ web page:
¤
¤ Error Type:
¤ Active Server Pages, ASP 0221 (0x80004005)
¤ The specified 'WebService Language="c#"
¤ Codebehind="Service1.asmx.cs"
¤ Class="WebService1.Service1" '
¤ option is unknown or invalid.
¤ /WebService1/Service1.asmx, line 1
¤
¤ I've also tried some solutions in other KB articles:
¤ * The one you mentioned KB 555132 (it is about putting an explicit IP
¤ address in the IP Address field in the default web site properties:Web
¤ Site:IP Address - field in IISmanager, and in the
¤ Namespace="xxx.xxx.xx.xxx" code in the VS project file. But in the
¤ article it also says to do something in IISmanager with the "working
¤ status" -- I can't find such a field...
¤
¤ * KB82579 - providing a file called Get_aspx_ver.aspx in the wwwroot
¤ directory.
¤
¤ All to no avail.
¤
¤ I'm about ready to start from scratch on my XP system and reformat the
¤ hard drive and re-install EVERYTHING again, but it seems that I am SO
¤ CLOSE TO SOLVING this on the Win2k machine that I don't want to give up
¤ there (I can't give up anyway--I'm on a job where I have to create some
¤ web services!!!)
¤
¤ What do you think my next step needs to be? aparently IIS, even with
¤ the help of aspnet_isapi.dll
¤ does not understand the [Webservice Language="C#" class="Webservice1"
¤ ...] line in the page.
¤
¤ I'm getting desperate, but hopeful at the same time!!! - Please help.
¤ -Thanks again,
¤ Jeff
If you've spent a fair amount of time attempting to resolve this problem, and haven't fixed it, I
think I would start from scratch and rebuild the OS and environment.
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
Jeff - 13 Jan 2005 17:57 GMT
I solved my problem by reformatting my hard drive and reinstalling OS
and visual studio.
The usual Microsoft BS!