Null reference pointer was passed to the stub when not debugging with IE

ScottG picture ScottG · Oct 18, 2013 · Viewed 16.3k times · Source

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

enter image description here

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 can run without debugging, then attach to IISExpress and that works, but I can't start with an F5. Any clues?

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

EDIT: 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.

Answer

Kevin Ross picture Kevin Ross · Oct 21, 2013

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 opens the default browser instead of Internet Explorer