473,386 Members | 1,785 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,386 software developers and data experts.

Webservice finding Virtual Directory Names

I have a Web Service that needs to find a Virtual Directory name, determine
the actual path of that directory, then read / write files to that directory.
How can I find a virtual directory then determine it's properties?
Nov 23 '05 #1
2 3649

You can use HttpRequest.MapPath to map a virtual directory to a physical
path.
http://msdn.microsoft.com/library/de...pathtopic2.asp

For more specific action you can use IIS SDK with System.DirectoryServices
classes to make some administrative stuff on IIS. See
http://msdn.microsoft.com/library/de...7250629909.asp
for more.

Lionel.

"Steven J. Reed" <St*********@discussions.microsoft.com> a écrit dans le
message de news: BC**********************************@microsoft.com...
I have a Web Service that needs to find a Virtual Directory name, determine
the actual path of that directory, then read / write files to that
directory.
How can I find a virtual directory then determine it's properties?

Nov 23 '05 #2
Once I figured out that MapPath wanted \<Share> as it's parameter this worked
fine!

Thanks...Steve

"Lionel LASKE" wrote:

You can use HttpRequest.MapPath to map a virtual directory to a physical
path.
http://msdn.microsoft.com/library/de...pathtopic2.asp

For more specific action you can use IIS SDK with System.DirectoryServices
classes to make some administrative stuff on IIS. See
http://msdn.microsoft.com/library/de...7250629909.asp
for more.

Lionel.

"Steven J. Reed" <St*********@discussions.microsoft.com> a écrit dans le
message de news: BC**********************************@microsoft.com...
I have a Web Service that needs to find a Virtual Directory name, determine
the actual path of that directory, then read / write files to that
directory.
How can I find a virtual directory then determine it's properties?


Nov 23 '05 #3

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

Similar topics

2
by: Peter Schmitz | last post by:
Hi, I just created my first .net web service and now I want to create an installation program for it. That's why I added a WebSetup project to my current solution and added the primary output of...
4
by: david | last post by:
I basically use the following code to display the directory and file names in the WWWROOT, but can not show the virtual directory. ---- Dim path As String = Server.MapPath(x) Dim di As...
1
by: Eric Voigt | last post by:
are there special settings applied to IIS5, when creating a webService in VS.NET? I wonder - because when I create a webService (let's call it webservice1) using VStudio.NET on my remote W2K...
1
by: samn | last post by:
I made a c# .net webservice that uses a class in a separate .net dll (x.dll) . This .net dll (x.dll) has dependencies on other DLLs. I put all of these DLLs (x.dll along with it's dependencies)...
3
by: xisco | last post by:
hi I can access and play with my webservice without any problems in my localhost. I am using .net 2.0 but I can not access it when I placed it in my win2003 server. also have ..net 2.0 there. ...
1
by: Frank Uray | last post by:
Hi all I have some problems with creating a WebService ... :-( Here is what I did: - I have created a new WebSite Project (ASP.NET Web Service) - I did not modify any code in this new project....
2
by: zion | last post by:
Hi, I have database with picture locations, for example: c:\temp\test.jpg. How can webservice return picture link? <img width=200 height=150 src='file://c:\\temp\\test.jpg' /> <img width=200...
3
by: =?Utf-8?B?QkM=?= | last post by:
Hello, I just created a Hello World webservice in VB2005 (this is my first webservice ever). I ran it in debug mode and the page that came up said Hello World and said to change the webservice...
11
by: bob | last post by:
Hi, I am trying to develop a webservice and an aspx client on a Win2003 server box. The IDE is VS2008. The thing just seems totally flaky. Webservice compiles and publishes with no errors....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.