仅在本地计算机上的JavaScript运行时错误

时间:2015-03-12 19:28:12

标签: javascript telerik

我收到以下javascript错误,但奇怪的是它只发生在我通过本地机器上的代码运行应用程序时。代码在服务器上正常运行。任何建议或帮助将不胜感激。

http://localhost/CCSS/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:fa6755fd-da1a-49d3-9eb4-1e473e780ecd:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2012.1.215.40,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:b29b07e8-2c1e-44e5-9e1b-59bb6459fb01:16e4e7cd:ed16cbdc:f7645509:24ee1bba:f46195d3:2003d0b8:1e771326:aa288e2d:b7778d6c:e085fe68:7165f74:e330518b:c8618e41:8e6f0d33:6a6d718d:7c926187:8674cba1:c08e9f8a:59462f1:a51ee93e:82923ac3:2e42e72a:ef347303:cb4a7569:30f1f089:874f8ea2:19620875:490a9d4e:58366029:bd8f85e4

中第6行第74203行未处理的异常

0x800a138f - JavaScript运行时错误:无法设置属性' control'未定义或空引用

更新:这是抛出错误的行     Sys.Application.add_init(function(){     $ create(Telerik.Web.UI.RadComboBox,{" _dropDownWidth":0," _height":0," _skin":"默认&#34 ;," _text":" 5"" _uniqueId":" ctl00 $搜索Maincontent $ AddressUpdate $ grdAddresses $ ctl00 $ ctl03 $ ctl01 $ PageSizeComboBox&#34 ;," _value":" 5"" clientStateFieldID":" ctl00_MainContent_AddressUpdate_grdAddresses_ctl00_ctl03_ctl01_PageSizeComboBox_ClientState"" collapseAnimation":&#34 ; {\"持续时间\" 450}"" expandAnimation":" {\"持续时间\" 450}& #34;"的ItemData":[{"值":" 5""选择":真,"属性&# 34;:{" ownerTableViewId":" ctl00_MainContent_AddressUpdate_grdAddresses_ctl00"}},{"值":" 10""属性&#34 ;:{" ownerTableViewId":" ctl00_MainContent_AddressUpdate_grdAddresses_ctl00"}},{"值":" 20""属性" :{" ownerTableViewId":" ctl00_MainContent_AddressUpdate_grdAddresses_ ctl00"}},{"值":" 50""属性" {" ownerTableViewId":" ctl00_MainContent_AddressUpdate_grdAddresses_ctl00& #34;}}],"本地化":" {\" AllItemsCheckedString \":\"所有项目已检查\",\&# 34; ItemsCheckedString \":\"检查项目\",\" CheckAllString \":\"全部检查\"}&#34 ;," selectedIndex":0},{" selectedIndexChanged":Telerik.Web.UI.Grid.ChangePageSizeComboHandler},null,$ get(" ctl00_MainContent_AddressUpdate_grdAddresses_ctl00_ctl03_ctl01_PageSizeComboBox")) ; });

1 个答案:

答案 0 :(得分:0)

通常禁用Visual Studio browserlink可以解决该问题 - 这是一个显示如何禁用它的链接http://www.poconosystems.com/software-development/how-to-disable-browser-link-in-visual-studio-2013/