Sunday, March 11, 2012

Ajax 1.0 Beta and "debug.assert is not a function"

I found that changing ScriptMode="Release" in ScriptManager solves the problem, but I noticed that in Debug mode, it really tries to call a method that ius not defined. It appears Ajax.NET is not registering it. Does anyone have the same problem?

I still get this, despite changing to Release. It happens all the time actually and I cannot get my head round why it is not emitting the debug scripts in debug mode and why it is including calls to them in release mode.

I had hoped that somehow it would pick up Release or Debug from the deployment/web.config but this is not happening either.

If I'm doing anything wrong I'd love to know what but I am of the opinion that if the debug libraries are not emitted then calls to them should not occur.

Ryan

No comments:

Post a Comment