当不使用IE进行调试时,Null引用指针被传递给stub [英] Null reference pointer was passed to the stub when not debugging with IE

查看:139
本文介绍了当不使用IE进行调试时,Null引用指针被传递给stub的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS2012中,我的Web项目总是调试得很好。我使用IIS Express。今天,我安装了VS 2013,当我按F5进行调试时,我得到了

In VS2012, my web project debugs fine like always. I use IIS Express. Today, I installed VS 2013 and when I press F5 to debug, I get

我无法找到任何地方的解决方案。我尝试清除临时文件,将端口号从7227更改为其他内容,删除iis express配置文件等。我甚至卸载并重新安装VS 2013。

I can't find a solution to this anywhere. I tried clearing out temp files, change the port number from 7227 to something else, deleting iis express config files, etc. I even uninstalled and re installed VS 2013.

I可以运行没有调试,然后附加到IISExpress,这是有效的,但我无法从F5开始。任何线索?

I can run without debugging, then attach to IISExpress and that works, but I can't start with an F5. Any clues?

编辑:发生在另一台机器以及新鲜安装的Windows 8.1和VS 2013

Happens on another machine as well with fresh install of windows 8.1 and VS 2013

编辑:解决方案:我将Silverlight作为调试器检查。我没有选中Silverlight,我可以使用F5调试使用Chrome或Firefox。显然,这里不是正确的,但是我也不需要Silverlight调试。

SOLUTION: I had Silverlight checked as a Debugger. I unchecked Silverlight and I was able to debug using Chrome or Firefox using F5. Obviously something isn't right here, but I don't need Silverlight debugging anyway.

推荐答案

我遇到这个问题导致IE不是默认浏览器。您可以通过以下回答来纠正这一点。

I had this problem and it was caused by IE not being the default browser. You can correct this by following this answer

Visual Studio打开默认浏览器而不是Internet Explorer

这篇关于当不使用IE进行调试时,Null引用指针被传递给stub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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