'jQuery的'不是一个有效的脚本名称。该名称必须以“.js文件”结束 [英] 'jquery' is not a valid script name. The name must end in '.js'
问题描述
我的ASP.Net项目运作良好的时候,突然我们有一个电源故障。当我跑我的web应用程序,它现在呈现出许多的
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
无法加载程序集消毒...,然后无法加载HtmlAgility ...
Could not load assembly Sanitizer..." then "Could not load "HtmlAgility...
错误。我可以通过卸载/重新安装使用它们来解决这些previous错误的管理的NuGet包解决方案的在Visual Studio中2012
errors. I was able to resolve these previous errors by uninstalling / reinstalling them using Manage Nuget Package Solutions inside Visual Studio 2012.
但现在我遇到了另一个错误:
But now I encountered another error:
jQuery的'不是一个有效的脚本名。该名称必须结束的.js'。
'jquery' is not a valid script name. The name must end in '.js'."
我试图通过重新安装包做同样的事情,但它不工作。我应该怎么做才能解决这个问题?我已经位于我的根\\ Scripts文件夹一个文件的jquery.js。我还添加引用此文件,我的部分里面:
I tried to do same thing by re-installing the package but it does not work. What should I do to resolve this? I already have a jquery.js file located on my root\Scripts folder. I also added reference to this file inside my section:
<script src="Scripts/jquery.js"></script>
但它仍然是行不通的。请帮助。
But still it won't work. Please help.
推荐答案
到了球员的方式,我可以通过安装 AspNet.ScriptManager.jQuery.UI.Combined $ C来解决这个使用的NuGet工具$ C>和
AspNet.ScriptManager.jQuery
包。
By the way guys, I was able to resolve this by installing the AspNet.ScriptManager.jQuery.UI.Combined
and AspNet.ScriptManager.jQuery
packages using the Nuget tool.
这篇关于'jQuery的'不是一个有效的脚本名称。该名称必须以“.js文件”结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!