Ask a Question related to ASP.NET Security, Design and Development.
-
Jeff Johnson [MVP: VB] #1
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
-
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... -
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:... -
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... -
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... -
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... -
Tom Kaminski [MVP] #2
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...and> [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 sourcesof> reports the differences between them. This app can handle different typesGiven> 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.on> this desire, we can't set up virtual directories to every possible sharepure> our network, so we need the code to be able to access the file throughaccess> 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 onlyUNC> 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 theCan you enable security auditing on the file path to see what account is> 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.
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



Reply With Quote

