Solved

Error reading a map network drive folder (ASP.NET)

Posted on 2007-04-09
4
2,559 Views
Last Modified: 2012-08-14
I am trying to read a folder located in a map network drive from my web server and I am receiving the following error:
Could not find a part of the path 'T:\CustomJersey\T-BYTE\3742\ViewFinalArt'.

This is part of the software that I am using to read the folder:
Dim Folder As String = "T:\CustomJersey\T-BYTE\3742\ViewFinalArt"
Dim DirInfo As New DirectoryInfo(Folder)
Dim Files As FileInfo() = DirInfo.GetFiles()

Any Ideas?
Thanks
0
Comment
Question by:edwarlara
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 18876765
You need to set your web server security policy to allow access to files not on the web server.  Try setting up a virtual directory that points to T:.
0
 

Author Comment

by:edwarlara
ID: 18877893
Thanks for your help.
I am trying to create the Virtual Directory in IIS 6.0 but in the Virtual Directory Creation Wizard, after I typed the alias for the virtual directory and click next to browse for the folder, the "OK" button is grayout (The local drive are fine, but as soon as I click in any map network drive the "OK" button is disable).
Are there any rigths that I need to set to the map network drive to be able to create the virtual directory?

Thanks

Here are the steps that I am doing to create the virtual directory:
1. Click Start, point to Programs, click to select Administrative Tools, and then click Internet Services Manager.
2. Expand the server name.
3. In the left pane, right-click Default Web Site, point to New, and then click Virtual Directory.
4. In the first screen of the Virtual Directory Creation Wizard, type an alias, or name, for the virtual directory, and then click Next.
5. In the second screen, click Browse. Locate the content folder that you created to hold the content. Click Next.  (Here is where the "OK" button is greyout)
0
 
LVL 23

Accepted Solution

by:
Christopher Kile earned 500 total points
ID: 18878673
Hmmmm...I goofed in my original post, as I know a better solution but it did not come immediately to mind.

Instead of creating the virtual directory, go to the web application directory, right-click it, select Properties, click on the Directory Security tab, then click the button in the Anonymous access and authentication control frame.  The Account used for anonymous access must be a network account with the rights your application requires (we've used a single account for multiple web apps).  You can experiment with your own account if it has the necessary access, but you should set up an "application user" only used for anonymous access on an ongoing basis.
0
 

Author Comment

by:edwarlara
ID: 18917923
cpkilekofp:
I am sorry it took me a while to response. All your information was very helpful to fix this problem. At the end we created a virtual directory to open some pdf files from the remote server.

Thank you
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

634 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question