2011-11-21 13 views
1

背景; Webアプリケーションは.NET Framework 4.0用に開発されました。 Crystalレポート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 Runtime Engineは、Webサーバーにインストールされています。レポートはODBC、System DSN、SQL Serverドライバで動作するように構成されています。このドライバは、データベースに対するアクセス許可を持つSQL Serverユーザーアカウントで実行されます。アプリケーションから渡されるログオンパラメータはありません。検証するだけで、アプリケーションからログオンパラメータを渡すソリューションも試行されますが、問題は解決されません。Crystalレポート9.2、誤ったログオンパラメータ

注: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 

答えて

0

IISが実行されているプロファイルをドメインアカウントに変更するか、web.configファイルを変更してユーザーを偽装する必要があります。それ以外の場合は、レポートにlogoninfoを適用する必要があります。

関連する問題