我希望这个老式的 .asmx 文件在 AppHarbor 上与 .NET 4.5 一起使用,但它给了我这个我在本地看不到的错误。有任何想法吗?
是因为我最近转向了 .NET 4.5 吗?该应用程序的其余部分都很好。
.asmx has not been pre-compiled, and cannot be requested.
这是一些堆栈跟踪
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath,布尔 noBuild,布尔allowCrossApp,布尔allowBuildInPrecompile,布尔throwIfNotFound,布尔ensureIsUpToDate)+692
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext 上下文,VirtualPath virtualPath,布尔 noBuild,布尔allowCrossApp,布尔allowBuildInPrecompile,布尔throwIfNotFound,布尔ensureIsUpToDate)+103
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext上下文,VirtualPath virtualPath,布尔noBuild,布尔allowCrossApp,布尔allowBuildInPrecompile,布尔ensureIsUpToDate)+48
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath) +16