Access Denied Error

  • Thread starter Thread starter stephen
  • Start date Start date
S

stephen

Hi,

I am getting an Error "Access to the path...... is denied" Error. I have an
web app and I am creating a log file to write the error info. If I have the
absolute path "C:\Inetpub\wwwroot\Samples\Test\bin" and write the file
there, then it works but if i try another method say "Machinename\path" e.g:
\\Stephen\Samples\Test\bin then it gives me Access to path denied Error.

No matter which machine/server its deployed, I want it write the log file.
say I am deploying it on "TestServer" and while testing, there is an error.
I want it to be written to \\Test\Samples\Test\bin is this possible or am i
totally off base.

I tried setting permissions and still i get this access to path denied.

Thanks,
Stephen
 
Hey,

Is is in Domain? You need to make sure that the user that the asp.net
is using has access to Domain...
 
Hi,

Thanks for the reply.
I actually have given full control to the ASPNET account but it still gives
me the error

Exception Details: System.Runtime.InteropServices.COMException: Cannot
access read-only document 'Export_Results12.xls'.

This happens when I write to a particular folder on InetPub.

Please advice,
Stephen Noronha
 
Back
Top