0x800a139e – Syntax error, unrecognized expression (FIX)

by Yugolancer


Posted on Saturday, August 13, 2016



Usually you get this error when you run an ASP.NET (Visual Studio 2kxx) Project having focus on a file that cannot be ran.

For instance if you edit your web.config and then just hit F5 key. JQuery will try to parse the url and as you guess it’s going to thrown an exception:


// e.g. 
contentTop.push($($(this).attr('href')).offset().top);

Fix: just open another file (view or page in design or code view) and re-run the project. Voila!


Copyright © ASPNETer 2006 - 2016