如何正确调试本地IIS 7.5 Web应用程序使用VS 2010 Beta2的? [英] How to correctly debug web applications on local IIS 7.5 with VS 2010 Beta2?

查看:411
本文介绍了如何正确调试本地IIS 7.5 Web应用程序使用VS 2010 Beta2的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是那种新开发web应用Asp.net项目,同时在本地IIS运行它们。直到现在我用了使用Visual Studio开发服务器选项。
我使用Visual Studio 2010 Beta 2中。

I'm sort of new to developing Asp.net webapplication projects while running them on a local IIS. Till now I used the 'Use Visual Studio Development Server' option. I'm using Visual Studio 2010 Beta 2.

编辑:不太复杂的样品code

继code样品:<​​/ P>

Following code sample:

        List<string> _list = new List<string>();
        _list.Add("asd");
        _list.Add("asd2");
        _list.Add("asd3");

现在我想调试通过一些线codeS与/步 _list 。结果
当使用使用Visual Studio开发服务器'我可以看到在快速监视 _list 的内容。结果
如果我选择通过同一块code的使用本地IIS Web服务器'和调试,快速监视试图通过展示我纺车约10秒所得'的功能evalutation显示我相同的价值观disabeld因为previous功能评价;超时。你必须继续执行以重新启用功能的评价; 的消息。

Now I want to debug / step through some line of codes with _list.
While using 'Use Visual Studio Development Server' I can see the contents of _list in the quick watch.
If I select 'Use Local IIS Web server' and debug through the same piece of code, the quickwatch tries to display me the same values by showing me a spinning wheel for about 10 seconds with a resulting 'Function evalutation disabeld because a previous function evalution timed out. You must continue execution to reenable function evalution' message.

后来我得到了Windows错误对话框中发生的w3wp.exe的 Unhandeld的win32异常[844]刚刚在时间调试器没有必要的安全权限推出..

Afterwards I get a windows error dialog with 'Unhandeld win32 exception occured in w3wp.exe [844] The Just-In Time debugger was launched without necessary security permission..'

我做的运行Visual Studio 2010 Beta 2中以管理员身份。我开始由pressing F5调试。看来,我真的不能调试这种方式。我无论如何都必须附上VS debuggerto IIS进程?如果是的话,该怎么办呢?

I do run Visual Studio 2010 Beta 2 as Administrator. I start debugging by pressing F5. It seems that I can't really debug this way. Do I somehow have to attach the VS debuggerto the IIS process? If yes, how to do so?

我在做什么错了,怎么解决呢?

What am I doing wrong, and how to solve it?

顺便说一下,这是错误的行为新的VS 2010年?我从来没有expierencied,在VS 2008。

And by the way, is that erroneous behaviour new in VS 2010? I've never expierencied that in VS 2008.

推荐答案

我找到了解决办法。在IIS启用Windows身份认证为我的网站后,它的工作。希望这可以帮助任何人在未来。

I found the solution. After enabling Windows Authentification for my Website in the IIS it worked. Hope this helps anybody in the future.

这篇关于如何正确调试本地IIS 7.5 Web应用程序使用VS 2010 Beta2的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