












2009-09-21 22:57 Tam 阅读(1129) 评论() 收藏 举报
Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
Line 6: { Line 7: // Code that runs on application startup Line 8: var appPath = HttpContext.Current.Request.ApplicationPath; Line 9: } Line 10:
如果我们只是需要获取当前的虚拟目录名,可以使用HttpRuntime.AppDomainAppVirtualPath代替。
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。