Debug Project encountered error prompt, Visual Studio 2010 (or VS2008 or VS2005) when starting debugging, pop-up prompt message:
When the following module is generated, optimizations or no debug information are enabled:
C:\WINDOWS\Microsoft.NET\Frameword\v2.0.50727\Temporary ASP.
Files\3cmarket\bfbd519\8aa985a18\assembly\dl3\4051c514\d0da2e40_ba3ec701\adcontrol.dll
To debug this module, change its project build configuration to debug mode. To suppress this message, disable the "Warn at startup if no user generation" Debug option is displayed.
Reason:
The PDB file with the same name will be used when debugging. If the PDB file is not consistent with the DLL file version at the time of the build, the debug information will not be found.
Several solutions:
1. Right-click on "Solution" and select "Configuration Manager" to "release" The Bit "debug"
2. Tools--Options---> Debug----> General--Disable "Start My Code only"
3. Modify the Web. config, set <compilation debug= "true"/>
4. Manually copy the PDB file corresponding to the DLL in the past.
VS Cannot Start Debugging: "When the following module is generated, optimizations or no debug information are enabled"