473,405 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Converting a UNC path to a physical file path

I wonder if someone can help with this -

I 'm creating an IISVirtualDirectory, and setting its Path property to the
physical path I want to reference. This works fine when I have a standard
file path - 'C:/Test' - however I sometimes have a UNC path -
'//remoteComputer/Test' - and IIS appears to choke when it's given that.

So, is there any way of translating a UNC path to the physical path on the
remote computer? ie: Translating ' //remotecomputer/Test' to 'C:/Test' ?

Thanks!
Simon
Jul 21 '05 #1
2 3069
hi. go to your server and try creating a network map referencing the network
resource.. i.e.. z:\

make sure that you set automatic reconnection to the network share..

"Simon" wrote:
I wonder if someone can help with this -

I 'm creating an IISVirtualDirectory, and setting its Path property to the
physical path I want to reference. This works fine when I have a standard
file path - 'C:/Test' - however I sometimes have a UNC path -
'//remoteComputer/Test' - and IIS appears to choke when it's given that.

So, is there any way of translating a UNC path to the physical path on the
remote computer? ie: Translating ' //remotecomputer/Test' to 'C:/Test' ?

Thanks!
Simon

Jul 21 '05 #2
Thanks, Alan, but unfortunately this doesn't quite do it, partly because I'm
not wanting a manual process- if I wanted to do I could create the virtual
directory by hand directly. Surely it is possible to translate a UNC path to
its system specific file path through some API?
"[Alan Flores]" wrote:
hi. go to your server and try creating a network map referencing the network
resource.. i.e.. z:\

make sure that you set automatic reconnection to the network share..

"Simon" wrote:
I wonder if someone can help with this -

I 'm creating an IISVirtualDirectory, and setting its Path property to the
physical path I want to reference. This works fine when I have a standard
file path - 'C:/Test' - however I sometimes have a UNC path -
'//remoteComputer/Test' - and IIS appears to choke when it's given that.

So, is there any way of translating a UNC path to the physical path on the
remote computer? ie: Translating ' //remotecomputer/Test' to 'C:/Test' ?

Thanks!
Simon

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike | last post by:
Hi guys, I need to convertvirtual (http:// ...) path to physical (c:\...) in the desktop application. Any ideas? Thansks, Mike
5
by: Peter Stojkovic | last post by:
I have the following problem: I have a solution in path C:\AAA\CustomerA Now I have a second project: Then I copy everyThing to C:\AAA\CustomerB Bit inside the new project everything is...
3
by: PHaroZ | last post by:
Hi, I want to retrieve the complete full path to the directory of my current page but i don't find how to do that. For example i want : D:\myWebSite\firstDotNetWebApp\dir1\ I tried...
1
by: Michiel Schaeverbeke | last post by:
Hi, I'm trying to reach an xml file from within a web application. The file is physically on a different server. When I try to reach it using \\servername\path\ style, I get the error...
5
by: sling blade | last post by:
I have developled my first major app and i am trying to deploy it in to a host server for publication. However the app tries to use the physical path used during development. Is the path...
1
by: Raed Sawalha | last post by:
I have a problem in getting asp.net application physical path in global.ascx static function in my global.ascx i have a static function : first i tried to get the physical path by refelection...
2
by: Simon | last post by:
I wonder if someone can help with this - I 'm creating an IISVirtualDirectory, and setting its Path property to the physical path I want to reference. This works fine when I have a standard file...
8
by: Jaime Stuardo | last post by:
Hi all... How can I get the physical path of a web site from an EXE application? The Web Site is on the same server as the application. Thanks in advance Jaime
2
by: Tomasz Jastrzebski | last post by:
Hi All, Is there any way I can specify additional dll search path, preferably in web.config, which would be used by asp.net 2.0 when binding assemblies? I have many dlls shared among...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.