473,708 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server.Mappath and Virtual Directories

Hello,

I have a web application with a virtual directory in it. With 'virtual
directory' i mean
a folder whose physical path is different from the physical path of the
application, but in which Web Sharing is active.
For example:
my application is in "C:\Inetpub\www root\MyApp",
the Virtual folder is in "C:\VirtualFold er",
and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".

How can I get, from code, the real physical path of the virtual folder?
I tried with Server.Mappath, but I found that it returns
"C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"

Thanks
Lorenzo

--
Lorenzo
Mar 22 '06 #1
14 12721
Good catch, Lorenzo.

The behavior is as you describe it, and I agree that Server.MapPath should
reflect the true physical directory of a virtual directory within an Application.

Please go to the Product Feedback Center :
http://lab.msdn.microsoft.com/produc...k/default.aspx
and file a bug for that behavior.

You will need a Passport account to file a bug at the Feedback Center.

Thank you!

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:7A******** *************** ***********@mic rosoft.com...
Hello,

I have a web application with a virtual directory in it. With 'virtual
directory' i mean
a folder whose physical path is different from the physical path of the
application, but in which Web Sharing is active.
For example:
my application is in "C:\Inetpub\www root\MyApp",
the Virtual folder is in "C:\VirtualFold er",
and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".

How can I get, from code, the real physical path of the virtual folder?
I tried with Server.Mappath, but I found that it returns
"C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"

Thanks
Lorenzo

--
Lorenzo

Mar 22 '06 #2
Thank you for the answer: I will surely report the 'Bug'.

In the meantime, could you (or someone other) suggest me another way to do
the same thing, or a workaround?

Thanks
--
Lorenzo
"Juan T. Llibre" ha scritto:
Good catch, Lorenzo.

The behavior is as you describe it, and I agree that Server.MapPath should
reflect the true physical directory of a virtual directory within an Application.

Please go to the Product Feedback Center :
http://lab.msdn.microsoft.com/produc...k/default.aspx
and file a bug for that behavior.

You will need a Passport account to file a bug at the Feedback Center.

Thank you!

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:7A******** *************** ***********@mic rosoft.com...
Hello,

I have a web application with a virtual directory in it. With 'virtual
directory' i mean
a folder whose physical path is different from the physical path of the
application, but in which Web Sharing is active.
For example:
my application is in "C:\Inetpub\www root\MyApp",
the Virtual folder is in "C:\VirtualFold er",
and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".

How can I get, from code, the real physical path of the virtual folder?
I tried with Server.Mappath, but I found that it returns
"C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"

Thanks
Lorenzo

--
Lorenzo


Mar 22 '06 #3
The bug was already reported!

(see:
http://lab.msdn.microsoft.com/produc...9-b8fb08d7cbd8
)

Reading the answer i realized that this happens only in debug mode, due to
the use, by VS2005, of Cassini; so I can fix it attaching to IIS instead of
Cassini!

--
Lorenzo
"Juan T. Llibre" ha scritto:
Good catch, Lorenzo.

The behavior is as you describe it, and I agree that Server.MapPath should
reflect the true physical directory of a virtual directory within an Application.

Please go to the Product Feedback Center :
http://lab.msdn.microsoft.com/produc...k/default.aspx
and file a bug for that behavior.

You will need a Passport account to file a bug at the Feedback Center.

Thank you!

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:7A******** *************** ***********@mic rosoft.com...
Hello,

I have a web application with a virtual directory in it. With 'virtual
directory' i mean
a folder whose physical path is different from the physical path of the
application, but in which Web Sharing is active.
For example:
my application is in "C:\Inetpub\www root\MyApp",
the Virtual folder is in "C:\VirtualFold er",
and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".

How can I get, from code, the real physical path of the virtual folder?
I tried with Server.Mappath, but I found that it returns
"C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"

Thanks
Lorenzo

--
Lorenzo


Mar 22 '06 #4
re:
Thank you for the answer: I will surely report the 'Bug'.
Please do so.

That's the only way to let the Dev Team know what we know doesn't work,
so they can try to fix it...and that's the best way to get a better product.

