Yes, the famous "'Sys' is undefined" Microsoft JS issue.
I've already done about 4 hours of digging and trying every suggestion I can find about it, so before you immediately call this a duplicate, here me out please.
Ultimately, this question is exactly the same as this one, but the accepted answer isn't relevant to my situation, and the OP is no longer an active member.
Background
There are about a hundred pages in this application. Each of them ultimately inherits from the same base class. This base class overrides the Init
method and dynamically adds a ScriptManager
to it as the first Form
control.
On one single page out of them all, I encounter the issue described in the post I linked. I mentioned that the accepted answer was relevant. Here's why:
- I'm not making any
Sys.
calls - My page doesn't have any AJAX-enabled controls on it
- My page doesn't have any JavaScript on it
- My web.config is accurate, it includes the proper handler entries
- The issue is reproducible on both IIS 6.0 and IIS 7+
- If I explicitly add a ScriptManager to the page via
<asp:ScriptManager />
, the ScriptResource.axd include still doesn't render to the output page - I've tried clearing browser history, Temporary ASP.NET Files, rebooting, etc. with no change in behavior
- An older version of the application in our UAT environment functions correctly; the base page code nor the web.config file have changed since then
I'm completely stumped. It's an ASP.NET 3.5 web site project running on Win Server 2003 with IIS 6.0 (both Prod and UAT). My developer environment is Win7 with IIS 7.5. Same behavior in both environments.
Question
Does anybody have any ideas? I'm starting to think it's a bug in the ASP.NET 3.5.1 framework...