Visual Studio .NET 检测到指定的 Web 服务器未运行 ASP.NET 1.1
好吧,我被难住了..是的,我已经用谷歌搜索过了,这一次,似乎这是谷歌第一次让我失败。
我有一个 ASP .Net Web 应用程序项目(从一位喜欢暴力算法和代码冗余的前辈那里获得的),并试图在开发它的 VS .NET 2003 中打开它(好吧,实际上不是在同一台机器上)该项目是由其他 VB 项目组成的更大解决方案的一部分。当我不久前第一次打开继承的解决方案时,我发现一个错误阻止我打开所述 Web 项目...我只是忽略它,因为该项目以前并不那么重要。现在这个项目需要维护,我想是时候让我亲自动手了。
这是我第一次打开 Web 应用程序项目,所以我预计会出现问题: Visual Studio .NET 检测到指定的 Web 服务器未运行 ASP.NET 1.1。您将无法运行 ASP.NET Web 应用程序或服务。
对。通过使用值得信赖的 Google,我尝试了以下方面的努力(但正如我所说,这一次她让我失败了):
- 卸载 .NET Framework 1.1
- 重新安装 .Net Framework 1.1
- Followed KB 306005 内容如下:
aspnet_regiis.exe -i
- 已尝试
aspnet_regiis.exe-u
、-ua
、-c
和-enable
code> - 重新启动 IIS
- 文件夹
删除了框架 1.0重新启动和/或在上述项目之间重试的
,但我仍然遇到相同的错误。我尝试了另一件事,使用记事本更改 .sln 文件中项目的路径。我将“localhost”一词更改为我的 IP 地址,但它产生了另一个错误,指出它无法打开该项目并且网络不存在。它要求我尝试另一个文件共享路径。那里没有欢乐。
我注意到,通过在浏览器中访问地址http://192.168.2.138/MyWebProject/main.aspx
,网页看起来没问题(顺便说一句,这是我的IP)。但是 http://localhost/MyWebProject/main.aspx 不起作用并给出消息:此地址没有配置网站。
我使用的是 XPProSP3,更新日期为 2010 年 10 月;我将 .Net Framework 2.0 SP2、3.0 SP2、3.5 SP1 与 1.1 一起安装; 1.1 的最新 SP 是 KB979906。
我认为我只是缺少一些在制作 ASP .Net Web 项目之前需要做的事情。:D
我喜欢在 VS 中打开该项目,但我很困惑。我怎样才能打开它?
ok, I'm stumped.. yes, I've googled already and this time, it seems it is the first time that google failed me.
I have an ASP .Net Web Application project (acquired from a predecessor who loves brute algorithms and redundancies in his codes) and was trying to open it in a VS .NET 2003 where it was developed (well, actually not on the same machine where it was developed.) The project is a part of a larger solution composed of other VB projects. When I first opened the inherited solution some era ago, I found that an error prevented me from opening the said web project... I just ignore it then because the project wasn't that important before. Now that the project needs to be maintained, I think it's time for me to get my hands dirty with it.
This is my first time opening a web application project so I expected that there will be something wrong:
Visual Studio .NET has detected that the specified Web server is not running ASP.NET 1.1. You will be unable to run ASP.NET Web applications or services.
Right. With the use of a trusty Google, I have tried my efforts on the following (but as I have said, this time, she failed me):
- Uninstall .NET framework 1.1
- Reinstall .Net framework 1.1
- Followed KB 306005 which says about:
aspnet_regiis.exe -i
- Tried the switches
-u
,-ua
,-c
and-enable
foraspnet_regiis.exe
- Restarted IIS
- Deleted the folder for framework 1.0
rebooting and/or retrying between the items above, but I still get the same error.
There's another thing I tried, changing the path of the project in the .sln file using notepad. I changed the word "localhost" to my IP address but it produced another error saying that it can't open the project and that the web does not exist.. it asked me to try another file share path. No joy there.
I noticed that by accessing the address http://192.168.2.138/MyWebProject/main.aspx
in a browser, the web page looks ok (that's my IP, btw). But the http://localhost/MyWebProject/main.aspx
doesn't work and gives the message: No web site is configured at this address.
I'm using XPProSP3 with updates of Oct 2010; I have .Net Framework 2.0 SP2, 3.0 SP2, 3.5 SP1 installed together with 1.1; Latest SP for 1.1 is KB979906.
I think that I'm just missing something that needs to do before making a ASP .Net web project.. :D
I like to open the project in my VS but I'm stumped. How can I open it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道我错过了上面的东西。我今天能够通过执行以下操作来解决该错误:
aspnet_regiis -i
无法从网络服务器获取项目文件。
嗯,这对我来说是一个新错误,另一个故事,我认为没有必要继续这个线程,因为标题就是这样说的。我必须继续前进并继续探索如何打开此文件。 ;)
再会。
I knew I am missing something above. I was able to pass through the error today by doing the following:
aspnet_regiis -i
of the installed version 1.1.4322Unable to get the project file from the web server.
Well, that's a new error for me, another story and I think there's no point of continuing this thread because the title says so. I have to move on and continue to discover how to open this file. ;)
Good day.
将 Web 端地址更改为空或将 localhost 添加到其中(在 IIS 的站点属性中)。或者在项目属性中切换到内置的 asp.net Web 服务器。
如果您可以通过一个 URL 访问该站点,但不能通过另一个 URL 访问该站点(并且两者都指向同一台计算机),那么很可能是 Web 服务器配置存在问题。两个主机名均未绑定到该解决方案/文件夹。这可能是防火墙问题。尝试暂时禁用本地防火墙。
IIS 的访问日志和事件日志是解决此类问题的宝贵资源。
Change the webside address to nothing or add localhost to it (in site properties in IIS). Alternatively in project properties switch to builtin asp.net webserver.
If you can visit the site on one URL, but not another (and both point to the same computer) then most likely it is a problem with the web server configuration. Both hostnames are not bound to that solution/folder. It CAN be a firewall issue. Try temporarily disabling the local firewall.
The access logs from IIS and the Event Log are valuable resources in troubleshooting such issues.