[英]'WebFormsBundle' is not a valid script name. The name must end in '.js'
What can i do to solve this error?我能做些什么来解决这个错误?
At the first the application was ok but than i dont know what happend.起初,应用程序还可以,但我不知道发生了什么。 i have curectly installed the packages and the references.
我已经正确安装了软件包和参考资料。
and here is the part than as i understand gives the error这是比我理解的错误的部分
<asp:ScriptManager runat="server">
<Scripts>
<%--To learn more about bundling scripts in ScriptManager see
http://go.microsoft.com/fwlink/?LinkID=301884 --%>
<%--Framework Scripts--%>
<asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="bootstrap" />
<asp:ScriptReference Name="respond" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web"
Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js"
Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js"
Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web"
Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web"
Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web"
Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web"
Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web"
Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle"/>
<%--Site Scripts--%>
</Scripts>
</asp:ScriptManager>
This solution worked for me:这个解决方案对我有用:
Install安装
Microsoft.AspNet.ScriptManager.WebForms Microsoft.AspNet.ScriptManager.WebForms
from Nuget (right-click your solution, select Manage Nuget packages)从 Nuget(右键单击您的解决方案,选择管理 Nuget 包)
Finally I got the solution by myself, Just follow the steps below to solve the problem.最后我自己得到了解决方案,只需按照以下步骤解决问题。
Install-Package Microsoft.ScriptManager.WebForms -Version 1.0.1
安装包 Microsoft.ScriptManager.WebForms -Version 1.0.1
update-Package -reinstall Microsoft.ScriptManager.WebForms
update-Package -reinstall Microsoft.ScriptManager.WebForms
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.