Click here to Skip to main content
15,887,302 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a project which runs sucessfuly while debuging but there is still problem while running on localhost by IIS. Please can u help to solve this?
Error in File CrsItem {AA3D84EE-4409-42CA-8793-9D4EFC1F7F0A}.rpt:
Access to report file denied. Another program may be using it.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Error in File CrsItem {AA3D84EE-4409-42CA-8793-9D4EFC1F7F0A}.rpt:
Access to report file denied. Another program may be using it.

Source Error:


Line 34: rptDoc.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.DefaultPaperOrientation;
Line 35: // rptDoc.Load(Server.MapPath("../Pages/Test.rpt"));
Line 36: rptDoc.Load(Server.MapPath("../Pages/CrsItem.rpt"));
Line 37: //set dataset to the report viewer.
Line 38: rptDoc.SetDataSource(dt);
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900