Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends,
I'm working on web application, when i run source code and precompiled file on local as well on server its was working fine.
but after sumdays, when sumone deleted some temp file from server & install higher version of acrobat reader. the application starts giving error when user click on Print button to view reports.

error is..

Server Error in '/JagritiApollo' Application.
--------------------------------------------------------------------------------
Access is denied. 
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: Access is denied.
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 (0x80004005): Access is denied.
]
   CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +271
[CrystalReportsException: Load report failed.]
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +333
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +893
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84
   CRPurchaseOrder.ConfigurecrystalReport() +175
   CRPurchaseOrder.Page_Init(Object sender, EventArgs e) +5
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.Page.OnInit(EventArgs e) +12
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 


what should be the solution??
things i tried:
1. source code working fine on server as well as on my local pc.
2. i installed IIS after removing it on server.
3. also installed acrobat reader 9 on server even then problem is still remaining..
** Forms is running fine, the problem is comming only when user tries to click on print button to view reports.

Please help..
Posted
Updated 26-Sep-18 16:13pm
v3

Hi Vikas,

It seems somewhat permission issue of the file path from where you are accessing the file.

Give appropriate permissions to the file.

It may solve your problem

Hope this helps
 
Share this answer
 
Comments
Vikas_Shukla_89 8-Nov-11 4:28am    
Thanx for reply..
yeah.. i know, permission thats the only issue. I have given all full control to the location from where i'm running my application, i starts some services related to that also. Even though i still unable to solve that issue.
help me.. what kind of permission i have to give ??
Check whether permission has been given to IIS_IUSRS account and If not give the permission.

and while giving permission click on advanced tab and check the option reaplce child folders permision(2nd one)

I hope it will solve your problem
 
Share this answer
 
Its a access permission error.
have you give access permission to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files.

try with full permissions to "C:\Windows\Temp" folder for "NetWork Service
 
Share this answer
 
Comments
Vikas_Shukla_89 8-Nov-11 23:40pm    
Excellent solution..
by giving full control to "C:\Windows\Temp" folder i was able to sort it out.
Thanx a lot..
Rajesh Somarajan 9-Dec-13 7:59am    
Hi..

When i upgrade any web application and when i click on report/application log i get the same message as said by Dev.vikas.. Can any one advise how to solve this problem. I tried by giving full access to "C:\Windows\Temp" folder for "NetWork Service. But its now working for me..

Access is denied.
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: Access is denied.
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.
koolprasad2003 17-Dec-13 7:12am    
Add 'Users' group in its security, and give 'Modify' access and then try again with the same, it may resolved your issue

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