jQuery error with visual studio 2013

Last post 03-11-2014, 1:29 PM by petermac. 3 replies.
Sort Posts: Previous Next
  •  03-11-2014, 7:30 AM 80048

    jQuery error with visual studio 2013

    I just updated my Microsoft Visual Studio to:

     

    Microsoft Visual Studio Express 2013 for Web Ver 12.0.21005.1 REL

    Microsoft .NET Framework Ver 4.5.50938

     

    My CuteEditor id is Editor1. When I try to run a page VS 2013, the page comes up showingthe editor but then I get a message box with the error:

     

     Unhandled exception at line 37, column 59140 in http://localhost:60988/280569fc410d47bf86366672adf48229/browserLink

    0x800a139e - JavaScript runtime error: Syntax error, unrecognized expression: textarea#ctl00$ContentPlaceHolder1$Editor1

     

    When I look at where this code is, it is in the jQuery code that VS2013 automatically adds to the page.

     

    Is there a work around for this issue? 

  •  03-11-2014, 7:47 AM 80049 in reply to 80048

    Re: jQuery error with visual studio 2013

    I did not mention that this error shows up in VS debugging and stepping through code.

     

    On the website, the page loads but does not complete the code behind and there is no error message. 

  •  03-11-2014, 9:10 AM 80052 in reply to 80049

    Re: jQuery error with visual studio 2013

    Hi petermac,

     

    Can you create a new page with the code below? Does it get the same error too?

     

    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7.     <title>example</title>  
    8. </head>  
    9. <body>  
    10.     <form id="form1" runat="server">  
    11.         <CE:Editor ID="editor1" runat="server">  
    12.         </CE:Editor>  
    13.     </form>  
    14. </body>  
    15. </html>  
     

    Regards,

     

    Ken 

  •  03-11-2014, 1:29 PM 80058 in reply to 80052

    Re: jQuery error with visual studio 2013

    Code runs on the page http://cyclenovascotia.com/WebForm1.aspx  but not in the Visual Studio debugger. See below

     

    I am working with VB.net and here is the code I am running, per your request. There is no code in the code behind and it is not referenced:

     

     <%@ Page Language="vb" %>  

      

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  

    <html xmlns="http://www.w3.org/1999/xhtml">  

    <head id="Head1" runat="server">  

        <title>example</title>  

    </head>  

    <body>  

        <form id="form1" runat="server">  

            <CE:Editor ID="editor1" runat="server">  

            </CE:Editor>  

        </form>  

    </body>  

    </html> 

     

     ---------------------------------------------------------

     

    When I run this page in the vb debugger, I no longer get the error when page is loading. I do get an error with entering text in the editor and pressing the 'ENTER' key. Here is the error: 

     

    Unhandled exception at line 3, column 123672 in eval code


    0x800a138f - JavaScript runtime error: Unable to get property 'nodeName' of undefined or null reference
     
    This page is actually running on the website even though it won't run in the VB debugger. See http://cyclenovascotia.com/WebForm1.aspx
View as RSS news feed in XML