2013-04-09 2 views
0

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"))

+1

문제가'sa' 사용자는, 다른 곳에 것 같다 당신이 제공 한 연결 문자열에는 사용되지 않았습니다. –

+0

http://support.microsoft.com/kb/889615 및 http://social.msdn.microsoft.com/Forums/en-US/sqlsecurity/thread/a1a371f8-7ed2-47f8-b155-a553d47fb6e9/ – Kashif

+0

sa 사용자가 활성화되어 있고 연결 문자열에서 데이터베이스에 연결할 수 있는지 확인하십시오 – davidb

답변

0

시도 연결 문자열

에 = SSPI통합 보안을 추가하거나 아래 링크를 참조

Login Failed 'sa'

+0

통합 보안 = SSPI ..하지만 사랑은 .. 이제는 보이지 않습니다. 사용자 '(null)'에 대한 로그인에 실패했습니다. 이유 : 신뢰할 수있는 SQL Server 연결과 연결되어 있지 않습니다. – Rajeev

관련 문제