【发布时间】:2011-01-16 09:55:47
【问题描述】:
更新:
忘了提到,当我尝试以 asp.net 会员用户(sql 会员提供者)身份登录时,应用程序只会中断并显示该错误,在此之前一切都很好,应用程序与 sql 通信也很好。
我正在编写一个使用 asp.net sqlmembership 并通过 VPN 远程连接到 SQL Server 2008 数据库的 asp.net 应用程序,
连接字符串:
add name="MonoSqlServer" connectionString="Data Source=MONO;
Initial Catalog=SMSPortal;Integrated Security=SSPI;"
如果我使用 Visual Studio 附带的内置 http 服务器,这将完美运行,但如果我将其部署到本地 IIS(与内置服务器相同的机器),我会遇到异常:
Exception Details: System.Data.SqlClient.SqlException: Login failed.
The login is from an untrusted domain and cannot be used with Windows authentication.
我做错了什么?
【问题讨论】:
标签: asp.net sql-server-2008 asp.net-membership