Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 24th, 2007, 09:42 PM
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stuck with DBF file access from Network Drive

hi there...

i have a problem in accessing DBF Files as my database back end...

when i run my asp.net 2.0 it works fine... but when i publish ... then it does not access DBF files , giving error "files doesnot exists.."

on web server where application is published, i have a map drive where fox pro DBF files are exists (fox pro DBF files are residing at out Novel Server and im having mapped drive to that folder where DBF files are resided).

pls help me //. its urgent...

any idea ?


  #2 (permalink)  
Old April 24th, 2007, 10:34 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Accessing network resources from a web app is pretty difficult. The problem is usually security related. The web application runs under a very restricted local account to prevent serious problems from occurring. As a result, something even as simple as local machine file write access can be a pain to configure correctly. When you factor in network resource access, it can get down right impossible.

How are you mapping the drive? When you map a drive, usually that mapping is only within the context of the user you are logged in as. The web app (IIS) isn't going to see that mapping and thus can't access the network resource. There are supposedly ways to map a drive at the system level, but I have not had any luck with it.

-Peter
  #3 (permalink)  
Old April 26th, 2007, 04:36 AM
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi guys,.. finally i did it.....
by setting impersonation to my web.config file....
and setting backgroundfetch=no

thankx

 


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
Free up access to a DBF File tknnguyen Pro VB 6 4 September 28th, 2009 11:50 AM
Excel VBA access FoxPro DBF file il_mostrino Excel VBA 0 May 16th, 2008 02:27 PM
Can't access file via Map Network Drive peter2004 ASP.NET 2.0 Basics 2 February 27th, 2007 01:59 PM
How to backup database to Network Drive Jane SQL Server 2000 3 July 4th, 2005 12:37 PM



All times are GMT -4. The time now is 08:35 AM.


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