Click here to Skip to main content
16,017,954 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a web app that I am working on and I deployed it to the server. When the user logs in to the web app and enter in some data into the textboxes and saves it to the database the user can also print out a Crystal Report. When the user clicks on print this error comes up:

HTML
 Error in File FormAReport {63A7C276-5058-451D-B107-409E99203136}.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 FormAReport {63A7C276-5058-451D-B107-409E99203136}.rpt:
Access to report file denied. Another program may be using it.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[COMException (0x80000220): Error in File FormAReport {63A7C276-5058-451D-B107-409E99203136}.rpt:
Access to report file denied. Another program may be using it.]
   CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +147
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +431

[CrystalReportsException: Load report failed.]
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +558
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1626
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +189
   SACSCOCLogin1._1.ReportFormA.Page_Load(Object sender, EventArgs e) in C:\Users\Public\Documents\Visual Studio 2010\Projects\SACSCOCLogin1.1\SACSCOCLogin1.1\ReportFormA.aspx.cs:45
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18447 


On my Deve computer the web app works. The user can see and print the report. How can I fix this? What else do I need on the server?

The server I have:

Windows Server 2012 64-bit
IIS 8

I deployed the web app using Publish Method: File System

Please Help!!! Thanks!!!
Posted

1 solution

 
Share this answer
 

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