re: In the meantime, could you (or someone other) suggest me another way to do
the same thing, or a workaround?
The only workaround I can think of is not to use Server.MapPath
and, instead, hard-code the physical path.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:60******** *************** ***********@mic rosoft.com... Thank you for the answer: I will surely report the 'Bug'.

In the meantime, could you (or someone other) suggest me another way to do
the same thing, or a workaround?

Thanks
--
Lorenzo
"Juan T. Llibre" ha scritto:
Good catch, Lorenzo.

The behavior is as you describe it, and I agree that Server.MapPath should
reflect the true physical directory of a virtual directory within an Application.

Please go to the Product Feedback Center :
http://lab.msdn.microsoft.com/produc...k/default.aspx
and file a bug for that behavior.

You will need a Passport account to file a bug at the Feedback Center.

Thank you!

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:7A******** *************** ***********@mic rosoft.com...
> Hello,
>
> I have a web application with a virtual directory in it. With 'virtual
> directory' i mean
> a folder whose physical path is different from the physical path of the
> application, but in which Web Sharing is active.
> For example:
> my application is in "C:\Inetpub\www root\MyApp",
> the Virtual folder is in "C:\VirtualFold er",
> and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".
>
> How can I get, from code, the real physical path of the virtual folder?
> I tried with Server.Mappath, but I found that it returns
> "C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"
>
> Thanks
> Lorenzo
>
> --
> Lorenzo


Mar 22 '06 #5
Yes, please bug it as happening under IIS, too.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:98******** *************** ***********@mic rosoft.com...
The bug was already reported!

(see:
http://lab.msdn.microsoft.com/produc...9-b8fb08d7cbd8
)

Reading the answer i realized that this happens only in debug mode, due to
the use, by VS2005, of Cassini; so I can fix it attaching to IIS instead of
Cassini!
Lorenzo
"Juan T. Llibre" ha scritto:
Good catch, Lorenzo.

The behavior is as you describe it, and I agree that Server.MapPath should
reflect the true physical directory of a virtual directory within an Application.

Please go to the Product Feedback Center :
http://lab.msdn.microsoft.com/produc...k/default.aspx
and file a bug for that behavior.

You will need a Passport account to file a bug at the Feedback Center.

Thank you!

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:7A******** *************** ***********@mic rosoft.com...
> Hello,
>
> I have a web application with a virtual directory in it. With 'virtual
> directory' i mean
> a folder whose physical path is different from the physical path of the
> application, but in which Web Sharing is active.
> For example:
> my application is in "C:\Inetpub\www root\MyApp",
> the Virtual folder is in "C:\VirtualFold er",
> and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".
>
> How can I get, from code, the real physical path of the virtual folder?
> I tried with Server.Mappath, but I found that it returns
> "C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"
>
> Thanks
> Lorenzo
>
> --
> Lorenzo


Mar 22 '06 #6
No, it happens only with Cassini, I just verified it!
--
Lorenzo
"Juan T. Llibre" ha scritto:
Yes, please bug it as happening under IIS, too.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:98******** *************** ***********@mic rosoft.com...
The bug was already reported!

(see:
http://lab.msdn.microsoft.com/produc...9-b8fb08d7cbd8
)

Reading the answer i realized that this happens only in debug mode, due to
the use, by VS2005, of Cassini; so I can fix it attaching to IIS instead of
Cassini!
Lorenzo


"Juan T. Llibre" ha scritto:
Good catch, Lorenzo.

The behavior is as you describe it, and I agree that Server.MapPath should
reflect the true physical directory of a virtual directory within an Application.

Please go to the Product Feedback Center :
http://lab.msdn.microsoft.com/produc...k/default.aspx
and file a bug for that behavior.

You will need a Passport account to file a bug at the Feedback Center.

