By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,738 Members | 1,463 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,738 IT Pros & Developers. It's quick & easy.

Access Denied Error

P: n/a

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
Sep 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Hey,

Is is in Domain? You need to make sure that the user that the asp.net
is using has access to Domain...
stephen wrote:
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

Sep 12 '06 #2

P: n/a
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

"Orion41" <""ikarlgut\"@@hotmail.com"wrote in message
news:IJ***************@twister.nyroc.rr.com...
>
Hey,

Is is in Domain? You need to make sure that the user that the asp.net is
using has access to Domain...
stephen wrote:
>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

Sep 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.