1

I've been working with this C# project in VS2022 for months with no problems. All of a sudden when I try to debug and view content of variables I get:

Unable to evaluate within module 'MyModule' (guid): the module metadata is invalid.

I did a rebuild, didn't fix. I deleted the obj and hidden .vs directory, rebuild, didn't fix. Breakpoints work, but no access to content of variables.

Any ideas on how to fix this?

1
  • A standard fix for odd errors is to use your Source Control system to remove all untracked files. I.e. git clean or equivalent. If that does not solve it you can revert to an earlier version and see if they build. Or check if it builds on another computer, ideally a CI server. Commented Nov 4 at 8:45

1 Answer 1

-1

Not sure why, but when I removed these items from the project, it started working again (it looks like the AssemblyVersion is what cause the issue):

    <Copyright>Copyright © 2022 Acme, Inc.  All Rights Reserved.</Copyright>
    <Description>Acme Super Program</Description>
    <AssemblyVersion>1.1.0.0</AssemblyVersion>
    <Authors>Acme, Inc.</Authors>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.