Wrox Programmer Forums
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 26th, 2006, 05:59 AM
Registered User
Join Date: Sep 2006
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

Old September 26th, 2006, 09:41 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

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].


--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.

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

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