Project has invalid metadata

Swaim,Michael P 1 Reputation point
2021-10-28T15:54:01.423+00:00

I'm trying to debug a web service using Visual Studio 2019 Enterprise and iis Express. When I hit a breakpoint. and try to inspect any variables, I get the error, "The Metadata for 'DMITrialServices' is invalid." Any clue how to fix this?
It's a debug build, and I've tried cleaning and rebuilding the solution, to no avail. I've also tried wiping the ASP.Net temporary directory, once I found it.
I'm running Windows 10 Enterprise version 1809. Updates are controlled by my organization, so I can't go to the latest version of Windows 10.
The application's framework version is 4.6.1.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,573 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
935 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,381 Reputation points Microsoft Vendor
    2021-10-29T09:39:02.273+00:00

    Hi @Swaim,Michael P ,

    Welcome to Microsoft Q&A!

    Does it occur in specific project?
    Please close all instances of Visual Studio and try to upgrade your VS to the latest version through VS installer > Update.
    Then, delete the hidden .vs folder in the project folder and re-launch your Visual Studio to try again.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.

    0 comments No comments