Visual Studio 2019: Source information is missing from the debug information for this module

Elba 141 Reputation points
2021-06-17T04:28:17.123+00:00

I am using Visual Studio 2019. The Program was executing fine. I made a few harmless code changes and now suddenly the program does not run at all. When I execute, it displays the error message in the picture below.

106369-msg.jpg

This is what the solutions explorer property tab looks like

106387-properties.jpg

Any thoughts on what I can do to fix this problem?

Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. PengGe-MSFT 3,381 Reputation points
    2021-06-18T09:21:30.683+00:00

    Hi @Elba

    Welcome to Microsoft Q&A!

    Please confirm that the references your application depends on have not been deleted.
    You can try the following methods:

    1). TOOLS->Options->Debugging->General, disable "Require source files to exactly match the original version" .
    2). TOOLS->Options->Debugging->Symbols, enable the Microsoft Symbols Server.
    3). TOOLS->Options->Debugging, check "Enable Just My Code' and "use Manage/Unmanage mode".

    Clear the solutions generated by the last build, then rebuild your app.

    We look forward to hearing from you.

    Sincerely,
    Peng
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.