Hello:
My program runs fine on my workstation however, once I promoted to our server I received the following error message when trying to launch my report through my browser.
I made sure I installed the proper runtime engine on our Windows Server and I followed the instructions from the "SAP Crystal Reports .NET SDK Developer Guide" under the "Create a new web site deployment project with windows installer" section.
I appreciate any guidance in relation to this issue you can give me.
[HttpException (0x80004005): 'F:/Reports/ClosedQuotations/PICClosedQuotations.rpt' is a physical path, but a virtual path was expected.]
System.Web.Util.UrlPath.CheckValidVirtualPath(String path) +8843873
System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +136
System.Web.VirtualPath.Combine(VirtualPath relativePath) +130
System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +84
System.Web.HttpRequest.MapPath(VirtualPath virtualPath) +37
System.Web.HttpServerUtility.MapPath(String path) +99
CrystalDecisions.Web.CrystalReportViewerBase.set_ReportSource(Object value) +311
CrystalDecisions.Web.CrystalReportViewer.set_ReportSource(Object value) +71
PIC_ClosedQuotations.ClosedQuotations.ConfigureCrystalReports() +126
PIC_ClosedQuotations.ClosedQuotations.Page_Init(Object sender, EventArgs e) +37
System.Web.UI.Control.OnInit(EventArgs e) +91
System.Web.UI.Page.OnInit(EventArgs e) +12
System.Web.UI.Control.InitRecursive(Control namingContainer) +140
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.272
Below is my VB code that's used in my program.
Private
Sub ConfigureCrystalReports()
Dim reportPath As String = Server.MapPath("PICClosedQuotations.rpt"
Dim myConnectionInfo AsConnectionInfo = NewConnectionInfo()
CrystalReportViewer1.ReportSource = reportPath
SetDBLogonForReport(myConnectionInfo)
myConnectionInfo.ServerName =
"server"
myConnectionInfo.DatabaseName =
"blah"
myConnectionInfo.UserID =
"blahblah"
myConnectionInfo.Password =
"blahha"
EndSub