如果需要在Silverlight程序中获取当前网站的根目录,不能使用HttpContext.Current这样的方式,而需要用

@HostingEnvironment.ApplicationPhysicalPath

相关文章: