c# - Having trouble with SignInAsync -
i having trouble implementing existing database user credentials new mvc5 application. error got when running code, , attemtping log in credentials existing database. i've never customized authentication on mvc project, i've used controllers come along mvc project. error getting.
a network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: sql network interfaces, error: 26 - error locating server/instance specified) if type in wrong credentials "invalid username/password" error, knows database there. when input correct credentials throws error out. idea be?
private async task signinasync(applicationuser user, bool ispersistent) { authenticationmanager.signout(defaultauthenticationtypes.externalcookie); var identity = await usermanager.createidentityasync(user, defaultauthenticationtypes.applicationcookie); authenticationmanager.signin(new authenticationproperties() { ispersistent = ispersistent }, identity); } also method source error pointing to.
not sure if answer, me, issue in past... if using sql azure have configure remote server access via ip address.
to make sure ip allowed access database, go azure -> select database -> dashboard -> allowed ip addresses -> add ip list.
Comments
Post a Comment