无法在Web服务器上启动调试。 Visual Studio 2008

时间:2022-09-03 19:59:17

I am running visual studio 2008 on vista business 64-bit. I am getting the following exception when I try to debug against IIS.

我正在64位Vista的Vista业务上运行visual studio 2008。当我尝试针对IIS进行调试时,我收到以下异常。

"Unable to start debugging on the web server. The object identifier does not represent a valid object".

“无法在Web服务器上启动调试。对象标识符不代表有效对象”。

IIS and Visual Studio are on the same box.

IIS和Visual Studio位于同一个框中。

I've tried adding Windows Authentication but no luck (my app requires forms authentication, fyi).

我已经尝试添加Windows身份验证但没有运气(我的应用程序需要表单身份验证,fyi)。

Any thoughts? I have a binding on the Web Site. The IIS app is a Web SIte not a virtual directly.

有什么想法吗?我在网站上有约束力。 IIS应用程序是Web SIte,而不是直接虚拟。

Thanks!

3 个解决方案

#1


You have switch on Windows Authentication in IIS

您已在IIS中启用Windows身份验证

#2


Is your pc and the webserver on the same Windows domain? If not, or there is a DMZ between your pc and the web server you could experience problems unless you've explicitly setup trust between the machines.

您的电脑和网络服务器是否位于同一个Windows域中?如果没有,或者您的PC和Web服务器之间存在DMZ,除非您在计算机之间明确设置信任,否则您可能会遇到问题。

#3


Go to IIS right click on your project go to Asp.Net tab change the version to your current verion you are using.

转到IIS右键单击您的项目转到Asp.Net选项卡将版本更改为您正在使用的当前版本。

This problem comes when you are using a higher version and decided to switch to a lower version and vice versa changing to your version might solve the problem

当您使用更高版本并决定切换到更低版本时会出现此问题,反之亦然更改为您的版本可能会解决问题

#1


You have switch on Windows Authentication in IIS

您已在IIS中启用Windows身份验证

#2


Is your pc and the webserver on the same Windows domain? If not, or there is a DMZ between your pc and the web server you could experience problems unless you've explicitly setup trust between the machines.

您的电脑和网络服务器是否位于同一个Windows域中?如果没有,或者您的PC和Web服务器之间存在DMZ,除非您在计算机之间明确设置信任,否则您可能会遇到问题。

#3


Go to IIS right click on your project go to Asp.Net tab change the version to your current verion you are using.

转到IIS右键单击您的项目转到Asp.Net选项卡将版本更改为您正在使用的当前版本。

This problem comes when you are using a higher version and decided to switch to a lower version and vice versa changing to your version might solve the problem

当您使用更高版本并决定切换到更低版本时会出现此问题,反之亦然更改为您的版本可能会解决问题