locked
Cannot find the object "xxx" because it does not exist or you do not have permissions. RRS feed

  • Question

  • User521171331 posted

    Hi, after I run this command in package manager console, suddenly I am stuck with this error. Even after I recreate my database, it is still the same. I have also deleted the migrations folder and run "enable-migrations" and "add-migration" but still the same issue.

    Can someone help please?

    PM> update-database
    Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
    Applying explicit migrations: [201705111245499_i].
    Applying explicit migration: 201705111245499_i.
    System.Data.SqlClient.SqlException (0x80131904): Cannot find the object "dbo.Product" because it does not exist or you do not have permissions.

    Wednesday, May 10, 2017 4:52 PM

All replies