How to fix "Operation is not valid due to the current state of the object."

Dũng Tiến 0 Reputation points
2025-03-01T01:10:34.3433333+00:00

When I use aspnet-codegenerator I get this error even though I could use it normally before. How can I fix it? Thank you everyone !!

{336695AB-E7E4-4EDD-B487-EE3206925CEF}

Developer technologies | ASP.NET | ASP.NET API
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 78,086 Reputation points Volunteer Moderator
    2025-04-24T18:29:04.82+00:00

    do a clean and successful rebuild of the project before running the tool.

    0 comments No comments

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.