Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / October 2004

Tip: Looking for answers? Try searching our database.

Accessing DBF File from network ASP.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Giacobbo - 29 Sep 2004 21:47 GMT
I wrote an ASP.NET Web application that tries to open a database file
on a network drive.  I have gotten the application to read the
database from the local hard drive with ease.  However accessing the
file from a network drive (or UNC path), it says it is not there.

I tried setting the web.config identity impersonate tag to one of the
viable usernames on our domain.  This does not even work (When I am on
the page, it says that I am impersonating that user as well!).  Not
only does accessing the database not work, I tried the file.copy
command... same issue.  

This leads me to believe it is still a permissions issue.  Is there
something I am missing when attempting to access network shares from
an ASP application?
Obuka - 06 Oct 2004 21:03 GMT
> I wrote an ASP.NET Web application that tries to open a database file
> on a network drive.  I have gotten the application to read the
[quoted text clipped - 10 lines]
> something I am missing when attempting to access network shares from
> an ASP application?

The problem is with user impersonation. You'll need to use an
anonymous account that is identical on both machines. The easiest way
is by using the IWAM on the web server and duplicating the account on
the 'data' server. This account on the data server will need share and
security privelages given to the data being accessed.

To get the IWAM account password read the following article(s) from
Microsoft. The first one should do the trick. The others are various
other situations that you may run into.
Q184566 - Howto: Set up duplicate anonymous accounts on seperate
servers
Q197964 - Cannot access remote files with FileSystemObject
Q315158 - ASP.NET does not work with the default ASPNET account on a
domain controller

Side Note: When using IIS5, it is possible to use a network drive, but
IIS6 requires UNC paths.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.