Thank you!

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:7A******** *************** ***********@mic rosoft.com...
> Hello,
>
> I have a web application with a virtual directory in it. With 'virtual
> directory' i mean
> a folder whose physical path is different from the physical path of the
> application, but in which Web Sharing is active.
> For example:
> my application is in "C:\Inetpub\www root\MyApp",
> the Virtual folder is in "C:\VirtualFold er",
> and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".
>
> How can I get, from code, the real physical path of the virtual folder?
> I tried with Server.Mappath, but I found that it returns
> "C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"
>
> Thanks
> Lorenzo
>
> --
> Lorenzo


Mar 22 '06 #7
Actually, I did quite a bit of testing with IIS after I read your post.
It happens with IIS and I can repro it.

You are mistaken about it only happening with Cassini.
File the bug or, if you are not up to it, I will.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:7F******** *************** ***********@mic rosoft.com...
No, it happens only with Cassini, I just verified it!
--
Lorenzo
"Juan T. Llibre" ha scritto:
Yes, please bug it as happening under IIS, too.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:98******** *************** ***********@mic rosoft.com...
> The bug was already reported!
>
> (see:
> http://lab.msdn.microsoft.com/produc...9-b8fb08d7cbd8
> )
>
> Reading the answer i realized that this happens only in debug mode, due to
> the use, by VS2005, of Cassini; so I can fix it attaching to IIS instead of
> Cassini!
> Lorenzo


> "Juan T. Llibre" ha scritto:
>
>> Good catch, Lorenzo.
>>
>> The behavior is as you describe it, and I agree that Server.MapPath should
>> reflect the true physical directory of a virtual directory within an Application.
>>
>> Please go to the Product Feedback Center :
>> http://lab.msdn.microsoft.com/produc...k/default.aspx
>> and file a bug for that behavior.
>>
>> You will need a Passport account to file a bug at the Feedback Center.
>>
>> Thank you!
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> =============== =============== =====
>> "Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
>> news:7A******** *************** ***********@mic rosoft.com...
>> > Hello,
>> >
>> > I have a web application with a virtual directory in it. With 'virtual
>> > directory' i mean
>> > a folder whose physical path is different from the physical path of the
>> > application, but in which Web Sharing is active.
>> > For example:
>> > my application is in "C:\Inetpub\www root\MyApp",
>> > the Virtual folder is in "C:\VirtualFold er",
>> > and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".
>> >
>> > How can I get, from code, the real physical path of the virtual folder?
>> > I tried with Server.Mappath, but I found that it returns
>> > "C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"
>> >
>> > Thanks
>> > Lorenzo
>> >
>> > --
>> > Lorenzo
>>
>>
>>


Mar 22 '06 #8
Maybe I did a test sligthly different?

I Wasn't in debug mode.

In the first test, I tried opening IE and writing directly a path like this:
http:\\localhos t\Projects\2006 \myapp\WebServi ce.asmx
(I use a WebService for the test: when invoked, it returns the path of a
virtual directory, generated via Server.Mappath) .
This test works correctly!

