Sys is Undefined

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...
 
X

xeroxero

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.
 
S

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top