注册 登录
编程论坛 ASP.NET技术论坛

大家帮忙看下这个预编译问题

tanghf1014 发布于 2012-05-09 09:32, 1504 次点击
应用程序已预编译,因此不允许使用目录“/App_WebReferences/”。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Web.HttpException: 应用程序已预编译,因此不允许使用目录“/App_WebReferences/”。

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  

堆栈跟踪:


[HttpException (0x80004005): 应用程序已预编译,因此不允许使用目录“/App_Code/”。]
   System.(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8813523
   System.(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128
   System.() +31
   System.() +312

[HttpException (0x80004005): 应用程序已预编译,因此不允许使用目录“/App_WebReferences/”。]
   System.() +58
   System.() +512
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): 应用程序已预编译,因此不允许使用目录“/App_WebReferences/”。]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8894223
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259
1 回复
#2
yms1232012-05-09 17:24
http://
http://apps.hi.baidu.com/share/detail/58807720
百度上找到的
1