Simple Question re: ASP.NET is not authorized to access the requested resource

  • Thread starter Thread starter Mike McCann
  • Start date Start date
M

Mike McCann

With the following code :

Line 72: 'Get a StreamReader class that can be used to read the file
Line 73: Dim objStreamWriter As StreamWriter
Line 74: objStreamWriter = File.AppendText(FILENAME)




I get :

Access to the path "c:\inetpub\wwwroot\CMM\Reports\Output.txt" is denied.

Can some one please direct me where I can find short concise info on setting
correct security settings

Thanks

Mike McCann
 
go to iis

look at the report folder and set write permission on it

usually you want to write stuff in a folder that is not accessible via www
 
Back
Top