Visual Studio 2003 - 打开 ASP.NET 项目 - 出现“操作超时” 错误信息

发布于 2024-07-13 03:03:12 字数 261 浏览 4 评论 0原文

有时,当我打开 Visual Studio 2003 ASP.NET 项目时,它似乎要永远加载,然后最终显示以下错误消息:

“Web 服务器在尝试创建或 打开位于以下 URL 的 Web 项目: http://localhost/myprojectname。 操作超时。”

知道为什么会发生这种情况以及如何修复它吗?

Occasionally, when I open a visual studio 2003 ASP.NET project it seems to spend forever loading up then finally displays the following error message:

"The web server reported the following error while attempting to create or
open the web project located at the following URL:
http://localhost/myprojectname. The operation timed out."

Any idea why this happens and how to fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

惜醉颜 2024-07-20 03:03:12

对我来说,修复方法是取消注册 .net 的重新注册 iis:

打开命令窗口并导航到 C:\windows\microsoft.net\framework\v1.1.4322
输入 aspnet_regiis -u
完成卸载 ASP.NET 后,在 apsnet_regiis -i 中键入,

仅执行 aspnet_regiis -i 本身不起作用。

仍然不确定为什么会发生这种情况,但可能与在 Eclipse\Java\JBoss 到 VS2003\C#\IIS 之间切换开发环境有关

The fix for me was to unregister the re-register iis for .net:

Open command window and navigate to C:\windows\microsoft.net\framework\v1.1.4322
Type in aspnet_regiis -u
Once finished uninstalling ASP.NET type in apsnet_regiis -i

Just performing aspnet_regiis -i by itself did not work.

Still unsure as to why this is happening but probably something to do with switching dev environments between Eclipse\Java\JBoss to VS2003\C#\IIS

半寸时光 2024-07-20 03:03:12

这对我有用...

http://forums.asp.net/p/1192304 /2066860.aspx

在我的 XP 开发计算机上,我转到“C:\Documents and Settings\USERNAME\VSWebCache\USERNAME\”并删除了与我的 VS2003 解决方案名称匹配的文件夹。 (实际上我将文件夹移至 C:\Temp 以防万一)。 这是有效的,尽管一个设计器文件如果不重新构建就无法加载,并且需要重新标记启动页面。 我不明白为什么我的解决方案依赖于这个 VSWebCache(当我重新构建我的解决方案时它重新出现。)任何人都可以解释这种依赖性吗? 这令人不安。

This worked for me...

http://forums.asp.net/p/1192304/2066860.aspx

On my XP development machine I went to "C:\Documents and Settings\USERNAME\VSWebCache\USERNAME\" and deleted the folder matching my VS2003 solution name. (Actually I moved the folder to C:\Temp just in case). This worked, although one designer file would not load without a re-build and the start-up page needed to be re-marked. I don't understand why my solution depends on this VSWebCache (it re-appeared when I re-built my solution.) Can anyone explain this dependence? It's un-settling.

傲鸠 2024-07-20 03:03:12

这对我有用。 希望它也对你们有用。

最初,我尝试了很多事情:

  1. 打开命令窗口并导航到 C:\windows\microsoft.net\framework \v1.1.4322 输入 aspnet_regiis -u 一旦完成卸载 ASP.NET,输入 aspnet_regiis -i (它有时但并非总是有效)。

  2. 我尝试按照一些论坛的答案清除 Visual Studio 2003 的 vswebcache,但没有成功。

最后,我使用了自己的技术,它对我有用。 我为没有加载的项目使用了旧的 dll,并且我用旧项目 dll 替换了该 dll。 之后我的项目被加载到 Visual Studio 2003 中。将会有一个带有项目名称的 dll 和 pnb 文件,该文件有时会被损坏,并且您的项目将无法加载到 IDE 中。

因此,如果您遇到类似的问题,那么您有两个选择:

1)用旧的 dll 替换 Dll。
2)删除带有项目名称的Dll和pnb文件,然后尝试重新加载它。(删除dll不会影响您的代码和其他dll)。

希望它也对你有用:)

This Worked for me. Hopefully it will work for you people also.

Initially, I had tried these many things :

  1. Open command window and navigate to C:\windows\microsoft.net\framework \v1.1.4322 Type in aspnet_regiis -u Once finished uninstalling ASP.NET type in aspnet_regiis -i (It was working sometimes but not always).

  2. I tried by Clearing the vswebcache of Visual studio 2003, as per some forum answer, but didn't work out.

Then finally, I used my own technique and it worked for me. I took the old dll's for the project which was not getting load and i had replaced the dll's with old project dll's. After that my project got load into visual studio 2003. There will be one dll and pnb file with name of project which will get corrupted sometime and your project wont get load into IDE.

So, if you face similar issue, then you have two options:

1) Replace the Dll's with old dll's.
2) Delete the Dll and pnb file with project name and try to reload it again.(Deleting the dll is not going to affect your code and other dll's).

Hopefully it will work for you too :)

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