Currently, I am working on developing a Web Application using WebForms with ASP.NET. One of the functionalities involves loading a custom javascript script file through a ScriptManager.
However, upon viewing the page in a browser, I am encountering an issue where the intended action of displaying a timer is not happening. When I check the page source, I come across the following error message:
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
To troubleshoot this problem, I have tried using the same javascript file in an ASP.NET Website and it works perfectly there. The issue only seems to occur when using it within a Web Application. Additionally, I inserted an alert into the javascript file and it functions correctly on both the Website and Web Application.