'jquery' is not a valid script name. The name must end in '.js'

前端 未结 10 1633
长发绾君心
长发绾君心 2020-12-10 11:56

My ASP.Net project is working well, when suddenly we had a power failure. When I ran my web app, it is now showing a lot of

Could not load assembly S

10条回答
  •  时光说笑
    2020-12-10 12:41

    This fixed my issue. Add this BundleConfig.cs Check your paths.

     ScriptManager.ScriptResourceMapping.AddDefinition("bootstrap", new ScriptResourceDefinition {
                    Path = "~/scripts/bootstrap.min.js",
                    DebugPath = "~/scripts/bootstrap.js",
                    LoadSuccessExpression = "bootstrap"});
    

    And kept this in the ScriptManager on the site.master

      
    

    Follow this article for more clarity if needed

提交回复
热议问题