Question for application path

  • Thread starter Thread starter John Paul Goods
  • Start date Start date
J

John Paul Goods

Hi,

I have a class can be use by either Web Application or
Window Application. Inside of this class, I need to get
the application root. I know I can use
System.web.HttpContext.Current.Request.PhysicalApplicationP
ath to get the Application Path for Web Application, But
question is:
1) How do I know what type of application(Web or
Window)?
2) How to get the Application Path for the window app?

Thanks!

John Paul
 
Hi,

I have a class can be use by either Web Application or
Window Application. Inside of this class, I need to get
the application root. I know I can use
System.web.HttpContext.Current.Request.PhysicalApplicationP
ath to get the Application Path for Web Application, But
question is:
1) How do I know what type of application(Web or
Window)?
2) How to get the Application Path for the window app?

Thanks!

John Paul

Shot in the dark.. could you use the AppDomain information?
 
Back
Top