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

Source: Internet
Author: User

    1. The following error occurred during vs debugging:
[Plain]View PlainCopyprint?
    1. When the following module is generated, optimizations or no debug information are enabled:
    2. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP. files\...\*. Dll
    3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.