2011-11-21 5 views
1

배경; 웹 응용 프로그램은 .NET Framework 4.0 용으로 개발되었습니다. Crystal Reports 9.2 통합이 있습니다. 응용 프로그램은 Windows 통합 인증에서 실행됩니다. Crystal Reports는 Visual Studio 2010에서 실행되는 솔루션에서 실행할 때 제대로 작동합니다. 동일한 보고서가 서버에 배포 될 때 (Web Server-OS : Windows Server 2003-SP2-32bit, DB Server-OS : Windows Server 2003-32bit) 다음 오류가 발생하면 로그온 매개 변수가 잘못되었습니다. .NET Framework 4.0 용 Crystal Report 런타임 엔진이 웹 서버에 설치되었습니다. 보고서는 SQL Server 드라이버가있는 ODBC, System DSN에서 작동하도록 구성됩니다. 이 드라이버는 데이터베이스에 대한 권한이있는 SQL Server 사용자 계정에서 실행됩니다. 응용 프로그램에서 전달 된 로그온 매개 변수가 없습니다. 확인하기 만하면 응용 프로그램에서 로그온 매개 변수를 전달하는 솔루션도 시도되지만 문제는 해결되지 않습니다.Crystal 보고서 9.2, 잘못된 로그온 매개 변수

참고 : C : \ Windows \ Temp, C : \ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ 임시 ASP.NET 파일 및 웹 응용 프로그램 폴더의 IIS_WPG 계정에 대한 전체 액세스가 제공됩니다. '/ XXXX'응용 프로그램의 서버 오류입니다.

________________________________________ 
Error in File E:\WebApps\XXXX\Reports\CompanyStandard.rpt: 
Unable to connect: incorrect log on parameters. 
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: CrystalDecisions.CrystalReports.Engine.LogOnException: Error in File E:\WebApps\XXXX\Reports\CompanyStandard.rpt: 
Unable to connect: incorrect log on parameters. 

Source Error: 
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. 

Stack Trace: 

[LogOnException: Error in File E:\WebApps\XXXX\Reports\CompanyStandard.rpt: 
Unable to connect: incorrect log on parameters.] 
    . N(String -, EngineExceptionErrorID 0) +582 
    . I(Int16 !, Int32 ") +277 
    CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext) +429 
    CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext) +172 
    CrystalDecisions.Web.ReportAgent.|(Boolean Z) +223 
    CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +165 
    System.Web.UI.Control.PreRenderRecursiveInternal() +103 
    System.Web.UI.Control.PreRenderRecursiveInternal() +175 
    System.Web.UI.Control.PreRenderRecursiveInternal() +175 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496 

답변

0

IIS가 도메인 계정으로 실행되는 프로필을 변경하거나 web.config 파일을 변경하여 사용자를 가장해야합니다. 그렇지 않으면 보고서에 logoninfo를 적용해야합니다.

관련 문제