How to get working path of a wcf application?

前端 未结 7 1644
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 01:16

I want to get the working folder of a WCF application. How can I get it?

If I try

HttpContext.Current.Request.MapPath(HttpContext.Current.Request.Ap         


        
7条回答
  •  我在风中等你
    2020-11-29 01:44

    In order to reference ASP.NET features like the HttpContext object, you need to run your WCF app in ASP.NET compatibility mode. This article explains how to do this.

提交回复
热议问题