Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReportDocument.Load "invalid file name" Error

Status
Not open for further replies.

BoltonWolf

Programmer
Mar 31, 2006
1
GB
Hi,

I'm having a problem. I'm running ASP.Net 2005 and Crystal XI.

When I try to load a report using ReportDocument.Load(ReportPath) I get an invalid filename error.

This works fine when I use the ASP.Net Development web server, but if I use IIS on the same machine i get the error.

I've read a post about giving the ASP process access to C:\temp which I've tried but I still get the error.

I've posted a snippet of the code below incase it's something silly.

reportDocument1 = new ReportDocument()
reportDocument1.Load ("C:\Work\Common\PhysicalStock.rpt")

Many thanks in advance
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top