c# - MVC 5 UserManager.FindAsync throwing error when deployed on azure -
i have asp.net mvc 5 website connects remote sql database.
the website works fine when it's running visual studio iis express.
however, when deploy website on azurewebsites , attach debugger on login function, see usermanager.findasync function redirects me general error view page.
this usermanager checks if user exists:
var user = await usermanager.findasync(model.username, model.password);
and web.config connection string:
<add name="defaultconnection" connectionstring="data source=87.87.87.87,1433;initial catalog=dbname;integrated security=false; user id=username; password=password" providername="system.data.sqlclient" />
this website works when it's deployed elsewhere well.
the problem occurs when it's deployed on azurewebsites.
Comments
Post a Comment