Задайте вопросЗадайте вопрос
 

ОтвеченоWCF equivalent to MapPath?

  • 9 января 2007 г. 16:32KevinBurton Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    Is there a WCF equivalent to MapPath? I have some specific files that will be in the directory where the service is running. My question stems from the fact that MapPath bacially is called from a static HttpContext. I understand that this isn't a problem if the service is hosted in IIS but will there be an HttpContext for all hosting environments? What would be the safest way to get the "root" directory of a WCF service? Thank you.

    Kevin Burton

    HttpContext.Current.Server.MapPath

Ответы

Все ответы