Sys is Undefined

  • Thread starter Thread starter xeroxero
  • Start date Start date
X

xeroxero

Following the instructions from the latest distribution of the AJAX
framework from Microsoft, I modifed my web.config like the below. I
get the "Sys' is undefined error message in my aspx page. What could
be wrong?

Thanks.



....stuff...

<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="Microsoft.Web.UI"
assembly="Microsoft.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="Microsoft.Web.UI.Controls"
assembly="Microsoft.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
<tagMapping>
</tagMapping>
</pages>

....stuff ...

<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false"
type="Microsoft.Web.Script.Services.ScriptHandlerFactory,
Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET" path="ScriptResource.axd"
type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>
</httpHandlers>

<httpModules>
<add name="WebResourceCompression"
type="Microsoft.Web.Handlers.WebResourceCompressionModule,
Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptModule" type="Microsoft.Web.UI.ScriptModule,
Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
</httpModules>

....stuff...
 
No. This is a Web Application Project, not a Web Site Project. Sorry I
didn't mention that before. Anyway, I have a seperate \lib directory
and the needed DLLs are there and I have a project reference for each
item.
 
Perhaps you are trying to use the client side library before it's been fully
instantiated.
To avoid this problem in ASP.NET AJAX beta 2, be sure not to attempt to use
any of its client side libraries until it has raised the pageLoaded event,
which signals that it is fully initialized and ready.

Here's more info:
http://ajax.asp.net/docs/ClientRefe...rClass/PageRequestManagerPageLoadedEvent.aspx

Even more details are available in my new book: Beginning ASP.NET 2.0 AJAX
http://www.amazon.com/gp/redirect.h...rrnet-20&linkCode=ur2&camp=1789&creative=9325
 
Back
Top