VS 2008:在调试器中启动 Silverlight 应用程序:各种随机错误

发布于 2024-08-11 21:05:54 字数 1288 浏览 7 评论 0原文

在调试我们的解决方案时,我们使用 Visual Studio 2008 SP1 得到了一系列令人恼火的错误对话框,该解决方案是一个包含 38 个项目的解决方案,其中包含一组 Silverlight 3.0 项目。这些错误看似随机,但它们变得如此频繁,以至于现在这是一个严重的生产力问题:在我应该削减代码的最后一个小时,我已经开始让我的解决方案在这里运行。

启动调试时会弹出各种错误。我们有大约 8 个控制台应用程序和一个在 IE6.0 中运行的 Silverlight 3.0 应用程序。我们正在使用 WCF 服务,并且我安装了 Resharper 4.5。

第一个是:

“无法启动程序 'http://localhost:1799/XXXXXXXXXXXX.aspx' 系统调用失败。”

调试不会自动停止,但当我单击“停止”时,它最终会出现错误:

“调试器无法终止一个或多个进程: “WebDev.WevServer.EXE:调试器仍在附加到进程。 调试器现在可能不稳定。建议您保存所有文件并退出。”

有时,该消息不会告诉您它无法分离的内容。在 Process Explorer 中,我可以看到 devenv.exe 进程下存在两个 WebDev.WevServer.EXE。当我杀死了 VS,即使 devenv.exe 消失了,这些进程仍然存在...

为什么会发生这种情况,为什么有两个进程?我不是来自 Web 开发背景...这些进程是什么? a

第二个错误是:

“无法启动程序 'http://localhost:1799/XXXXXXXXXXXX.aspx' OLE 已发送请求,正在等待回复。”

当我尝试停止调试时,VS 会弹出一个对话框,告诉我调试器尚未完成,但我可以尝试强制它停止。选择 yes 最终允许它停止 。

这些有一些变化:有时 IEXPLORE.EXE 进程会启动,但最终不在 Process Explorer 树中的 devenv.exe 下,并且必须手动终止它,其他时候 VS 会告诉我它正在等待很长时间 操作完成并询问我是否要切换任务,但实际上没有任何东西可以点击,而且我不太关心这个,因为它不太频繁,

这对我们来说确实是一个问题 。我最不需要的就是 5 次尝试中的 4 次需要重新启动 VS。团队中的一些开发人员每天重新启动 20 次以上......

感谢任何帮助......

We have been getting a range on infuriating error dialogs using Visual Studio 2008 SP1 when debugging our solution which is a 38 project solution with a group of Silverlight 3.0 projects. These errors are seemlingly random, but they are getting so frequent that it is a serious productivity problem now: I have been starting to get my solution running here for the last hour when I should be cutting code.

There are various errors that pop up when debugging is launched. We have about 8 console apps and one Silverlight 3.0 app that is running in IE6.0. We are using WCF Services and I have Resharper 4.5 installed.

The first is:

"Unable to start program 'http://localhost:1799/XXXXXXXXXXXX.aspx'
System call Failed."

Debugging does not automatically stop, but when I click stop it will eventually come up with an error:

"The debugger was unable to terminate one or more processes:
"WebDev.WevServer.EXE: The debugger is still attaching to the process.
The debugger may be unstable now. It is reccomended that you save all your files and exit."

Sometimes the message does not tell you what it is it cannot detach from. In Process Explorer I can see that two WebDev.WevServer.EXE exist under the devenv.exe process. When I kill VS, these remain behind even when devenv.exe is gone...

Why does this happen and why is there two of these processes? I don't come from a web development backgound...what are these processes? IIS substitutes?

The second error is:

"Unable to start program 'http://localhost:1799/XXXXXXXXXXXX.aspx'
OLE has sent a request and is waiting for a reply."

When I attempt to stop debugging, VS pops up a dialog telling me that the debugger has not completed, but I can attempt to force it to stop. Selecting yes eventually allows it to stop gracefully.

There are variations on these: sometimes the IEXPLORE.EXE process will start but end up not under devenv.exe in the Process Explorer tree and it has to be killed manually. Other times VS will tell me it is waiting for a long operation to complete and asks if I want to switch tasks, but nothing is actually clickable and devenv.exe has to be manually killed. I am less concerned about this one as it is less frequent.

This is REALLY becomming an issue for us, and the last thing I need is 4 out of 5 attempts to debug needing a VS restart. Some developers in the team are restarting 20+ times a day...

Any help appreciated...

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

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

发布评论

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

评论(1

蓝天白云 2024-08-18 21:05:54

我们问题的解决方案是不在 Visual Studio 中将任何 Silverlight 项目作为启动项目,并在 Windows 控制台应用程序启动后启动它们。看来这只是一个顺序/时间问题。

要单独运行 Silverlight 项目,我们右键单击项目文件,转到“调试”->“启动新实例”。

The solution to our problem has been to not have any of our Silverlight projects as startup projects in Visual Studio and to start them after the windows console applications have been launched. It is just a sequence / timing issue it seems.

To run the Silverlight projects seperately we right-click on the project file go to Debug->Start New Instance.

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