Solved

Set up IIS virtual directory to UNC

Posted on 2009-04-02
6
852 Views
Last Modified: 2012-05-06
I need to setup a IIS virtual directory on an XP machine to access a UNC path on a Windows 2003 file server.  I must use a domain account and all computers are in a trusted domain.  How do I accomplish this goal?  This is just for dev right now.  If more information is required please let me know.
0
Comment
Question by:Nyah247
  • 4
  • 2
6 Comments
 
LVL 6

Author Comment

by:Nyah247
ID: 24053655
...or using .net is there a way to connect to a unc without a virtual directory?
0
 
LVL 37

Accepted Solution

by:
meverest earned 500 total points
ID: 24055010
IIS can map a virtual directory to a remote share, but many people have trouble setting this up.  Here is a resource that is often useful to get past it:

http://support.microsoft.com/kb/269009/en-us

>> or using .net is there a way to connect to a unc without a virtual directory?

I suppose you could create a kind of proxy using .net to retrieve remote files from the web server application and deliver through the web server, but would be a bit of overkill for what I think you want.
0
 
LVL 6

Author Comment

by:Nyah247
ID: 24055366
Basically a developer is working on an in-house content management system.  Through .net the application will access a file share and publish staged files to the web server after they are approved.  To me it seems this should be done through a virtual directory but this does not have to be the case.  

Anyway, I found this article which is very similar to what the MS one explains with a little more detail and some pictures to help with the visuals.   http://www.codeproject.com/KB/aspnet/UNC__Access_Network_file.aspx  I cannot use local accounts and having a domain password in plain text in the .net for impersonation really bothers me.

I guess, what is the best way to achieve my goal?  The virtual directory or another method?  If it is the virtual directory how can I suggest the developer protect the user credentials from being plain text.


0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 37

Expert Comment

by:meverest
ID: 24066616
Hi,

I think that what you are describing is probably something different than the usual purpose of mapping IIS virtual directories.

I suspect that you would probably want to use the application framework itself (rather than IIS) to access the remote unc location/s.

To secure clear text passwords, use SSL on the web site.

Cheers.

0
 
LVL 6

Author Comment

by:Nyah247
ID: 24171222
We found a way around this...without the virtual directories.  The primary problem was the developer computer and this could be setup as you described with a virtual directory and local accounts.  But that is against our security policy.  We resolved this through using a limited service account (domain user) and using .net impersonation and an encrypted .config user/password.  It seems to be working ok thus far.
0
 
LVL 6

Author Closing Comment

by:Nyah247
ID: 31565943
Self-resolved but the proposed solution did help further research.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
smtp server IIS 6 9 44
Security Certificate error 5 57
Lync Mobile not working 11 88
530 User cannot login, home directory inaccessible 18 57
Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

932 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