2012-03-12 103 views
0

我有Wcf服务,其方法是POST,我通过Fiddler调用。我有这条线:HttpContext.Current返回null

string x = HttpContext.Current.Server.MapPath("."); 

和HttpContext.Current返回null。我该如何解决这个问题?

+1

这应该是你所需要的一切:http://msdn.microsoft.com/en-us/library/ms752234.aspx – ChaosPandion 2012-03-12 14:26:12

回答