lundi 30 novembre 2015

System.Data.SqlClient.SqlException: Invalid object name 'GEO.AspNetUsers'

I developed the WEB API and a login page by VS2013, the database used by the WEB API is on the Azure cloud, i run the WEB API and login page direct from the VS2013 on my laptop, and they can work quite well(i can register user and login by calling the WEB API).

But once i publish the WEB API and the login page to the Azure Web APPS, and tried to login from there, i got the error as below:

Invalid object name 'GEO.AspNetUsers'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'GEO.AspNetUsers'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.**

I'm pretty sure that the table 'GEO.AspNetUsers' is exited in the database, and the database connection configured in the web.config is never changed.




Aucun commentaire:

Enregistrer un commentaire