【问题标题】:Could not create ASP.content_xxx_aspx无法创建 ASP.content_xxx_aspx
【发布时间】:2021-04-18 02:07:27
【问题描述】:

程序没有错误,但是当我尝试在 IIS (Microsoft Edge) 中运行它时,我收到了这个错误:

服务器无法创建 ASP.content_admin_matkul_aspx。

堆栈跟踪:

[InvalidOperationException:服务器无法创建 ASP.content_admin_matkul_aspx。]

__ASP.FastObjectFactory_app_web_3bgnxvsl.Create_ASP_content_admin_matkul_aspx() +192
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +31
Microsoft.AspNet.FriendlyUrls.FriendlyUrlRouteHandler.GetHttpHandler(RequestContext requestContext) +22
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase 上下文) +9942213
System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +85
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +144
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73

错误告诉我在产生错误的 .aspx 文件顶部添加 debug = true ,我已经这样做了:

<%@ Page Language="vb" Debug="true" AutoEventWireup="false" 
         CodeBehind="matkul.aspx.vb" 
         Inherits="DeaniraFadrinaldi_BankSoalITSA.matkul"%>

还像这样在我的应用程序 (web.config) 的配置文件中添加编译调试 = "true":

<compilation debug="true" strict="false" explicit="true" targetFramework="4.7.2"/>

但我仍然遇到同样的错误,请帮帮忙

【问题讨论】:

    标签: asp.net vb.net webforms


    【解决方案1】:

    已修复!!

    我为我的 vb 类和我的 web 表单使用了相同的名称。显然 asp.net 不允许您使用相同的名称,请务必在您的 vb 类和 Web 表单上使用不同的名称。谢谢:))

    【讨论】:

      猜你喜欢
      • 2021-01-11
      • 2022-12-11
      • 2015-09-16
      • 2014-11-21
      • 2018-05-12
      • 2011-07-09
      • 2020-10-01
      • 2017-01-12
      • 2019-02-17
      相关资源
      最近更新 更多