Re: ASP.NET and directory security



Q,

I want to clarify your situation.

1. You have setup the DBF files on machine creating a shared directory and
giving the MACHINE\ASPNET user access to that directory?

2. You are experiencing errors while trying to access that share from an
ASP.NET application hosted on a different machine?

3. Are you using a mapped drive (i.e. G:\someshare) or a UNC share (i.e.
\\servername\shomeshare) to access the DBF files?

One possible solution would be to use a UNC share and take advantage of
impersonation (make sure the username and password are the same on machine A
and B).

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxconImpersonation.asp

Your answers to the questions should help shed more light on your situation.

Thanks,

Todd Casey

"quintesv via DotNetMonster.com" <u26933@uwe> wrote in message
news:66dc975d86a6f@xxxxxx
Hi all,

I come from a win forms background, and am building a web site that needs
to
interface to a FOXPRO database (DBF files). My problem is as follows:

I have created a virtual directory on the same machine as where the DBF
files
are located. I have created a share for the DBF files, and I've given the
<SERVER>\ASPNET account access to this folder where they are residing.

My code to connect to the folder where the DBF files are located is
basically
as follows:
1. Connect to a DLL which authenticates our users according to <USERNAME>,
<PASSWORD> and <DIRECTORY> where the DBF files are.
2. IF the connect is successful, continue processing any queries through
Visual FoxPro OLEDB PRovider 8.0 to the data.

This works fine if I am testing on the machine locally, i.e the web
project
is opened on the machine - in this case my development machine - and it
connects to the Foxpro Database folder - also on my development machine -
successfully.

If I try to connect to that same database and project from another machine
I
get security warning, " the specified file does not exist" . I use
System.IO.
File.Exists to see if I can access one of the files in the folder
specified,
but get access denied.

What do I need to setup in terms of permissions to access a FOLDER on
another
machine via asp.net, or what do I need to do?

Thanks in advance
Q

--
Message posted via http://www.dotnetmonster.com



.



Relevant Pages

  • Re: create dynamic file path for linking to text files in Access 2003
    ... that's enough to give you an idea of how to do it using dbf files. ... empty version of my MDB into a new folder along with that month's DBFs ... to the system folder as %SYSTEMROOT% or whatever. ...
    (microsoft.public.access.formscoding)
  • Re: Import many groups of dbase files
    ... Loop through the folder and move the right file into the right directory ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... www.SQLDTS.com - The site for all your DTS needs. ... The dbf files are all named accordingly. ...
    (microsoft.public.sqlserver.dts)
  • ASP.NET and directory security
    ... I come from a win forms background, and am building a web site that needs to ... I have created a virtual directory on the same machine as where the DBF files ... My code to connect to the folder where the DBF files are located is basically ... connects to the Foxpro Database folder - also on my development machine - ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Q: DSN over a network drive
    ... I use this connection string to connect *.dbf files: ... I defined MyDSN as free table with the folder C:\myFolder and put ... However when I point folder ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Folder rights not transfering into FTP folders
    ... "Toby Shirk" wrote in message ... > setup of different user access. ... Each folder has one user ...
    (microsoft.public.win2000.networking)