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}

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
420 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 75,051 Reputation points
    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.