Sys is undefined

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yair m
    New Member
    • Sep 2011
    • 7

    Sys is undefined

    Hello,

    I recieved "Sys is undefined" error message when i try to open my website URL.
    The website was developed with ASP.NET 3.5. (I suppose that i have all the relevant entries in web.config)
    In some other computers it works without recieveing this message.

    any Idea ?

    Thanks,
    Yair
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    It's a JavaScript error that occurs when something on the page is attempting to access the "sys" JavaScript object when the object doesn't exist.

    This can happen if there is another JavaScript error on the page that prevents the loading of other JavaScript objects.

    Or if you try to use the object after the page is unloaded (the object is destroyed)

    There are many possible reasons for it.

    -Frinny

    Comment

    • Yair m
      New Member
      • Sep 2011
      • 7

      #3
      Hi,

      Thank you for your answer.
      I didn't mentiond that I used the ajaxcontroltool kit.
      The starnge thing is that the website works fine on few machines but on other machins i recieved this error. so maybe it is an enviroment problem.

      do you have any idea ?

      Thanks,
      Yair

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        I would doubt that it is the "machine" that is experiencing the problem.

        My bet would be that some browsers inform you of the JavaScript error while other's are not configured to show you JavaScript errors.

        You'll have to figure out which control is causing the problem.

        You can do that by removing the Ajax controls from the page and adding them in one of the time to narrow down the problem....

        You should also use a JavaScript debugger to help you find the problem. There is a built in JavaScript debugger in IE 8 and 9. If you're using FireFox, I like to use the FireBug plugin for debugging JavaScript and CSS issues.


        -Frinny

        Comment

        • Yair m
          New Member
          • Sep 2011
          • 7

          #5
          Thank you again,

          I think that I found a solution for it.
          in web.config:
          <scriptResource Handler enableCompressi on="false" enableCaching=" true"/>. I turned to false the parameter "enableCompress ion".
          What do you think ?

          Thank you,
          Yair

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            I've never used that parameter personally.

            If it fixes your problem than I'm happy for you and it may help others facing the same issue in the future.

            Comment

            Working...