Auto Ad Code

Monday, July 12, 2010

Sys is undefined

ahhh such an annoying error is this. Anyways coming to the solution.

1. Check the date and time of Server machiene.
2. Write your <script> block at the end of your page instead of being in <head> section. More properly your <script> block should be after the <asp:ScriptManager
3. Add following code block in your <system.web> section of web.config file
<httpHandlers>
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>


Hope above three points will solve your problem ..

1 comment:

  1. This is awesome. I was banging my head on this from 2 days. Thanks lot yar

    ReplyDelete