Access to non-virtual-directory UNC paths from IIS 6.0

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

  1. #1

    Default Access to non-virtual-directory UNC paths from IIS 6.0

    [Please let me know if there is a better group in which to post this
    question.]

    Background:
    We have an ASP.NET Web app in my company which compares two data sources and
    reports the differences between them. This app can handle different types of
    data, both DBMS- and file-based. For file-based comparisons, we want the
    user to be able to point to any share on the network to find the file. Given
    this desire, we can't set up virtual directories to every possible share on
    our network, so we need the code to be able to access the file through pure
    UNC references.

    Here's more detail:
    - The Web server is running IIS 6.0 on Windows 2003 Server (duh).
    - The Web server is part of our internal domain (not our Web farm), let's
    call it MYCOMPANY.
    - The WWW service (and IISAdmin) is running under LocalSystem.
    - This particular Web site is NOT allowing anonymous access; the only access
    is Integrated Windows Authorization.
    - The page that is having problems has two INPUT TYPE="file" text boxes
    which the user uses to specify the files for comparison.
    - The code behind the page attempts to open OledbConnections against the UNC
    paths taken from the INPUT boxes.
    - This is the error we're getting:
    The Microsoft Jet database engine cannot open the file
    '\\BOB\BobsShare\SubFolder\AccessDB.mdb'. It is already opened exclusively
    by another user, or you need permission to view its data.

    No one has it open exclusively, and permissions are set correctly both on
    the share (\\BOB\BobsShare) and on the underlying folder structure.
    Specifically, the Everyone group has Change access through the share and
    Modify access through NTFS.

    I researched this issue through Google (thank god it's back up!) and came
    across a TechNet article,
    [url]http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/webapp/iis/remstorg.mspx[/url].
    I tried trusting the Web server for delegation, and gave it a half hour to
    propagate the changes, but I still got the same error. I noticed that the
    article really focuses on UNC paths used as the target of virtual
    directories and, as stated earlier, that's not how we want to set this up.

    Has anyone run into this issue before under these circumstances (i.e., no
    anonymous access, code hitting UNC paths)? Any suggestions? Can anyone
    confirm that what we want to do simply can't be done with IIS 6.0?


    Jeff Johnson [MVP: VB] Guest

  2. Similar Questions and Discussions

    1. virtual directory
      Our corporate website uses coldfusion. We have developed a web time entry system that also uses coldfusion. I am trying to setup the new timentry...
    2. Virtual sites/subdomains causing CF problem with paths
      We are running MX7, and have setup some subdomains based on directories from root. For example, we have a web site that has the following:...
    3. Directory paths: roles vs. users
      We have a fairly large site with lots of authors. Most of them will have identical permissions and options, except for the directory they are...
    4. How to get system.IO access to UNC resources using virtual directory configuration SERVER SIDE?
      I got stumpped on this a while back and used a workaround that involved the "same local username/pwd on both servers" method. Now I'd like to find a...
    5. Have to Be A Virtual Directory?
      I have a project named NET. It has .aspx and one .asmx files. This NET is a virtual directory and application in IIS: - All .aspx and one .asmx and...
  3. #2

    Default Re: Access to non-virtual-directory UNC paths from IIS 6.0

    "Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message
    news:ei$1VA$cEHA.2352@TK2MSFTNGP09.phx.gbl...
    > [Please let me know if there is a better group in which to post this
    > question.]
    >
    > Background:
    > We have an ASP.NET Web app in my company which compares two data sources
    and
    > reports the differences between them. This app can handle different types
    of
    > data, both DBMS- and file-based. For file-based comparisons, we want the
    > user to be able to point to any share on the network to find the file.
    Given
    > this desire, we can't set up virtual directories to every possible share
    on
    > our network, so we need the code to be able to access the file through
    pure
    > UNC references.
    >
    > Here's more detail:
    > - The Web server is running IIS 6.0 on Windows 2003 Server (duh).
    > - The Web server is part of our internal domain (not our Web farm), let's
    > call it MYCOMPANY.
    > - The WWW service (and IISAdmin) is running under LocalSystem.
    > - This particular Web site is NOT allowing anonymous access; the only
    access
    > is Integrated Windows Authorization.
    > - The page that is having problems has two INPUT TYPE="file" text boxes
    > which the user uses to specify the files for comparison.
    > - The code behind the page attempts to open OledbConnections against the
    UNC
    > paths taken from the INPUT boxes.
    > - This is the error we're getting:
    > The Microsoft Jet database engine cannot open the file
    > '\\BOB\BobsShare\SubFolder\AccessDB.mdb'. It is already opened exclusively
    > by another user, or you need permission to view its data.
    >
    > No one has it open exclusively, and permissions are set correctly both on
    > the share (\\BOB\BobsShare) and on the underlying folder structure.
    > Specifically, the Everyone group has Change access through the share and
    > Modify access through NTFS.
    Can you enable security auditing on the file path to see what account is
    being denied access?

    --
    Tom Kaminski IIS MVP
    [url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]
    [url]http://mvp.support.microsoft.com/[/url]
    [url]http://www.iisfaq.com/[/url]
    [url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running IIS
    [url]http://www.tryiis.com[/url]


    Tom Kaminski [MVP] 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