How to constantly train Visual Studio to detect my debugging information?

Using Visual Studio 2012, you may also have seen this message:

enter image description here

It says:

The following module was created either with optimization enabled or without debugging information:

C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET files \ root \ 6dce49fa \ 6c454827 \ assembly \ dl3 \ 95d61873 \ 9871ffdd_4288ce01 \ NoeDownloadbereichWeb.dll

To debug this module, change its project build configuration to Debug Mode. To suppress this message, disable the 'Warn if user code is missing run' debugger.

In the past, I got this, maybe once a week, when I started debugging an ASP.NET application and letting it just recompile my solution.

I recently switched to IIS Express, this happens every second / third time when I want to debug my code after the changes.

I enable it with one or more of the following steps:

  • Rebuild my application (helps most of the time)
  • Close IIS Express and rebuild my application
  • Reboot Windows 8 and rebuild my application

I found similar questions here and on Google and still unable to resolve this for a long time.

My question is:

Can you imagine what causes this behavior from time to time?

Update 1

It seems that the error is related to / after an ASP.NET error message like (German):

Das Erstellen von "System.Net.Http.Extensions" or an earlier version of Schattenkopie ist nicht möglich, wenn diese Datei bereits vorhanden ist.

Which roughly translates into English:

Unable to create / shadow copy of "System.Net.Http.Extensions" if this file already exists.

(The name of the referring file "System.Net.Http.Extensions" is accidentally changed by ASP.NET)

Update 2

I return to Visual Studio Development Server and immediately got rid of the errors described above:

enter image description here

I do not know if this is the case in my system or what is the reason for this.

+7
visual-studio-2012 asp.net-mvc-4 iis-express visual-studio-debugging
source share
1 answer

Go to "Tools"> "Options"> "Debugging"> "General"> "Include only my code"> "Warn" if the user code at startup

tools options screenshot

+15
source share

All Articles