locked
Lightswitch 2013 JavaScript Error RRS feed

Answers

  • Can you try disabling the "NameCtrl Class" add-on by clicking on the Gear button in the upper right hand corner of IE, "Manage add-ons".  You might need to pick "All Add-ons" from the "Show" drop-down list.  Find "NameCtrl Class" right-click on it and hit Disable.  Then close IE and try your project again.

    David Kidder | Senior SDET | Microsoft | LightSwitch

    • Proposed as answer by DarkSideNRW Thursday, October 31, 2013 7:36 PM
    • Marked as answer by Yunjie Pei - MSFT Wednesday, November 6, 2013 10:58 AM
    Thursday, October 31, 2013 2:16 PM
    Moderator
  • Hi David,

    i turned of this "NameCtrl Class" and it works!

    Will you be so kind and explain to me what this "NameCtrl Class" is? 
    I would love to understand what was the problem. 

    Many thanks!

    Thomas

    Thursday, October 31, 2013 7:36 PM

All replies

  • Please take a look at this thread

    0x800a1391 - JavaScript runtime error" 'msls' is undefined


    David Kidder | Senior SDET | Microsoft | LightSwitch

    Wednesday, October 23, 2013 5:32 PM
    Moderator
  • Hello David,

    i read it already and have tried every single idea in this thread. I have a fresh installed VS 2013.

    The scripts are OK, i reinstalled the nuget package, create a new empty Project, ans start the Project and i get the same Errors.

    Would you please send me an empty Project and i check the diffrences in the files? Or i send you my Project?

    There is an error with namectrl too. Any idea?

    I have tested this sample and get the same error

    http://code.msdn.microsoft.com/LightSwitch-Value-Control-67994095

    this the extract frpm the Default.html

     

    <scripttype="text/javascript"src="//ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js"></script>


     

    <scripttype="text/javascript"src="//ajax.aspnetcdn.com/ajax/globalize/0.1.1/globalize.min.js"></script>


       

    <scripttype="text/javascript"src="Scripts/winjs-1.0.min.js"></script>

    <scripttype="text/javascript"src="Scripts/jquery-1.9.1.min.js"></script>

    <scripttype="text/javascript"src="Scripts/jquery.mobile-1.3.0.min.js"></script>


       

    <scripttype="text/javascript"src="Scripts/datajs-1.1.1.min.js"></script>


       

    <scripttype="text/javascript"src="Scripts/Generated/resources.js"></script>


       

    <scripttype="text/javascript"src="Scripts/msls-2.0.0.min.js"></script>


       

    <scripttype="text/javascript"src="Scripts/Generated/generatedAssets.js"></script>


    • Edited by TheBigM Wednesday, October 23, 2013 6:19 PM
    Wednesday, October 23, 2013 6:12 PM
  • You can email me at

    david (dot) kidder (at) Microsoft (dot) com

    and we can arrange for you to share the project.


    David Kidder | Senior SDET | Microsoft | LightSwitch

    Wednesday, October 23, 2013 6:28 PM
    Moderator
  • Same Problem here...

    Deinstalled VS 2012 Update 4 RC, Extensibility Toolkit and SDK.

    New installed VS 2013 Prof Extensibility Toolkit for VS2013 & VS2013 SDK.

    New VB HTML Project created, 1 Table with test, test1 Items. New Screen - Browse Table1item.

    Started with Debug.

    Then this:

    Ausnahmefehler in Zeile 5, Spalte 235042 in http://localhost:51090/HTMLClient/Scripts/msls-2.0.0.min.js

    0x8002802b - Laufzeitfehler in JavaScript: Unbekannte Ausnahme

    (sorry cant Change to english language because ist is not listed in Extras/Options/International and i cant install the english language because the installer said that it is installed :-( )

    Hard times for me with VS2013 :-((

    Saturday, October 26, 2013 9:05 AM
  • starting the app Fiddler Shows this:

    Ausführliche Fehlerinformationen:

    Modul    IIS Web Core
    Benachrichtigung    MapRequestHandler
    Handler    StaticFile
    Fehlercode    0x80070002
    Angeforderte URL    http://localhost:51090/HTMLClient/Content/Resources/client.lang-EN-US.resjson
    Physischer Pfad    C:\Entwicklung\Application1\Application1\bin\Debug\HTMLClient\Content\Resources\client.lang-EN-US.resjson
    Anmeldemethode    Anonym
    Angemeldeter Benutzer    Anonym
    Verzeichnis für Ablaufverfolgung

    Saturday, October 26, 2013 9:10 AM
  • If you are using Internet Explorer, can you try using Chrome or Firefox and see if the problem still happens? (Not saying to switch permanently, just trying to narrow down the problem).

    The original poster told me over email that he was using IE and that the problem didn't happen in Chrome or FireFox or if he disabled the NameCtrl Add-on through the "Manage Add-ons..." menu of IE.  Please let me know if this also works.  (Still not a good solution but trying to isolate the problem). 


    David Kidder | Senior SDET | Microsoft | LightSwitch

    Saturday, October 26, 2013 2:04 PM
    Moderator
  • Hi David,

    changed Browser to Chrome and Firefox. Both ends with the same error:

    error message

    This is marked after the error message occurs

    Meanwhile i have installed a virtual PC with win7 32bit and ie 10 and vs2013.
    Same Project started and it works!
    The Probelm seems to be an artifact from a previous vs2012 (or something else) Installation.
    i deinstalled ALL previsous Versions of all Visual Studio an SQL Server 2012 and Updates.

    same error.
    i didnt get this tiny Project to work.

    hope someone can help!

    Thomas

    Tuesday, October 29, 2013 8:47 AM
  • This is my Default.htm an the scripts:

    Looks ok to me:

    Tuesday, October 29, 2013 8:48 AM
  • Did you look carefully through the post I already referred to in this post?

    0x800a1391 - JavaScript runtime error" 'msls' is undefined

    Also, please try clearing your Browsing History (through Internet Options in IE).


    David Kidder | Senior SDET | Microsoft | LightSwitch

    Tuesday, October 29, 2013 12:46 PM
    Moderator
  • Hi David,

    i had a look at the link u gave earlier in this post. I compared my default.htm with the scripts in my Project and it Looks ok to me.

    and because i do not get the "msls undefined error" but an msls "runtime error" i thought that this post is not the solution to my problem.

    The only thing that i hadnt done was removing the nuget packages as Huy Nguyen suggests . But i will do this today and give a feedback.

    Tuesday, October 29, 2013 5:14 PM
  • Hi David,

    i have done all Steps in the post 0x800a1391 - JavaScript runtime error" 'msls' is undefined.

    Same error like above (see images)

    Any Hints for me to go forward? 

    I Have Installed VS2013 a Week ago and cant do what i want.

    This is very annoying and costs time and money.

    Whatever you suggest i will test and do and send and whatever....
    i have a timeline and this is getting worse for me.

    Thomas


    • Edited by DarkSideNRW Thursday, October 31, 2013 6:20 AM
    Thursday, October 31, 2013 6:20 AM
  • Can you try disabling the "NameCtrl Class" add-on by clicking on the Gear button in the upper right hand corner of IE, "Manage add-ons".  You might need to pick "All Add-ons" from the "Show" drop-down list.  Find "NameCtrl Class" right-click on it and hit Disable.  Then close IE and try your project again.

    David Kidder | Senior SDET | Microsoft | LightSwitch

    • Proposed as answer by DarkSideNRW Thursday, October 31, 2013 7:36 PM
    • Marked as answer by Yunjie Pei - MSFT Wednesday, November 6, 2013 10:58 AM
    Thursday, October 31, 2013 2:16 PM
    Moderator
  • i will try your suggestion ...but, as i said above, the application throws the same error running on Firefox and Chrome.

    Best,
    Thomas

    Thursday, October 31, 2013 2:28 PM
  • The add-on is used in all the browsers, I just explained how to shut it off in IE.

    David Kidder | Senior SDET | Microsoft | LightSwitch

    • Proposed as answer by DarkSideNRW Thursday, October 31, 2013 7:36 PM
    Thursday, October 31, 2013 2:31 PM
    Moderator
  • Hi David,

    i turned of this "NameCtrl Class" and it works!

    Will you be so kind and explain to me what this "NameCtrl Class" is? 
    I would love to understand what was the problem. 

    Many thanks!

    Thomas

    Thursday, October 31, 2013 7:36 PM
  • The NameCtrl Class is an ActiveX control that is used for the new PeoplePicker control that we added.  Why this is a problem, I don't know, hopefully we can figure that out soon.

    David Kidder | Senior SDET | Microsoft | LightSwitch

    Thursday, October 31, 2013 7:48 PM
    Moderator