开箱即用的Light Switch HTML应用程序在IE9中存在null错误

本文关键字:IE9 存在 错误 null 应用程序 HTML Switch Light | 更新日期: 2024-10-19 13:29:17

我第一次尝试LightSwitch,在制作了一个新的HTML C#应用程序后,我试着运行它,只是想看看它是什么样子。IE9立即冻结,我从Visual Studio 2013:收到此错误

Unhandled exception at line 5, column 19701 in http://localhost:49609/HTMLClient/Scripts/msls-2.5.1.min.js

0x800a138f - Microsoft JScript runtime error: Unable to get value of the property 'cultures': object is null or undefined

有人知道发生了什么事吗?非常感谢。

开箱即用的Light Switch HTML应用程序在IE9中存在null错误

我发现了这个问题-我在离线环境中运行Lightswitch,这两个脚本是404'ing:

http://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.jshttp://ajax.aspnetcdn.com/ajax/globalize/0.1.1/globalize.min.js

一旦保存在解决方案中,我加载得很好。

这影响了我在VS 2015所有浏览器上的表现。我认为这是因为服务器的封闭环境。

林基本正确:将这两个文件下载到Scripts文件夹中:http://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.jshttp://ajax.aspnetcdn.com/ajax/globalize/0.1.1/globalize.min.js

下一页:在default.htm中更改:

<script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js"></script>
<script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/globalize/0.1.1/globalize.min.js"></script>

至:

<script type="text/javascript" src="Scripts/MicrosoftAjax.js"></script>
<script type="text/javascript" src="Scripts/globalize.min.js"></script>