Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Help please with path/file access error
Old 08-28-2009, 09:12 PM Help please with path/file access error
Junior Talker

Posts: 1
Name: David Smith
Trades: 0
Hi,
I have a windows 2003 server running an asp.net c# web app that encrypts a file. It uses a third party dll for encryption and I have it built into my app. It runs fine in my Visual Studio 2005 environment but when I publish it and run it I get.
System.UnauthorizedAccessException: Path/File access error

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

I have given access for aspnet and network service to the folder and file needing encryption. I have also registered the dll with the server and given access to microsoft.net/framework/v2.0./temporary asp,net.... folder
I have added the dll to the allowed file extensions in iis6.0. Still same error.
Can anyone help please?????
thankss...
David
ThisIsDavid is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-28-2009, 09:36 PM Re: Help please with path/file access error
Extreme Talker

Posts: 167
Name: Jilesh
Trades: 0
You will need to add the IIS "Network Service" account to your file and grant the permission such as read and write to your account. Moreover, you can also grant the permission to "EveryOne" account.

For more detail kindly refer to below URL:

http://support.microsoft.com/default...b;en-us;895967
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
thewebhostingdi is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help please with path/file access error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19697 seconds with 12 queries