Solved

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

Posted on 2003-11-10
2
286 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Link Aggregation 2 32
Screen Recorder Recommendations 10 57
Wireshark 7 54
Network Config 9 59
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now