Crystal报告9.2,登录参数不正确

时间:2011-11-21 06:55:32

标签: crystal-reports

背景; 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服务器中。报告配置为在ODBC,System DSN和SQL Server驱动程序上工作。此驱动程序在SQL Server用户帐户上运行,该帐户具有数据库权限。没有从应用程序传递的登录参数。只是为了验证,还尝试了从应用程序传递登录参数的解决方案,但问题仍未解决。

注意:已解决对IIS_WPG帐户的文件夹:C:\ Windows \ Temp,C:\ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files and web application。 '/ 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

1 个答案:

答案 0 :(得分:0)

您需要将运行IIS的配置文件更改为域帐户,或更改您的web.config文件以模拟用户。否则,您需要为报告应用logoninfo。