背景; Web應用程序是爲.NET Framework 4.0開發的。它具有水晶報告9.2集成。應用程序運行集成Windows身份驗證。當我們執行Visual Studio 2010的解決方案時,水晶報表運行正常。將同一報表部署到服務器時(Web Server-OS:Windows Server 2003-SP2-32bit。DB Server-OS:Windows Server 2003-32bit )發生以下錯誤,不正確的登錄參數。用於.net framework 4.0的Crystal Report運行時引擎已安裝在Web服務器中。報告被配置爲使用SQL Server驅動程序在ODBC,System DSN上工作。此驅動程序在具有數據庫權限的SQL Server用戶帳戶上運行。沒有從應用程序傳遞的登錄參數。爲了驗證,還嘗試了從應用程序傳遞登錄參數的解決方案,但問題未得到解決。水晶報告9.2,不正確的登錄參數
注意:要解決文件夾上C:\ Windows \ Temp,C:\ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files和Web應用程序上的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