我的 IIS 7.5 上运行着两个网站。两者都在端口 80 上。由于它们都在同一端口上,因此我必须停止其中一个才能启动另一个。我没有使用内置的卡西尼服务器。使用 cassini 时调试工作正常。
我面临的问题是,当我尝试调试我的 mvc 应用程序(在第二个网站下创建)时,我收到错误:
无法在 Web 服务器上启动调试。意外的 DCOM 错误
尝试自动连接到远程网络时发生
服务器。尝试使用以下命令手动连接到远程 Web 服务器
“附加到进程”对话框。
Web 应用程序启用了 Windows 身份验证。有什么想法吗?
其他详细信息:我能够执行“附加到进程”并调试它。但无法使用F5进行调试
I've two web sites running on my IIS 7.5. Both on port 80. Since they are both on the same port, I have to stop one to start the other. I am not using the inbuilt cassini server. Debugging works fine when using cassini.
The problem I am facing is that when I try to debug my mvc application (which was created under the second website) I get the error:
Unable to start debugging on the web server. An unexpected DCOM error
occurred while trying to automatically attach to the remote web
server. Try manually attaching to the remote web server using the
'Attach To Process' dialog.
The web application has windows authentication enabled. Any ideas?
Additional details : I'm able to do a "attach to process" and debug it. But cannot debug using F5
发布评论
评论(2)
虽然我试图远程调试在不同机器上运行的简单 *.exe 应用程序,但我遇到了 OP 提到的非常相似的错误。
我遵循此 Microsoft 文档和以下步骤帮助解决了我的错误:
您可以按照下面的屏幕截图来实现相同的效果:
我不需要重新启动计算机。您也可以尝试这种方法,如果不起作用,请继续重新启动机器。
Although I was trying to remotely debug a simple *.exe application running on a different machine but I was getting very similar error mentioned by the OP.
I followed this Microsoft documentation and following below step helped resolve my error:
You can follow below screen shot to achieve the same:
I didn't require to reboot the machine. You can also try that way and if it doesn't work then go ahead the reboot the machine.
将网站的连接属性设置为应用程序用户。
Set the Connect as property of the website to Application user.