ASP .Net 3.5应用程序升级到.NET 4.8提示:webresource.axd 404错误

广告:

错误信息: 这是一个无效的 Webresource 请求。提示webresource.axd文件 404错误

堆叠内容: 在 System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

解决办法:

设置嵌入的资源:

AssemblyInfo.cs 添加 :

[assembly: System.Web.UI.WebResource("Mvcb2b.Scripts.class.js", "application/x-javascript")]

广告:

相关内容

编辑:Admin 时间:2021/12/11 13:37:16 阅览:370   返回    
webresource.axd
扫描关注53BK报刊官网
扫描关注阅速公司微信