473,396 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

right to files on mapped drives throught IIS and ASP.NET

Hello,

On a local website but i want to access data on a remote drive (a mapped
drive). The data are Foxpro files on a directeory of a mapped drive.

I have a problem with security ( no tabel can be opened error 52 in foxpro )

I search the web for a solution.

Server 1 = Windows 2000 (Webserver) and server2 = database server (NT
server)

The two server belong to the same domain.

i created a user on the databaseserver (domainserver) who has administrator
rights .

On the webserver

I already used impersonate="true" in the config.web file

I added this new user on the webserver

and in the IIS : anonymus is set on with this new created user with his
paswoord

ON the DatabaseServer

the database files themselves have full control for the user created.

But still get no rights

Does anyone know what i am doing wrong ?

Christine

Nov 18 '05 #1
2 1619
Instead of setting anonymous user in the IIS properties, uncheck that box
entirely and use window authentication. I'm pretty sure this will work
"chris" <No****@nospam.be> wrote in message
news:uR**************@tk2msftngp13.phx.gbl...
Hello,

On a local website but i want to access data on a remote drive (a mapped
drive). The data are Foxpro files on a directeory of a mapped drive.

I have a problem with security ( no tabel can be opened error 52 in foxpro )
I search the web for a solution.

Server 1 = Windows 2000 (Webserver) and server2 = database server (NT
server)

The two server belong to the same domain.

i created a user on the databaseserver (domainserver) who has administrator rights .

On the webserver

I already used impersonate="true" in the config.web file

I added this new user on the webserver

and in the IIS : anonymus is set on with this new created user with his
paswoord

ON the DatabaseServer

the database files themselves have full control for the user created.

But still get no rights

Does anyone know what i am doing wrong ?

Christine

Nov 18 '05 #2
Nope - that wont work. The problem is there are 3 systems in the problem and
in most cases, the third system (with Foxpro files) doesn't know who the
user is that's attempting to access the files (the user running the browser)
because the web server was never given the user's password to pass along.
(look up Delegation and it's ramifications to Windows security)

The ONLY way I got that to work was to use Basic authentication and make
your user's log into your web application with valid credentials on the
network. then, when the web server uses his credentials to access the
third system, he's
authenticated.

The other solution you have is to put the files on the Web server, and use
integrated windows authentication.

Then, when the application goes off to the third
"chris" <No****@nospam.be> wrote in message
news:uj**************@tk2msftngp13.phx.gbl...
Hello,

I tried but it it did not work. The data is on another server and the aspnet user (from the webserver) can not be supplied on the databaseServer.
So i created another user with administrator rights. and used this as a
anonymous user . This user has rights on the webserver and on the database
server.

Any other suggestions ?

Thanks
Christine

"A Lonely Programmer" <Sp************@NoSpamForMe.com> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...
Instead of setting anonymous user in the IIS properties, uncheck that box entirely and use window authentication. I'm pretty sure this will work
"chris" <No****@nospam.be> wrote in message
news:uR**************@tk2msftngp13.phx.gbl...
Hello,

On a local website but i want to access data on a remote drive (a mapped drive). The data are Foxpro files on a directeory of a mapped drive.

I have a problem with security ( no tabel can be opened error 52 in

foxpro )

I search the web for a solution.

Server 1 = Windows 2000 (Webserver) and server2 = database server (NT
server)

The two server belong to the same domain.

i created a user on the databaseserver (domainserver) who has

administrator
rights .

On the webserver

I already used impersonate="true" in the config.web file

I added this new user on the webserver

and in the IIS : anonymus is set on with this new created user with his paswoord

ON the DatabaseServer

the database files themselves have full control for the user created.

But still get no rights

Does anyone know what i am doing wrong ?

Christine



Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jim Richards | last post by:
I have been told by a local PC club technician that 98SE cannot read NTFS drives in a network. Is this true? TIA, Jim.
2
by: giloosh99 | last post by:
Hello, Im grabbing tables via VB code using visual foxpro ODBC drives. The tables directory is in a mapped network drive. The code works fine and does the job, however if the computer is idle for...
4
by: igg | last post by:
I'm developing a .net application and I need to save files in a network drive. I need to create a subdirectory and I've tried this: Directory.SetCurrentDirectory(Path); ...
2
by: Ben | last post by:
Hi, Thanks for reading this post... I am trying to get the computer/server names from the mapped drives on the Clients PC when they select a file from the upload "browse" button. When the user...
5
by: Marc | last post by:
I am trying to run a web service that has pre-compiled dll's that reference dll's that are on a mapped drive. The web service can not load because it does not see that mapped drive and returns an...
0
by: rmckbrown | last post by:
Using .Net FW 1.1 and VB.net I am calling system.io.directory.getlogicaldrives from a windows service; however, only the local drives are returned, and not my mapped drives. When I execute the...
4
by: sajid_yusuf | last post by:
Hi I am trying to develop a Windows service in VB.NET which has timer enabled and keeps checking a folder (or group of folders) for any new file or changed files. As soon as it detects any new...
1
by: CrimeMaster | last post by:
I have write some simple code,this code does not shows network mapped drives when we run it under system account, otherwise under user account it shows them correctly. Any body tell me why did...
14
AnuSumesh
by: AnuSumesh | last post by:
Hi all, I am writing one application using c# in which firstly I m getting impersonating the user and then i want to retrieve mapped Drives. But issue is when I am calling method in following...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.