473,405 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Access to the path "..." is denied

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
4 2877
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Carlitos | last post by:
Hi there, I got a web application in vb.net that uploads a .zip file to a subfolder inside the root folder of the web application. c:\Inetpub\wwwroot\MyWebApp\uploaddir Then, a c# library...
1
by: ±ù÷¢ | last post by:
I have a standard vb crystal reports viewer control on a web form with just the one simple report bound to it. when I run the project I get the following error: ACCESS TO THE PATH...
1
by: Winterminute | last post by:
If I try to make any changes to the ASP.NET Portal Starter kit it fails with an access denied error. This was working when I left last week and is failing today. I don't remember changing...
1
by: VB Programmer | last post by:
When I run this line: Dim sw As New System.IO.StreamWriter(strFileName) I get this error: System.UnauthorizedAccessException: Access to the path...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
2
by: job | last post by:
In a sharepoint setup using smartpart to load our user controls using enterprise blocks (data) we are getting some strange errors (logged to the event log). We dont get the error all the time. When...
1
by: jalupinu | last post by:
My OS is Winxp SP2 and the software I am having trouble with is Maximizer 9.5 Enterprise. It has a Web Portal feature that i am trying to use and followed the instructions to set it up however I keep...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
I am getting an "Access to the path "xxxx" is denied error. I believe is because the file that I am writing to programatically is being read/written to by another end user. These files have the...
2
by: CGatto | last post by:
Hi, We have just started getting the following error during compiles of our forms-based application. We are developing in VS2008, VB.Net, with Team Foundation Server-based source control. ...
2
by: sphinney | last post by:
Hi everyone. I have a form in my Access 2007 database with a Microsoft Office Document Imaging Viewer Control 12.0 object on it. The object is named "GRAPHIC_mdv". When the form opens I want to...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.