Groups | Blog | Home
all groups > iis security > september 2004 >

iis security : Getting an access is denied error against a Crystal Reports for VS.NET report


Rod
9/28/2004 2:57:41 PM
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 uses forms authentication
but authenticates against Active Directory.) Now, it no longer can run the
Crystal Report. (Within the ASP.NET page I would retrieve the data, put it
into a dataset and then assign the dataset to the CrystalReportViewer
control on the .aspx page.) I'm getting the following error message:

Access to the path
"C:\DOCUME~1\MYMACHINE\ASPNET\LOCALS~1\Temp\temp_b4ab91a5-e1b0-4c9a-ae09-36b
e3a5fa324.rpt"
is denied.

What do I need to do in order to make this work again?

Rod

Rod
9/29/2004 8:27:35 AM
Hello WenJun,

I just checked, and my ASPNET account already has full control access to the
C:\DOCUME~1\MYMACHINE\ASPNET\LOCALS~1\Temp\ folder on my PC (where I am
doing the development - a Windows XP Professional computer).

Rod

P.S.: BTW, I noticed that when I put this web application onto a server
(Windows 2000 Server) that I didn't have the problem. However, it is a pain
for development.

[quoted text, click to view]

v-wzhang NO[at]SPAM online.microsoft.com (
9/29/2004 8:49:46 AM
Hi Rod,

Accoring to the 'access denied' error message, if you are using
IIS5.x, please make sure ASPNET account has Read/Write permission on
the C:\DOCUME~1\MYMACHINE\ASPNET\LOCALS~1\Temp\ directory and files.
If you are using IIS6 on Win2K3, please make sure NETWORK SERVICE
account has the permssion.

I noticed our ASP.net engineer Steven has replied your post in detail
at dotnet.framework.aspnet newsgroup. Please check his answer there
and work with him on troubleshooting this issue.

Thanks.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
v-wzhang NO[at]SPAM online.microsoft.com (
9/30/2004 2:38:08 AM
Hi Rod,

Have you enabled identity impersonate in web.config? If so, the
ASP.net application will run under authenticated users' context
passed from IIS. Then the authenticated user accounts may not have
permission to access the Temp directory.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
AddThis Social Bookmark Button