Anyone have any idea why this would happen? I think this may be the last straw for me with Crystal Reports.... a bloated, buggy, poorly supported product in comparison to its early days (was absolutely fantastic). I'm using VS.NET 2005 (Visual Basic.net), .Net 2.0 Framework, and CR XI R2. I've checked references, reinstalled CRXI R2. I've confirmed the report exists and works...
Dim reportlocationname As String = "C:\inetpub\mysite\myrepor
t.rpt"
Dim crReportDocument As New CrystalDecisions.CrystalRe
ports.Engi
ne.ReportD
ocument()
crReportDocument.Load(repo
rtlocation
name, CrystalDecisions.Shared.Op
enReportMe
thod.OpenR
eportByTem
pCopy) '<<FAILS HERE
crReportDocument.SetDataba
seLogon(Co
nfiguratio
nManager.A
ppSettings
("cr_user"
), ConfigurationManager.AppSe
ttings("cr
_password"
), ConfigurationManager.AppSe
ttings("cr
_server"),
ConfigurationManager.AppSe
ttings("cr
_database"
))
CrystalReportViewer1.Repor
tSource = crReportDocument
Load report failed.
at CrystalDecisions.ReportApp
Server.Rep
ortClientD
ocumentWra
pper.Ensur
eDocumentI
sOpened()
at CrystalDecisions.CrystalRe
ports.Engi
ne.ReportD
ocument.Lo
ad(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalRe
ports.Engi
ne.ReportD
ocument.Lo
ad(String filename)
at ASP.reports_view_aspx.Page
_Load(Obje
ct sender, EventArgs e) in C:\Inetpub\phgateway\repor
ts\view.as
px:line 30
at System.Web.Util.CalliHelpe
r.EventArg
FunctionCa
ller(IntPt
r fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEvent
HandlerDel
egateProxy
.Callback(
Object sender, EventArgs e)
at System.Web.UI.Control.OnLo
ad(EventAr
gs e)
at System.Web.UI.Control.Load
Recursive(
)
at System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt)
Start Free Trial