【发布时间】:2011-03-29 10:20:30
【问题描述】:
Server.mappath 在 wcf 中不起作用?在 IIS 中获取文件物理位置的替代方法是什么?
【问题讨论】:
标签: wcf
Server.mappath 在 wcf 中不起作用?在 IIS 中获取文件物理位置的替代方法是什么?
【问题讨论】:
标签: wcf
此主题中的最佳答案:How to get working path of a wcf application?
基本上就是用这个来获取工作目录:
System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath
【讨论】: