473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Crystal Report Access Denied

I think I am giong to die, this is driving us nuts.

Here is the error we are getting when trying to use CrystalReportViewer:

OS: XP SP1 and another machine XP SP2 (same errors)
IDE: VS .NET 2003
ERROR MESSAGE
-----------------------------------
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 File: C:\Inetpub\wwwroot\homie\ar15.aspx.cs Line: 30

Stack Trace:
[COMException (0x80004005): Access is denied.
]
CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocumentClass.Open
(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.Open
(Object& DocumentPath, Int32 Options) +72
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened
() +218

[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened
() +269
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String
filename, OpenReportMethod openMethod, Int16 parentJob) +739
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String
filename) +52
Homie.mbrCrystalReport.Page_Load(Object sender, EventArgs e) in c:\
Inetpub\wwwroot\homie\ar15.aspx.cs:30
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750

------------------------------------
ERROR CODE
------------------------------------
CrystalDecisions.CrystalReports.Engine.ReportDocum ent crReportDocument =
new CrystalDecisions.CrystalReports.Engine.ReportDocum ent();
crReportDocument.Load(@"C:\Inetpub\wwwroot\homie\a r15.rpt");
-------------------------------------

We have tried the temp directory permissions with the ASPNET account option
and it did not work.

What is going on, anyone outhere know?

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #1
6 13162
As a test, you can use impersonation to have ASP.NET run under a different
user account. (Perhaps your user account since you know you have the
necessary permissions.)

For example, you can add a line similar to this to your web.config file:
<identity impersonate="true" userName="domain\MyUserName">
password="password"/>

Here's more info on impersonation:
http://msdn.microsoft.com/library/de...ersonation.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Chuck Yeager via DotNetMonster.com" <fo***@nospam.DotNetMonster.com> wrote
in message news:e1******************************@DotNetMonste r.com...
I think I am giong to die, this is driving us nuts.

Here is the error we are getting when trying to use CrystalReportViewer:

OS: XP SP1 and another machine XP SP2 (same errors)
IDE: VS .NET 2003
ERROR MESSAGE
-----------------------------------
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 File: C:\Inetpub\wwwroot\homie\ar15.aspx.cs Line: 30

Stack Trace:
[COMException (0x80004005): Access is denied.
]

CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocumentClass.Open
(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.Open
(Object& DocumentPath, Int32 Options) +72

CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened
() +218

[Exception: Load report failed.]

CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened
() +269
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String
filename, OpenReportMethod openMethod, Int16 parentJob) +739
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String
filename) +52
Homie.mbrCrystalReport.Page_Load(Object sender, EventArgs e) in c:\
Inetpub\wwwroot\homie\ar15.aspx.cs:30
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750

------------------------------------
ERROR CODE
------------------------------------
CrystalDecisions.CrystalReports.Engine.ReportDocum ent crReportDocument =
new CrystalDecisions.CrystalReports.Engine.ReportDocum ent();
crReportDocument.Load(@"C:\Inetpub\wwwroot\homie\a r15.rpt");
-------------------------------------

We have tried the temp directory permissions with the ASPNET account
option
and it did not work.

What is going on, anyone outhere know?

--
Message posted via http://www.dotnetmonster.com

Nov 19 '05 #2
Hi Chuck,

When a CR is being created in ASP.NET, the .NET will
create a report file in a temp folder, e.g. C:\Documents
and Settings\UserName\ASPNET\Local Settings\Temp. You can
try to give ASPNET permission for this folder.

HTH

Elton Wang
el********@hotmail.com

-----Original Message-----
I think I am giong to die, this is driving us nuts.

Here is the error we are getting when trying to use CrystalReportViewer:
OS: XP SP1 and another machine XP SP2 (same errors)
IDE: VS .NET 2003
ERROR MESSAGE
-----------------------------------
Access is denied.
Description: An unhandled exception occurred during the execution of thecurrent web request. Please review the stack trace for more informationabout the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Access isdenied.

