Server cannot access application directory... The directory does not exist or is not accessible because of security settings.

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Server cannot access application directory... The directory does not exist or is not accessible because of security settings.

    Hi,

    I have this issue with the error below.

    Let me explain my goal and my server environement:

    Goal:
    To have 3 separate web servers reading ASP.NET files from the same directory
    on the same unique drive. EX: W:\. (This is not through a network share or
    a mapped drive. This is on a local drive using Fiber SAN technology.) I
    can acheive this with plain ASP or HTML files, not problems there, and it
    works.

    Server environement:
    -server a -> IP 10.0.0.1, ASP.NET web pages root directory W:\aspNet
    -server b -> IP 10.0.0.2, ASP.NET web pages root directory W:\aspNet
    -server c -> IP 10.0.0.3, ASP.NET web pages root directory W:\aspNet

    W:\ is a Storage Area network (SAN) and is connected with Fiber channel.

    To be able to read and write on the drive W:\ or the SAN, I use a software
    called ImageSan from Rorke data. [url]www.imagesan.com[/url].

    Easy setup, intuitive and it does the job. In can read files on the drive
    w:\ as if this drive was a local drive and this simultaniously from my 3
    servers.


    ImageSAN software:
    Works with clients, and one master:

    EX:

    -***(Master)*** server a -> IP 10.0.0.1, ASP.NET web pages root directory
    W:\aspNet
    -(Client) server b -> IP 10.0.0.2, ASP.NET web pages root directory
    W:\aspNet
    -(Client) server c -> IP 10.0.0.3, ASP.NET web pages root directory
    W:\aspNet

    Issue:
    I can run the ASP.NET web site if I use IE and call this page on the
    (MASTER) server wich is server a: EX: [url]http://10.0.0.1[/url]. This will
    successfully deliver the ASP.NET pages and the application will work.

    Although, if I use IE and call this page on a (CLINET) server, server b or
    c: EX: [url]http://10.0.0.2[/url]. or [url]http://10.0.0.3[/url] (Same files) This error below
    will occur.

    Server Error in '/' Application.

    ----------------------------------------------------------------------------
    ----

    Server cannot access application directory 'W:\the directory\'. The
    directory does not exist or is not accessible because of security settings.
    Description: An unhandled exception occurred during the execution of the
    current web request. Please review the stack trace for more information
    about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: Server cannot access
    application directory 'W:\the directory\''. The directory does not exist or
    is not accessible because of security settings.

    Source Error:


    An unhandled exception was generated during the execution of the
    current web request. Information regarding the origin and location of the
    exception can be identified using the exception stack trace below.


    Stack Trace:


    [HttpException (0x80004005): Server cannot access application directory
    'W:\the directory'\'. The directory does not exist or is not accessible
    because of security settings.]
    System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
    System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

    [HttpException (0x80004005): ASP.NET Initialization Error]
    System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +965
    System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128





    ----------------------------------------------------------------------------
    ----

    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
    Version:1.1.4322.573

    If I move the MASTER to server B for example, the same will happen, server B
    will load the web page , but not a or c. It basically shifts depending on
    where the master is.

    Please let me know what you think Microsoft staff, since I am a registered
    technet user.

    Thanks!

    Steve



    Guest

  2. Similar Questions and Discussions

    1. ASPNET directory access on server denied
      Tell him that the ASPNET user is on good only on the webserver, if he wants to access a network resource, he'll have to impersonate a valid domain...
    2. Server cannot access application directory ... The directory does not exist or is not accessible because of security settings
      If you are using Windows XP in a Workgroup, rather than a Domain, then by default "Simple Filesharing" is turned on, and you won't see a security...
    3. limit web application access to local directory?
      I'm trying to convince a web systems administrator to install ASP.NET on his web server so I can host a dynamic departmental web site on it. Does...
    4. Verifying files exist in server directory as specified in xml doc?
      I think you can try System.IO.File.Exists() method on tle Load event of the page. "Kathy Burke" <kathyburke40@attbi.com> wrote in message...
    5. PHP file access and directory security
      I have a directory protected with .htaccess / .htpasswd. After I'm validated, I run a php script which bombs out when trying to write a file to...
  3. #2

    Default Re: Server cannot access application directory... The directory does not exist or is not accessible because of security settings.

    I'm sorry but without any infos about how the ImageSAN software works, it's
    difficult to solve your problem.
    Does the ASPNET account has access to this folder? Try to use another
    account (ie a domain account) because of aspnet is a local account.

    HtH,
    Andrea

    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    <stevem@news.postalias> wrote in message
    news:uCLtzRROEHA.556@tk2msftngp13.phx.gbl...
    > Hi,
    >
    > I have this issue with the error below.
    >
    > Let me explain my goal and my server environement:
    >
    > Goal:
    > To have 3 separate web servers reading ASP.NET files from the same
    directory
    > on the same unique drive. EX: W:\. (This is not through a network share
    or
    > a mapped drive. This is on a local drive using Fiber SAN technology.) I
    > can acheive this with plain ASP or HTML files, not problems there, and it
    > works.
    >
    > Server environement:
    > -server a -> IP 10.0.0.1, ASP.NET web pages root directory W:\aspNet
    > -server b -> IP 10.0.0.2, ASP.NET web pages root directory W:\aspNet
    > -server c -> IP 10.0.0.3, ASP.NET web pages root directory W:\aspNet
    >
    > W:\ is a Storage Area network (SAN) and is connected with Fiber channel.
    >
    > To be able to read and write on the drive W:\ or the SAN, I use a software
    > called ImageSan from Rorke data. [url]www.imagesan.com[/url].
    >
    > Easy setup, intuitive and it does the job. In can read files on the drive
    > w:\ as if this drive was a local drive and this simultaniously from my 3
    > servers.
    >
    >
    > ImageSAN software:
    > Works with clients, and one master:
    >
    > EX:
    >
    > -***(Master)*** server a -> IP 10.0.0.1, ASP.NET web pages root directory
    > W:\aspNet
    > -(Client) server b -> IP 10.0.0.2, ASP.NET web pages root directory
    > W:\aspNet
    > -(Client) server c -> IP 10.0.0.3, ASP.NET web pages root directory
    > W:\aspNet
    >
    > Issue:
    > I can run the ASP.NET web site if I use IE and call this page on the
    > (MASTER) server wich is server a: EX: [url]http://10.0.0.1[/url]. This will
    > successfully deliver the ASP.NET pages and the application will work.
    >
    > Although, if I use IE and call this page on a (CLINET) server, server b or
    > c: EX: [url]http://10.0.0.2[/url]. or [url]http://10.0.0.3[/url] (Same files) This error below
    > will occur.
    >
    > Server Error in '/' Application.
    >
    > --------------------------------------------------------------------------
    --
    > ----
    >
    > Server cannot access application directory 'W:\the directory\'. The
    > directory does not exist or is not accessible because of security
    settings.
    > Description: An unhandled exception occurred during the execution of the
    > current web request. Please review the stack trace for more information
    > about the error and where it originated in the code.
    >
    > Exception Details: System.Web.HttpException: Server cannot access
    > application directory 'W:\the directory\''. The directory does not exist
    or
    > is not accessible because of security settings.
    >
    > Source Error:
    >
    >
    > An unhandled exception was generated during the execution of the
    > current web request. Information regarding the origin and location of the
    > exception can be identified using the exception stack trace below.
    >
    >
    > Stack Trace:
    >
    >
    > [HttpException (0x80004005): Server cannot access application directory
    > 'W:\the directory'\'. The directory does not exist or is not accessible
    > because of security settings.]
    > System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
    > System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263
    >
    > [HttpException (0x80004005): ASP.NET Initialization Error]
    > System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +965
    > System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)
    +128
    >
    >
    >
    >
    >
    > --------------------------------------------------------------------------
    --
    > ----
    >
    > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
    ASP.NET
    > Version:1.1.4322.573
    >
    > If I move the MASTER to server B for example, the same will happen, server
    B
    > will load the web page , but not a or c. It basically shifts depending on
    > where the master is.
    >
    > Please let me know what you think Microsoft staff, since I am a registered
    > technet user.
    >
    > Thanks!
    >
    > Steve
    >
    >
    >

    Andrea D'Onofrio [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139