For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > November 2005 > IIS Application Name resolving









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author IIS Application Name resolving
RJDev

2005-11-29, 3:58 am

Hi,
Is there anyone who can help me in resolving the Application Name of my IIS
Aaplication.
I want to check the application name to see what configuration i need to use
because multiple virtual or root Web domains are using the same app env.

Regards,
Rene


Juan T. Llibre

2005-11-29, 3:58 am

Request.ApplicationPath should work for you.



Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================

"RJDev" <rjdev2002@hotmail.com> wrote in message news:enKQ5HM9FHA.1184@TK2MSFTNGP12.phx.gbl...
> Hi,
> Is there anyone who can help me in resolving the Application Name of my IIS Aaplication.
> I want to check the application name to see what configuration i need to use because multiple
> virtual or root Web domains are using the same app env.
>
> Regards,
> Rene
>



RJDev

2005-11-29, 3:58 am

Juan,
Thnx. I tried this but it will return my Virtual Web path. And not the
Application name itself.
Regards,
Rene

"Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
news:umvfrWM9FHA.2792@TK2MSFTNGP11.phx.gbl...
> Request.ApplicationPath should work for you.
>
>
>
> Juan T. Llibre
> ASP.NET.FAQ : http://asp.net.do/faq/
> ASPNETFAQ.COM : http://www.aspnetfaq.com/
> Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
> ======================================
>
> "RJDev" <rjdev2002@hotmail.com> wrote in message
> news:enKQ5HM9FHA.1184@TK2MSFTNGP12.phx.gbl...
>
>



Juan T. Llibre

2005-11-29, 3:58 am

RJ,

Your virtual path *is* your ASP.NET application's name.

If you just want the letters in the name ( without the slash ), use :

Request.ApplicationPath.Substring(1, Request.ApplicationPath.Length-1)

That, instead of returning "/appname", will return "appname".



Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================

"RJDev" <rjdev2002@hotmail.com> wrote in message news:uuGMscM9FHA.476@TK2MSFTNGP15.phx.gbl...
> Juan,
> Thnx. I tried this but it will return my Virtual Web path. And not the Application name itself.
> Regards,
> Rene
>
> "Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
> news:umvfrWM9FHA.2792@TK2MSFTNGP11.phx.gbl...
>
>



RJDev

2005-11-29, 3:58 am

Juan,
I am going to try this.
Thnx.

"Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
news:uy5knfM9FHA.2264@tk2msftngp13.phx.gbl...
> RJ,
>
> Your virtual path *is* your ASP.NET application's name.
>
> If you just want the letters in the name ( without the slash ), use :
>
> Request.ApplicationPath.Substring(1, Request.ApplicationPath.Length-1)
>
> That, instead of returning "/appname", will return "appname".
>
>
>
> Juan T. Llibre
> ASP.NET.FAQ : http://asp.net.do/faq/
> ASPNETFAQ.COM : http://www.aspnetfaq.com/
> Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
> ======================================
>
> "RJDev" <rjdev2002@hotmail.com> wrote in message
> news:uuGMscM9FHA.476@TK2MSFTNGP15.phx.gbl...
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com