In the second test, I tried opening IE and writing directly a path like this:
http:\\localhos t:1263\myapp\We bService.asmx
(in this way I use Cassini, it's right?).
In this test the problem happens!

I made some error?

--
Lorenzo
"Juan T. Llibre" ha scritto:
Actually, I did quite a bit of testing with IIS after I read your post.
It happens with IIS and I can repro it.

You are mistaken about it only happening with Cassini.
File the bug or, if you are not up to it, I will.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:7F******** *************** ***********@mic rosoft.com...
No, it happens only with Cassini, I just verified it!
--
Lorenzo


"Juan T. Llibre" ha scritto:
Yes, please bug it as happening under IIS, too.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:98******** *************** ***********@mic rosoft.com...
> The bug was already reported!
>
> (see:
> http://lab.msdn.microsoft.com/produc...9-b8fb08d7cbd8
> )
>
> Reading the answer i realized that this happens only in debug mode, due to
> the use, by VS2005, of Cassini; so I can fix it attaching to IIS instead of
> Cassini!
> Lorenzo
> "Juan T. Llibre" ha scritto:
>
>> Good catch, Lorenzo.
>>
>> The behavior is as you describe it, and I agree that Server.MapPath should
>> reflect the true physical directory of a virtual directory within an Application.
>>
>> Please go to the Product Feedback Center :
>> http://lab.msdn.microsoft.com/produc...k/default.aspx
>> and file a bug for that behavior.
>>
>> You will need a Passport account to file a bug at the Feedback Center.
>>
>> Thank you!
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> =============== =============== =====
>> "Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
>> news:7A******** *************** ***********@mic rosoft.com...
>> > Hello,
>> >
>> > I have a web application with a virtual directory in it. With 'virtual
>> > directory' i mean
>> > a folder whose physical path is different from the physical path of the
>> > application, but in which Web Sharing is active.
>> > For example:
>> > my application is in "C:\Inetpub\www root\MyApp",
>> > the Virtual folder is in "C:\VirtualFold er",
>> > and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".
>> >
>> > How can I get, from code, the real physical path of the virtual folder?
>> > I tried with Server.Mappath, but I found that it returns
>> > "C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"
>> >
>> > Thanks
>> > Lorenzo
>> >
>> > --
>> > Lorenzo
>>
>>
>>


Mar 23 '06 #9
You never mentioned that you were talking about a Web Service.

I tested on an aspx page, which is the *usual* type of "web application",
which is all you mentioned in your original post, so, yes, it does make for
"slightly different" testing conditions.

Post webservice.asmx so we can dissect the code in it.
It dosn't have earth-shaking super-secret code in it, does it ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:BB******** *************** ***********@mic rosoft.com...
Maybe I did a test sligthly different?

I Wasn't in debug mode.

In the first test, I tried opening IE and writing directly a path like this:
http:\\localhos t\Projects\2006 \myapp\WebServi ce.asmx
(I use a WebService for the test: when invoked, it returns the path of a
virtual directory, generated via Server.Mappath) .
This test works correctly!

In the second test, I tried opening IE and writing directly a path like this:
http:\\localhos t:1263\myapp\We bService.asmx
(in this way I use Cassini, it's right?).
In this test the problem happens!

I made some error?
--
Lorenzo
"Juan T. Llibre" ha scritto:
Actually, I did quite a bit of testing with IIS after I read your post.
It happens with IIS and I can repro it.

You are mistaken about it only happening with Cassini.
File the bug or, if you are not up to it, I will.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
news:7F******** *************** ***********@mic rosoft.com...
> No, it happens only with Cassini, I just verified it!
> --
> Lorenzo


> "Juan T. Llibre" ha scritto:
>
>> Yes, please bug it as happening under IIS, too.
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> =============== =============== =====
>> "Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
>> news:98******** *************** ***********@mic rosoft.com...
>> > The bug was already reported!
>> >
>> > (see:
>> > http://lab.msdn.microsoft.com/produc...9-b8fb08d7cbd8
>> > )
>> >
>> > Reading the answer i realized that this happens only in debug mode, due to
>> > the use, by VS2005, of Cassini; so I can fix it attaching to IIS instead of
>> > Cassini!
>> > Lorenzo
>>
>>
>> > "Juan T. Llibre" ha scritto:
>> >
>> >> Good catch, Lorenzo.
>> >>
>> >> The behavior is as you describe it, and I agree that Server.MapPath should
>> >> reflect the true physical directory of a virtual directory within an Application.
>> >>
>> >> Please go to the Product Feedback Center :
>> >> http://lab.msdn.microsoft.com/produc...k/default.aspx
>> >> and file a bug for that behavior.
>> >>
>> >> You will need a Passport account to file a bug at the Feedback Center.
>> >>
>> >> Thank you!
>> >>
>> >>
>> >>
>> >> Juan T. Llibre, asp.net MVP
>> >> aspnetfaq.com : http://www.aspnetfaq.com/
>> >> asp.net faq : http://asp.net.do/faq/
>> >> foros de asp.net, en español : http://asp.net.do/foros/
>> >> =============== =============== =====
>> >> "Lorenzo" <Lo*****@discus sions.microsoft .com> wrote in message
>> >> news:7A******** *************** ***********@mic rosoft.com...
>> >> > Hello,
>> >> >
>> >> > I have a web application with a virtual directory in it. With 'virtual
>> >> > directory' i mean
>> >> > a folder whose physical path is different from the physical path of the
>> >> > application, but in which Web Sharing is active.
>> >> > For example:
>> >> > my application is in "C:\Inetpub\www root\MyApp",
>> >> > the Virtual folder is in "C:\VirtualFold er",
>> >> > and IIS sees it as if it were in "C:\Inetpub\www root\MyApp\Virt ualFolder".
>> >> >
>> >> > How can I get, from code, the real physical path of the virtual folder?
>> >> > I tried with Server.Mappath, but I found that it returns
>> >> > "C:\Inetpub\www root\MyApp\Virt ualFolder", not "C:\VirtualFold er"
>> >> >
>> >> > Thanks
>> >> > Lorenzo
>> >> >
>> >> > --
>> >> > Lorenzo
>> >>
>> >>
>> >>
>>
>>
>>


Mar 23 '06 #10

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

Similar topics

13
14317
by: John Rebbeck | last post by:
I've got the directory f:\Company\Product set as web shared so it's got a virtual directory in the default web site on my test server's IIS. If I try to use Server.MapPath in that site it returns a path within c:\Inetpub\wwwroot rather than the real path. Can anyone please tell me why this isn't working? Regards, John
7
3682
by: Elie Grouchko | last post by:
Hi I am running exactly the same ASP code on IIS 5.0 and IIS 6.0 I am calling Server.MapPath(), the parameter is a virtual path that includes a reference to a parent path ("Root/Files/../Config/"). 'Config' is a virtual directory under 'Root' which is also a virtual directory. 'Files' is a normal folder. Under IIS 5.0, the path is correctly mapped to the local path of the
7
2360
by: laura | last post by:
I'm trying to understand fully Server.MapPath. I am writing an intranet for a small company and want to be able to put some files accessible to all, hyperlinked from the intranet and therefore, outside of the website area - the idea being that I want staff to be able to copy files into folders that can be accessed by hyperlinks on the intranet pages. I've had a problem separating them from the intranet HTML and ASP pages, which is...
10
9037
by: Kenneth P | last post by:
Hi all, I have an Access database and try to create a connection to it using the Server.MapPath method. I have the app lib in c:\inetprub\wwwroot\apps\myApp and the database in c:\inetpub\dbq\myDB. Using Server.MapPath("../../../dbq/myDB") should as I understand it take me to the myDB lib. But instead I get an error message saying "Cannot use a leading .. to exit above the top directory."
3
3988
by: Cozmo | last post by:
We have an .asp application , located in: e:\myapp In there we have directories like: e:\myapp\db e:\myapp\images e:\myapp\utils e:\myapp\working
11
2256
by: brett | last post by:
I use two test servers and one production. I have a Utilities class that holds many of the links used through the site. One of the variables in this class is assigned the domain name. I need to automatically set this value depending on the server I'm on. The domain can be similar to any of the following depending on the server: - abc.com - 190.168.2.100 - 190.168.2.109
1
7146
by: jbonifacejr | last post by:
I am unable to use the GetFolder method of the FileSystem object when trying to get the folders from within a Virtual Directory. Here is my setup... I have a Development Box (DB) and a WebServer (WS) and a separate file server (FS). On FS, I have a share with permission for Everyone set to Read. On my DevBox I have a website in IIS named CD and inside the website folder I have a Virtual Directory (Moozik) with the location set to...
4
7191
by: vunet.us | last post by:
How to use server.mappath() parent folder correctly: Server.MapPath("../test.asp") Thank you for the hint.
6
7940
by: withers | last post by:
If I run Server.MapPath("/") on my operational Internet server I get, correctly, the physical path to the directory my page is in (d:\.... \...\htdocs). If I run Server.MapPath("/") on my intranet server, my localhost, I get c:\inetpub\wwwroot, but my webpages are NOT in this folder, they are in c:\webtest. How to I establish the correct physical root on my intranet server?
0
8697
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9290
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9061
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7925
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6615
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5939
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2508
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2097
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.