Visual Studio .NET 检测到指定的 Web 服务器未运行 ASP.NET 1.1

发布于 2024-10-18 07:14:13 字数 1394 浏览 4 评论 0原文

好吧,我被难住了..是的,我已经用谷歌搜索过了,这一次,似乎这是谷歌第一次让我失败。

我有一个 ASP .Net Web 应用程序项目(从一位喜欢暴力算法和代码冗余的前辈那里获得的),并试图在开发它的 VS .NET 2003 中打开它(好吧,实际上不是在同一台机器上)该项目是由其他 VB 项目组成的更大解决方案的一部分。当我不久前第一次打开继承的解决方案时,我发现一个错误阻止我打开所述 Web 项目...我只是忽略它,因为该项目以前并不那么重要。现在这个项目需要维护,我想是时候让我亲自动手了。

这是我第一次打开 Web 应用程序项目,所以我预计会出现问题: Visual Studio .NET 检测到指定的 Web 服务器未运行 ASP.NET 1.1。您将无法运行 ASP.NET Web 应用程序或服务。

对。通过使用值得信赖的 Google,我尝试了以下方面的努力(但正如我所说,这一次她让我失败了):

  1. 卸载 .NET Framework 1.1
  2. 重新安装 .Net Framework 1.1
  3. Followed KB 306005 内容如下:aspnet_regiis.exe -i
  4. 已尝试aspnet_regiis.exe-u-ua-c-enable code>
  5. 重新启动 IIS
  6. 文件夹

删除了框架 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):

  1. Uninstall .NET framework 1.1
  2. Reinstall .Net framework 1.1
  3. Followed KB 306005 which says about: aspnet_regiis.exe -i
  4. Tried the switches -u, -ua, -c and -enable for aspnet_regiis.exe
  5. Restarted IIS
  6. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

流星番茄 2024-10-25 07:14:13

我知道我错过了上面的东西。我今天能够通过执行以下操作来解决该错误:

  1. 卸载 IIS 5.1
  2. 重新启动 重新
  3. 安装 IIS 5.1
  4. 对已安装的版本 1.1.4322 执行 aspnet_regiis -i
  5. 重新启动
  6. 尝试制作新的 ASP.NET Web 应用程序并我能够制作一个。
  7. 尝试打开我上面帖子中的文件,但出现了新错误:
    无法从网络服务器获取项目文件。

嗯,这对我来说是一个新错误,另一个故事,我认为没有必要继续这个线程,因为标题就是这样说的。我必须继续前进并继续探索如何打开此文件。 ;)

再会。

I knew I am missing something above. I was able to pass through the error today by doing the following:

  1. Uninstalled IIS 5.1
  2. Reboot
  3. Reinstalled IIS 5.1
  4. Do aspnet_regiis -i of the installed version 1.1.4322
  5. Reboot
  6. Tried making a new ASP.NET web app and I was able to make one.
  7. Tried opening the file in my post above and it gave a new error:
    Unable 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.

一生独一 2024-10-25 07:14:13

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文