【问题标题】:Getting physical path of the file in wcf service在 wcf 服务中获取文件的物理路径
【发布时间】:2011-03-29 10:20:30
【问题描述】:

Server.mappath 在 wcf 中不起作用?在 IIS 中获取文件物理位置的替代方法是什么?

【问题讨论】:

    标签: wcf


    【解决方案1】:

    此主题中的最佳答案:How to get working path of a wcf application?

    基本上就是用这个来获取工作目录:

    System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多