简体   繁体   English

天蓝色的成员资格System.Data.SqlClient.SqlException:Azure中用户“ {your_username}”的登录失败

[英]azure membership System.Data.SqlClient.SqlException: Login failed for user '{your_username}' in Azure

I'm trying to deploy an old membership database and asp.net, the issue comes into play when deploying the application to Azure. 我正在尝试部署一个旧的成员数据库和asp.net,当将该应用程序部署到Azure时,这个问题就开始起作用了。 I'm connected to database in Azure with localhost and when I can run the application locally while still connected to Azure Database(white Listed my IP) I can login in fine. 我连接到数据库在Azure中与本地主机,当我可以在本地运行应用程序,同时还连接到Azure数据库(白名单我的IP),我可以在精细登录。

The issue comes when I publish my website to Azure with all the same settings I did locally. 问题是当我发表我的网站,所有我在本地做了同样的设置到Azure。 I'm still pointing at the Azure database from before but I get a SQL error when trying to run Membership.ValidateUser System.Data.SqlClient.SqlException: Login failed for user '{your_username}' in Azure. 我仍然指向以前的Azure数据库,但是尝试运行Membership.ValidateUser System.Data.SqlClient.SqlException时遇到SQL错误:Azure中用户“ {your_username}”的登录失败。

I've spend a lot of time trying to figure out what's going. 我花了很多时间试图弄清楚发生了什么。 any help would be always be appreciated. 任何帮助将不胜感激。

I found the answer to the problem. 我找到了问题的答案。 Connection string needed this Encrypt=True; 连接字符串需要此Encrypt = True; MultipleActiveResultSets=False; MultipleActiveResultSets = False; TrustServerCertificate=False;Connection Timeout=30; TrustServerCertificate = False;连接超时= 30;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用户的Azure登录失败? System.Data.SqlClient.SqlException - Azure Login failed for user? System.Data.SqlClient.SqlException System.Data.SqlClient.SqlException:用户“ user”的登录失败 - System.Data.SqlClient.SqlException: Login failed for user 'user' System.Data.SqlClient.SqlException:用户“”登录失败 - System.Data.SqlClient.SqlException: Login failed for user '' 如何修复 System.Data.SqlClient.SqlException:用户登录失败 - How to fix System.Data.SqlClient.SqlException: Login failed for user System.Data.SqlClient.SqlException:用户“ sa”的登录失败 - System.Data.SqlClient.SqlException: Login failed for user 'sa' System.Data.SqlClient.SqlException:用户“ ...”的登录失败 - System.Data.SqlClient.SqlException: login failed for user '…' System.Data.SqlClient.SqlException:用户登录失败 - System.Data.SqlClient.SqlException: Login failed for user System.Data.SqlClient.SqlException:“用户 'sa' 登录失败。” - System.Data.SqlClient.SqlException: 'Login failed for user 'sa'.' 错误:基础提供程序在打开时失败。 用户的system.data.sqlclient.sqlexception登录失败 - Error: the underlying provider failed on open. system.data.sqlclient.sqlexception login failed for user System.Data.SqlClient.SqlException:用户“NT AUTHORITY\\ANONYMOUS LOGON”登录失败 - System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM