Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 26th, 2006, 05:59 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET and directory security

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


  #2 (permalink)  
Old September 26th, 2006, 09:41 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Ok, let see if i understand this correctly.

The application you created you have on your development machine and is executing fine when you run the application from that machine.

Now, when you go to another machine it is not working. Are you moving the entire application to that second PC or are you calling the application from your development machine?

As far as security goes you will have to grant permission to the ASPNET user account which is normally server\IWAM_[machinename].

hth

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PageWise security in asp.net balesh.mind ASP.NET 2.0 Professional 1 February 29th, 2008 01:37 PM
Security In Asp.net 2.0 mallikalapati ASP.NET 2.0 Professional 2 February 11th, 2008 10:15 AM
Integrating Security with ASP and ASP.NET thenoseknows ASP.NET 2.0 Professional 1 July 25th, 2007 05:11 PM
image directory asp.net sand133 ASP.NET 2.0 Basics 1 August 21st, 2006 01:10 PM
ASP.NET Security unclehughie Wrox Book Feedback 0 July 16th, 2003 03:45 PM



All times are GMT -4. The time now is 02:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.