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:DataWorld20151008________webReportsWebReportsfWebReportsfReprtsMembersPrintReprts.aspx.cs:188

   WebReportsf.ReportsMembers.PrintReports.Page_Load(Object sender, EventArgs e) in E:DataWorld20151008________webReportsWebReportsfWebReportsfReprtsMembersPrintReprts.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

New NetWeaver Information at SAP.com

Very Helpfull

User Rating: Be the first one !