473,657 Members | 2,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="tr ue" 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 1630
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******** ******@tk2msftn gp13.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="tr ue" 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******** ******@tk2msftn gp13.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.co m> schreef in bericht
news:%2******** ********@TK2MSF TNGP11.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******** ******@tk2msftn gp13.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="tr ue" 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
3223
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
5793
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 a while the network drive apears to have a red X on the icon and the drive becomes disconnected. this seems to effect the VB code from grabbing the tables. I get an error saying the specific table cannot be found. If i manually open the mapped...
4
15678
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); Directory.CreateDirectory("folder1"); I've tried with values of 'Path' like "Z:\Dir", "\\remoteserver\Dir", ... (Z the mapped unit and remoteserver the name of the remote machine) but seems that the class Directory can't work with remote drives.
2
3570
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 clicks on the "Browse" button on the "<input type="File"... control and selects a file located in one of many possible mapped drives. I want to save the location of the file as a path as you would see when mapping a drive. For instance,...
5
1570
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 error of "Can not file specified module". Mapped drive is added to path. Thanks, Marc
0
1549
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 call from a regular Windows application, all of the drives are returned. Any thoughts on why the mapped drives are not returned when the call is made from a windows service? The windows service is running under a domain user account with admin...
4
11728
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 file or changes (to files or folders) then it copies the files (and any new folders) to a folder in the mapped network drive. So far I have been successful in developing and deploying the service which works on my local machine with two drives...
1
1983
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 its behaviour change under system account, and how we can do it under system account. CFileDialog fileDlg(TRUE); fileDlg.DoModal();
14
5402
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 sequence: 1. create object of class 2. call mappeddrives() method 3. call impersonate method then its working fine.
0
8384
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8820
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8601
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.