Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Here's my problem:

 

Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed.

 

 

Here's the source:

 

Line 40: Dim r As New CrystalDecisions.CrystalReports.Engine.ReportDocument()

 

Line 41: r.Load("\\MyServer\MyFolder\MyReport.rpt")

 

Specifically, this code ONLY fails under asp.net when the report file is located on another server. Said another way, this code always works in a vb.net app no matter where the report file is located. In asp.net, however, it only works when the file is local. That led me to think it was a permissions issue, but the following works in my asp.net app:

 

Dim r As New CrystalDecisions.CrystalReports.Engine.ReportDocument()

If IO.File.Exists("\\MyServer\MyFolder\MyReport.rpt") Then

IO.File.Copy("\\MyServer\MyFolder\MyReport.rpt", "c:\MyFolder\MyReport.rpt", True)

r.Load("c:\MyFolder\MyReport.rpt")

End If

 

 

If IO can find and copy the file, then doesn't that imply that I have handled IIS security, impersonation, and any ACL issues correctly? I'm really out of my league here, but it seems like the reportdocument object is operating under a different authorization scheme than the rest of the app.

 

Any help at all would be apreciated.

 

RudePuppy

  • Moderators
Posted

At least you found a workaround for now, in the mean-time you find some help at CR ...http://support.crystaldecisions.com/library/kbase.asp?ref=default.asp_selectlist

 

Although, I searched (briefly) their site and found nothing.

Visit...Bassic Software
Posted

I recall having a similar problem a while ago. It was resolved by doubling up the \ in the Unc path name so \\MyServer\MyFolder\MyReport.rpt would become \\\\MyServer\\MyFolder\\MyReport.rpt.

 

I dont know whay it worked though!

 

Hope this helps.

  • 1 year later...
Posted

Thanks for the links... I am wading through. Although it seems like you had an issue acessing SQL Server not the Crystal Report.

 

I am able to run the Crystal Report with no problems when I stored the report on C: but when I move the report to a server so they can be shared I get the Load Report Failed. The other strange thing is that I can access the report in a VB.Net application but not in my ASP.Net application.

 

Thanks again for the links.

 

Keri

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...