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

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

问题描述

在 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.

我可以在不调试的情况下运行,然后附加到 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探索者

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

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