This is a migrated thread and some comments may be shown as answers.

DOMException: Failed to execute 'querySelectorAll' on 'Element': '*,:x' is not a valid selector.

1 Answer 12283 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
konrad
Top achievements
Rank 1
konrad asked on 01 Sep 2020, 08:45 PM

Hi!,

TargetFramework: 4.5.2

DLL from C:\Program Files (x86)\Progress\Telerik UI for ASP.NET AJAX R2 2020\Bin45

Starting first default page debugger in Visual Studio give me Exception Unhanded: DOMException: Failed to execute 'querySelectorAll' on 'Element': '*,:x' is not a valid selector. Visual stop just after comment below (Please check attachment).

 

/* END Telerik.Web.UI.Common.Core.js */
/* START Telerik.Web.UI.Common.jQuery.js */
/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */

 

 

Also loading pages is slow. Maybe because this exception occurs 2 times per each page (on loading).

 

Page is simple:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="q.aspx.cs" Inherits="Stocks.q" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Logowanie</title>
</head>
<body>
    <form id="form1" runat="server">
 
        <telerik:RadScriptManager ID="rsm" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
 
        <script type="text/javascript">
</script>
 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
 
        <asp:Table ID="Table1" runat="server" HorizontalAlign="Center">
            <asp:TableRow runat="server">
                <asp:TableCell runat="server" ColumnSpan="2" HorizontalAlign="Center">
                    <telerik:RadLabel ID="RadLabel1" runat="server" Text="test"></telerik:RadLabel>
                </asp:TableCell>
            </asp:TableRow>          
        </asp:Table>
 
    </form>
</body>
</html>

 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 04 Sep 2020, 03:08 PM

Hi Dominik,

Are you, by any chance, using Unobtrusive Validation in your project? If so, can you disable it and see if the result will be the same?

<configuration>
    <appSettings>
        <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
    </appSettings>
</configuration>

Would it be possible to send me the web config of the project in which the error is thrown so I can examine it further?

Regards,
Vessy
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Alvin
Top achievements
Rank 1
commented on 04 Feb 2022, 05:33 PM

Hi Vessy,

 

Recently, I have the same issue when developing my new webforms app, and found this post. To simplify the situation, I created a new Telerik Webforms Application with default settings for testing.  And I still got the same problem as below pic. Do you have any suggestions? 

 

Telerik ajax version: 2022.1.119.45 

.NET framework: 4.8

Best regards,

Alvin

Vessy
Telerik team
commented on 08 Feb 2022, 09:38 PM

Hi Alvin,

Did you try disabling the UnobtrusiveValidationMode like suggested in my previous reply?

Rochelle
Top achievements
Rank 1
commented on 12 Jul 2022, 06:08 PM

I'm having the same problem. I tried disabling UnobtrusiveValidationMode and i'm still getting the same error. 
Rumen
Telerik team
commented on 13 Jul 2022, 07:03 AM

Hi Rochelle,

You can find more reasons for the reported error in StackOverflow: JQuery error during load "Failed to execute query: '*,:x' is not a valid selector.".

If you are unable to resolve the problem, please isolate it in a simple runnable project and send it for examination via a support ticket. Please also include a screenshot of the error.

Tags
General Discussions
Asked by
konrad
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or