- The following error occurred during vs debugging:
[Plain]View PlainCopyprint?
- When the following module is generated, optimizations or no debug information are enabled:
- C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP. files\...\*. 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 code" debugger option is displayed.
Question 1:
1. Right-click on "Solution" and select "Configuration Manager" to change "release" to "Debug". (or: Build >> Configuration Manager >> Active solution configuration >>debug).
2. <compilation debug= "true"/>
3. Tools--Options---> Debug----> General--Disable "Start Just My Code".
4. Do not add the class library DLL that you want to reference in the references and Bin folders at the same time. In one of these additions, you delete the DLL class library that you referenced in the bin of your project file, and then re-add the references in your project.
Question 2:
The compiled directory has a PDB file that cannot be written to or an exception, and the workaround is as follows:
1) First delete the files of the corresponding project under the Windows\microsoft.net\framework\v2.0.50727\temporary ASP. NET files under the Exit project file, if the exception, restart IIS
2) If this dll,pdb file is restricted by VSS, check out these two files, and if it is a referenced DLL project file, delete the corresponding DLL in the bin directory of the current project and re-reference the DLL project file
3) Check the project file under bin in the DLL, PDB file properties, and remove the read-only attribute.
Since I previously banned the output of the PDB file when the project was generated, debug in debug mode with the above error, and then enable the output PDB file, debugging everything is OK.
To debug this module, change its project build configuration to debug mode. To suppress this message, disable the "Warn if no user code at startup" Debugger option