When I released the project to another server IIS, I downloaded the PDF file in the use of crystal reports, but the setDatabaseLogOn (user, PWD); the login database failed.

e.g.

Database logon failed.

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.Runtime.InteropServices.COMException: Database logon failed.

[COMException (0x8004100f): Database logon failed.]

   CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0

   CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +362

[LogOnException: Database logon failed.]

   CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) +909

   CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +471

   CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +823

   CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +156

   CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType) +115

   WebReportsf.ReportsMembers.PrintReports.CrystalReportsprintPDFhandler(String id, IList`1 lists) in E:\DataWorld\20151008________webReports\WebReportsf\WebReportsf\ReprtsMembers\PrintReprts.aspx.cs:188

   WebReportsf.ReportsMembers.PrintReports.Page_Load(Object sender, EventArgs e) in E:\DataWorld\20151008________webReports\WebReportsf\WebReportsf\ReprtsMembers\PrintReprts.aspx.cs:63

   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25

   System.Web.UI.Control.LoadRecursive() +71

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply