Access Denied Error

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
 
O

Orion41

Hey,

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

stephen

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
 

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

Top