Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Set up IIS virtual directory to UNC

Posted on 2009-04-02
6
Medium Priority
?
863 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 2000 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
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

916 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