Solved

IIS on Server to folder on separate Shared Drive will Data Source= "Path" work.

Posted on 2003-11-10
2
291 Views
Last Modified: 2010-03-19
We have a program, really a website full of data access pages that can run under IIS. Each data access page has a data source= and often too a connection string. This works fine when our folder is on the server running IIS.

I am trying to figure out if I can set up a IIS virtual directory to a shared drive on another computer, and then I am going to test and see if the data source and connection strings work.

This may be as basic as telling me how to share the folder so it has a share name (XP Pro) and then how to connect from the server (it asks for //server/sharename ) Please don't comment on why we have data source and connection strings on each page.
0
Comment
Question by:jamesh1031
[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 Comments
 
LVL 2

Expert Comment

by:rohan_leader
ID: 9719803
To share a file in win2k, and should be similar in xp, right click on a folder and click sharing.  Or go to properties of a folder, and select sharing from there.  You need to define access permissions, make sure you don't leave a folder wide open to be world wide visible!

To connect from the server, why not just map the drive from the server using the net use command or using the gui in windows explorer?  (Tools/Map network drive).  Assign it a local drive letter and then configure IIS to use that as a virtual directory.

Man for net use:


NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]
0
 
LVL 8

Accepted Solution

by:
ViRoy earned 500 total points
ID: 9724868

james, you can accomplish the results you want by mapping a drive.
that mapping should be set to reconnect always and you will want to use a drive letter that will never be used by the OS, (ie.. Z:\) to prevent having to change code to match a changing drive letter.

you also might want to check into active directory, this may or may not be applicable for you depending on wether you have a 2000 server... however if you decide it is plausable, it will remove the need for mappings like that and will be the answer to your filesharing needs :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

710 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