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

Access to the path "..." is denied

P: n/a
Greetings one and all.

I have what is probably a server configuration (maybe permissions) issue.
I hope this is a suitable group for such a query - if not, I'd be grateful
for directions to a more suitable group.

Server is WS3/IIS6

Error returned is:

.. Server Error in '/' Application.
.. ----------------------------------------------
.. Access to the path "\tester6" is denied. ...

Please let me know if more information would be useful.

The site is configured for write access in IIS.

I have trawled the web and the usenet archives with the result that every
likely looking username now has 'Full Control' on the web root (and child
objects) but still the page responds with the error.

Here is the test code:
<%@ Page Language="C#" %>
<%@ Import Namespace="System.IO" %>
<html>
<head><title>Test</title></head>
<body>
<h1>Hello test</h1>
<% if (!Directory.Exists("\\tester6"))
{
Response.Write("stuff ----");
Response.Flush();
// Create the directory it does not exist.
Directory.CreateDirectory("\\tester6");
}
%>
</body>
</html>

As you can see - this is a trivial test page, but still stubbornly refuses
to to produce more than the error above.

oh yes - one more thing. I know ASP.NET is working in general as we have
the SqlAdmin application installed and working on that server.

Thanks for reading.

--
William Tasso
Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
William Tasso <sp*********@tbdata.com> wrote:
...
Error returned is:

. Server Error in '/' Application.
. ----------------------------------------------
. Access to the path "\tester6" is denied. ...
...
Directory.CreateDirectory("\\tester6");


No worries - cracked it now ;)

Thanks for reading anyhow.

--
William Tasso
Nov 19 '05 #2

P: n/a
Please post your solution, so that a searchable record is left.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"William Tasso" <sp*********@tbdata.com> wrote in message
news:op*******************@tbdata.com...
William Tasso <sp*********@tbdata.com> wrote:
...
Error returned is:

. Server Error in '/' Application.
. ----------------------------------------------
. Access to the path "\tester6" is denied. ...
...
Directory.CreateDirectory("\\tester6");


No worries - cracked it now ;)

Thanks for reading anyhow.

--
William Tasso

Nov 19 '05 #3

P: n/a
Juan T. Llibre <no***********@nowhere.com> wrote:
Please post your solution,


Certainly - although I'm not too sure if I'd recommend it.

applied impersonation and gave iusr_<machine> list-contents rights

A better solution would be to find a way to give the app what it needs
without impersonation. Know one? perhaps a list of required permissions?

--
William Tasso
Nov 19 '05 #4

P: n/a
William Tasso <sp*********@tbdata.com> wrote:
...
A better solution would be to find a way to give the app what it needs
without impersonation. Know one? perhaps a list of required
permissions?


For example, this page:
http://msdn.microsoft.com/library/de...onidentity.asp

suggests:

Read/write access is required for:
o The %installroot%\ASP.NET Temporary Files directory. Subdirectories
beneath this root are used for dynamically compiled output.
o The %temp% directory, which is used by the compilers during dynamic
compilation.

Read access is required for:
o The application directory.
o The %installroot% hierarchy to make it possible to access to system
assemblies.
o The Web site root directory (e.g., the path at which the "Default Web
Site" points, typically %systemdrive%\inetpub\wwwroot).
o The Global Assembly Cache, %windir%\assembly.
How do I do that? For example: \assembly doesn't appear to have settable
security and I've no idea where %temp% is in the context of user: aspnet

--
William Tasso
Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.