SQL Server 2000에서 유지 관리되는 데이터베이스의 데이터 바인딩을 사용하여 asp.net 4.0에서 개발 된 asp.net 웹 사이트가 있습니다. localhost에서 잘 작동하지만 IIS에 배포 할 때 오류가 발생한 페이지가 실행 중일 때IIS 7.5에서 게시 된 웹 사이트를 실행하는 동안 오류가 발생했습니다.
Login failed for user 'testuser'. Reason: Not associated with a trusted SQL Server connection.
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.OleDb.OleDbException: Login failed for user 'testuser'. Reason: Not associated with a trusted SQL Server connection.
소스 오류 :
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.
- 내가 혼합 모드 인증 및 SQL Server 2008를 사용하고 내 시스템 나는 다음과 같은 연결 문자열을 사용하고
- 을에 설치되어 내 .cs 페이지
using (OleDbConnection con3 = new OleDbConnection("Provider=SQLOLEDB;Data Source=sbs;User ID=testuser;Passwrd=pinkCITY01;Initial Catalog=PCGnet"))
문제가'sa' 사용자는, 다른 곳에 것 같다 당신이 제공 한 연결 문자열에는 사용되지 않았습니다. –
http://support.microsoft.com/kb/889615 및 http://social.msdn.microsoft.com/Forums/en-US/sqlsecurity/thread/a1a371f8-7ed2-47f8-b155-a553d47fb6e9/ – Kashif
sa 사용자가 활성화되어 있고 연결 문자열에서 데이터베이스에 연결할 수 있는지 확인하십시오 – davidb