I lost almost 6 hours on this issue.
One of my VS 2005 ASP .net project was working perfectly in server and devolopment machine. I converted it from web site to web application. But after this, crystal reports started to throw errors in the server, it is still working in the local devolopment environment. Error is a general one "Load Report Failed", which can happen due to various reasons.
At last we found that the problem was with publishing our website through VS 2005 and our rpt files were not copied to publish folder due to some starnge reason. In the code we were trying to load report file from that folder thats why it was giving error as Load Report Failed....
So if you found this issue first check whether report folder contains .rpt files. If it is not there you can resolve this issue by copying .rpt files into the corresponding folders.
The build action for a file can be changed in the property window when the file is selected in the solution explorer.
One of my VS 2005 ASP .net project was working perfectly in server and devolopment machine. I converted it from web site to web application. But after this, crystal reports started to throw errors in the server, it is still working in the local devolopment environment. Error is a general one "Load Report Failed", which can happen due to various reasons.
- Checked Permissions, rights...
- Checked versions of CR in the server and devolopment machine
- Changed registry value (max print limit)
- Rebuild, published , restarted IIS several times
At last we found that the problem was with publishing our website through VS 2005 and our rpt files were not copied to publish folder due to some starnge reason. In the code we were trying to load report file from that folder thats why it was giving error as Load Report Failed....
So if you found this issue first check whether report folder contains .rpt files. If it is not there you can resolve this issue by copying .rpt files into the corresponding folders.
The build action for a file can be changed in the property window when the file is selected in the solution explorer.
Comments
Post a Comment