deployiment, security, aspnet

G

Guest

hey all,
i just deployed a simple web app that writes temp files to the application
root. i'm getting the following error:
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.

i can do what is says and it works but are there better ways to do this?
Best practices kind of stuff?

thanks,
rodchar
 
R

Rad [Visual C# MVP]

hey all,
i just deployed a simple web app that writes temp files to the application
root. i'm getting the following error:
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.

i can do what is says and it works but are there better ways to do this?
Best practices kind of stuff?

thanks,
rodchar

It is best to create a separate folder outside the root and grant access to
the asp.net process user to that. In this way if the application is somehow
compromised the damage that can be done would be limited.
 
G

Guest

does code access security allow you to write to a folder outside the
application root without having to grant ASPNET profile any rights?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top