ASPNET Account Security Problem - Running a Web Application over a network share

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

  1. #1

    Default ASPNET Account Security Problem - Running a Web Application over a network share

    All,

    If anyone has been following my trials over the last week see(Setting up a
    Web Application on IIS 5.1 and ASP.Net Security Problems).

    I'm having a problem running a Asp.Net Web Application. I've finally
    narrowed the problem down to a security issue: The ASPNET (aspnet_wp)
    account cannot connect to a Network resource instead of using a local path
    ie: C:\Inetpub\wwwroot my development site resides on a Network Share
    (\\{MyServerName}\wwwroot).

    Every thing works fine is I connect to the site using a local path but I get
    a Parser Error Message: Could not load type 'WebApplication1.Global'.
    Source Error:
    Line 1: <%@ Application Codebehind="Global.asax.vb"
    Inherits="WebApplication1.Global" %>

    If I try to load the page from a shared resource (\\Server\xxx)

    I've tried adding this line to the web.config file imeditly under the
    <authentication mode="Windows" /> tag - in the applications root directory
    but I'm still unable to connect:
    <identity impersonate="true" userName="{MyServerName}\{UserName}}"
    password="{Password} " />
    Policy editor

    I have even tried creating a virtual directory to the folder even though the
    Web Application is below the wwwroot.

    FYI I've tried every possible combination of the
    {MyServerName}\{UserName}"ie server\administrator / SERVER\administrator /
    Server\Administrator etc.

    Everything I've seen posted seams to suggest this should have worked. I'll
    be very grateful for any help.

    CES


    CES Guest

  2. Similar Questions and Discussions

    1. Account Locked Out - Cold Fusion Application Service running as Active Directory Domain Account
      Using Cold Fusion 7 Standard w/ IIS6. Cold Fusion Application Service is running as a domain account to access IIS home directory on another...
    2. Problem with asp.net application locate on network share
      Hi all, I have an asp.net application (framework 1.1 sp1) on windows server 2003. When the document root is locate in local that's all ok... but...
    3. Running ASP.NET app off network share
      I'm using IIS 6.0 to try to run an ASP.NET application the files for which live on a shared folder on a machine which also happens to be on a...
    4. "Access is denied" error when running schtasks.exe under ASPNET account in win2k3 server
      Hi all, I am trying to run schtasks.exe from asp.net application wich uses forms authentication under ASPNET account. It gives me "Access is...
    5. Running ASP.NET application from network share
      The problem is the same with running apps across domain boundaries (app domain, not NT domain). You are creating what, in essence, is a distributed...
  3. #2

    Default Re: ASPNET Account Security Problem - Running a Web Application over a network share

    "CES" <NONE@NOEMAIL.com> wrote in message news:<#VRLj06jDHA.684@TK2MSFTNGP09.phx.gbl>...
    > All,
    >
    > If anyone has been following my trials over the last week see(Setting up a
    > Web Application on IIS 5.1 and ASP.Net Security Problems).
    >
    > I'm having a problem running a Asp.Net Web Application. I've finally
    > narrowed the problem down to a security issue: The ASPNET (aspnet_wp)
    > account cannot connect to a Network resource instead of using a local path
    > ie: C:\Inetpub\wwwroot my development site resides on a Network Share
    > (\\{MyServerName}\wwwroot).
    >
    > Every thing works fine is I connect to the site using a local path but I get
    > a Parser Error Message: Could not load type 'WebApplication1.Global'.
    > Source Error:
    > Line 1: <%@ Application Codebehind="Global.asax.vb"
    > Inherits="WebApplication1.Global" %>
    >
    > If I try to load the page from a shared resource (\\Server\xxx)
    >
    > I've tried adding this line to the web.config file imeditly under the
    > <authentication mode="Windows" /> tag - in the applications root directory
    > but I'm still unable to connect:
    > <identity impersonate="true" userName="{MyServerName}\{UserName}}"
    > password="{Password} " />
    > Policy editor
    >
    > I have even tried creating a virtual directory to the folder even though the
    > Web Application is below the wwwroot.
    >
    > FYI I've tried every possible combination of the
    > {MyServerName}\{UserName}"ie server\administrator / SERVER\administrator /
    > Server\Administrator etc.
    >
    > Everything I've seen posted seams to suggest this should have worked. I'll
    > be very grateful for any help.
    >
    > CES
    I am not 100% sure of these suggestions, but it may help you. First
    log on to your local machine as "Administrator". Even if you have
    admin rights as a user I believe it is important to be the actual
    administrator of you local machine. Next go to your web folder and
    right click for Properties. Now go to the securities tab and add
    "Everyone" to the users. Make sure that the "Everyone" user has all
    right checked off. Good Luck!
    Ron 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