Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Access file denied - Urgent!!!

Reply
Thread Tools

Access file denied - Urgent!!!

 
 
David Li
Guest
Posts: n/a
 
      10-20-2004
Hi all,

I was trying to read/write to a file under the ASP.NET web application's
root directory. After some configurations, e.g. Enabling 'Impersonate',
Assigning correct pemissions to ASPNET accounts for this file, the program
ran very well. However when I put it on another server, it appears the
system is trying to locate the file under "C:\Winnt\System32" and I got
"Unauthorized Exception". This file IS under the web application root
directory, and I tried to put "~/" or "./" before the file name, it didn't
work either! Any ideas? Thank you in advance!!!


David


 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      10-20-2004
On Wed, 20 Oct 2004 08:29:35 -0500, "David Li" <> wrote:

¤ Hi all,
¤
¤ I was trying to read/write to a file under the ASP.NET web application's
¤ root directory. After some configurations, e.g. Enabling 'Impersonate',
¤ Assigning correct pemissions to ASPNET accounts for this file, the program
¤ ran very well. However when I put it on another server, it appears the
¤ system is trying to locate the file under "C:\Winnt\System32" and I got
¤ "Unauthorized Exception". This file IS under the web application root
¤ directory, and I tried to put "~/" or "./" before the file name, it didn't
¤ work either! Any ideas? Thank you in advance!!!
¤

Are you using Server.MapPath to specify the location of the file?


Paul ~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
403 Forbidden: You were denied access because: Access denied by access control list Southern Kiwi NZ Computing 6 03-19-2006 05:19 AM
Access Denied to access db with asp.net Ros@ ASP .Net 3 02-22-2006 04:51 PM
A failure occurred writing to the resources file. Access is denied. -- RESX file is locked? -- WHY? Mark Kamoski ASP .Net 1 07-04-2003 12:02 PM
A failure occurred writing to the resources file. Access is denied. -- RESX file is locked? -- WHY? Mark Kamoski ASP .Net 1 07-04-2003 12:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57