I have used crystal report with VS2010 with IIS 7. I can connect the DB from WEB application. However, it throws "Logon Failed", if the application run with IIS 7.
I tried with following VB.NET code
Dim boConnectionInfo As New ConnectionInfo()
boConnectionInfo.ServerName = ConfigurationManager.AppSettings("CRServerName").ToString
boConnectionInfo.DatabaseName = ConfigurationManager.AppSettings("CRDatabaseName").ToString
boConnectionInfo.UserID = ConfigurationManager.AppSettings("CRUserID").ToString
boConnectionInfo.Password = ConfigurationManager.AppSettings("CRPassword").ToString
boReportDocument.VerifyDatabase()
boReportDocument.Refresh()
it throws following exceptions
Log on failed. at CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase() at IPSReport.btnViewPort_Click(Object sender, EventArgs e) in C:\inetpub\wwwroot\IPS_CrysRpt_VS2010\Report.aspx.vb:line 383 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Could you please help me out to find the cause of error and solutions for it?
Thanks VG