Source File: C:\Inetpub\wwwroot\homie\ar15.aspx.cs Line: 30
Stack Trace:
[COMException (0x80004005): Access is denied.
]
CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocu
mentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocum entWrappe
r.Open(Object& DocumentPath, Int32 Options) +72
CrystalDecisions.ReportAppServer.ReportClientDocum entWrappe
r.EnsureDocumentIsOpened() +218

[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocum entWrappe
r.EnsureDocumentIsOpened() +269
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load
(Stringfilename, OpenReportMethod openMethod, Int16 parentJob) +739 CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load
(Stringfilename) +52
Homie.mbrCrystalReport.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\homie\ar15.aspx.cs:30
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750

------------------------------------
ERROR CODE
------------------------------------
CrystalDecisions.CrystalReports.Engine.ReportDocu ment crReportDocument =new CrystalDecisions.CrystalReports.Engine.ReportDocum ent (); crReportDocument.Load (@"C:\Inetpub\wwwroot\homie\ar15.rpt");-------------------------------------

We have tried the temp directory permissions with the ASPNET account optionand it did not work.

What is going on, anyone outhere know?

--
Message posted via http://www.dotnetmonster.com
.

Nov 19 '05 #3
Thanks for your feedback gentlemen,

Steve,

I have tried Steve's option and the error is gone, but I do not want to
hard code the username and password.
Elton,

I have tried that and access denied still occurs.
I will probably stumble accross the answer while sitting on the pot tonight
just before I go to bed. :)

But, just in case any other ideas would be greatly appreciated

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #4
Putting values in a web.config is not the same as hardcoding.
Web.Config values can be easily changed at any time without recompiling.

However, if you're determined to find another solution I'd suggest you start
by searching the Crystal Reports knowledge base:
http://support.businessobjects.com/s...exq3=&indexq4=

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Chuck Yeager via DotNetMonster.com" <fo***@DotNetMonster.com> wrote in
message news:26******************************@DotNetMonste r.com...
Thanks for your feedback gentlemen,

Steve,

I have tried Steve's option and the error is gone, but I do not want to
hard code the username and password.
Elton,

I have tried that and access denied still occurs.
I will probably stumble accross the answer while sitting on the pot
tonight
just before I go to bed. :)

But, just in case any other ideas would be greatly appreciated

--
Message posted via http://www.dotnetmonster.com

Nov 19 '05 #5
Thanks Steve!

I will look at that

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #6
I put in the web config the following and it works like a charm!

<authentication mode="Windows" />

<identity impersonate="true" userName="domainname\username"
password="mypassword" />

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Larry Pits | last post by:
Hi All, Everytimes I tried to view any crystall reports, I got this error message Server Error in '/xxxx' Application....
3
by: Rod | last post by:
I've got a Crystal Reports for Visual Studio.NET 2003 that I wrote. Up until now, I have been able to run it just fine, however, I had to change the access method to use Active Directory. (It...
3
by: schapopa | last post by:
I have problem with Crystal Reports. When I Am trying to create PDF file I get an error that I copied below. The same application is installed on two other machines and everything works fine....
1
by: Lasso | last post by:
Hi all, Im having problem in exporting pdf file from crystal report. Now I already can show the crystal report but error when exporting. this is my code: Dim myReport As USERReport = New...
0
by: Baren | last post by:
Hi! I have a requirement to generate crystal reports based on certain criteria and then generate a PDF of the report. I am using a a blank Crystal report and in code behind i am setting the data...
0
by: Leonard Danao | last post by:
Anyone have any ideas as to why this is happenning. There are no other versions of Crystal installed aside from the one that came with vs2003 enterprise. the error happens when the...
1
by: Marc Castrechini | last post by:
We have recently setup a new server: Windows 2003 (Version 5.2) IIS 6.0 ASP.NET 2.0 Using existing code that previously worked we can't seem to export PDFs from our Crystal reports anymore...
3
by: =?Utf-8?B?TWlrZSBPd2Vu?= | last post by:
Hi, I have just added a Cyrstal Reports Viewer to an ASP.Net 2.0 application on my live web server. Whilst the initial report shows ok, when I try to do anything to it, e.g. Move through it...
0
by: arial | last post by:
Hi all, I am getting this error message while try to compile my application. I am using visual studio 2003 and crystal report 9.1.5000. I have some old application which is running fine but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.