Showing posts with label Visual Studio 2010. Show all posts
Showing posts with label Visual Studio 2010. Show all posts

Tuesday, July 9, 2013

"Unable to Start Debugging on the Web Server" error when hosting your web application on your local IIS

It works fine when you host your project using the Visual Studio Development Server, but when you choose IIS, you get this error.  Try the following from a command prompt:

%SystemRoot%\Microsoft.NET\Framework64\{version number goes here}\aspnet_regiis -i

I think this happens when IIS doesn't recognize the version of the .net framework that you are running.  So this might happen when you install a Service Pack for instance.  Anyway, this line of code makes the version known to IIS.  Keep in mind that if you are running version 3.5 that you find this aspnet_regiis executable in the folder for version 2.0.  3.5 shares a common CLR with 2.0.


Tuesday, May 28, 2013

Internet Explorer 10 breaks debugging with Visual Studio 2010

"Welcome to your new browser!"  Today, automatic updates installed the latest version of IE and I noticed that I got the following error when debugging from Visual Studio 2010:


After some research on the web, it looks like everyone gets this after installing IE 10.  The solution is to register the new IE10 debugger dll.  Apparently, this would happen if you installed Visual Studio after you installed your browser (which is normally what happens).  So use this command as an admin:
regsvr32 "%ProgramFiles%\Internet Explorer\msdbg2.dll"
If you are using a 64 bit box, then use the command prompt here:
C:\Windows\SysWOW64\cmd.exe
Otherwise, just use the standard command prompt.  Remember to run it as administrator.