Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 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 June 25th, 2007, 11:51 AM
Registered User
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Retrieving data from a Share drive

I am currently making an ASP.Net application that uses SQL to pull data from a database and displays the information from the db on the page. However, I've been asked to pull information from a share drive on my network containing more information. However, I was told that VB will allow me to retrieve this data in the share drive, but I am not sure how to go about it? I've tried making a vitural directory on my IIS (my computer is a web server for testing), but failed.

See I am trying to pull information on the state of projects and allow the user to go to that project folder, not just one document in that folder.

Any ideas?

Thanks.


Newbie
 
Old June 25th, 2007, 08:17 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Access network file resources from an ASP.NET application can be tricky and problematic. I have an application that gets all it's file data in production off of a NAS device. The way we do it is to set up a virtual directory under the main web application that is pointed at the network location. You have to specific in IIS what identify to connect as do IIS has the valid credentials to access the files.

Remember that your ASP.NET application does not run under the same user identity that you are logged is as. So while you might easily be able to browser directly to the file resource (using your login credentials) the application can not.

To complicate matters, I have seen instances where the "connect as" credentials settings somehow get lost and the application starts to fail. We still haven't figured out why this happens.

-Peter
 
Old June 26th, 2007, 07:20 AM
Registered User
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the help, I'll keep that in mind when figuring out an idea for this project.

Newbie





Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problem share the data between 2 Applicatio prashant.borude BOOK: Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 ISBN: 978-0-470-12449-9 0 September 24th, 2007 04:25 AM
Having problem share the data between 2Application prashant.borude BOOK: Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 ISBN: 978-0-470-12449-9 0 September 20th, 2007 08:49 AM
Need to share image field data to Sub-Report. Jeyalakshmi Crystal Reports 0 May 26th, 2006 03:39 AM
Use VBA to get data from Access (Share folder) ckentebe Access 6 April 28th, 2004 10:09 PM
Use VBA to get data from Access (Share folder) ckentebe Access 1 April 21st, 2004 06:23 PM





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