'Sys' is undefined.

Rate It (6)

Last post 07-24-2009 11:40 AM by Thomas Thayil. 201 replies.

Sort Posts:

  • 'Sys' is undefined.

    10-30-2006, 11:12 AM
    Locked
    • Member
      10 point Member
    • mbettesworth
    • Member since 10-19-2006, 11:46 PM
    • England, UK
    • Posts 6

    Hi there,

    Can anyone tell me why I get the 'Sys' is undefined Javascript error whenever I place a ScriptManager object o to my page please?

    I know I've seen posts similar to this before and have tried a few things to no avail. Is it a configuration / compatibility issue? Is is simply a bug that needs ironing out before release? 

    I'm using Windows 2000 / IIS5 / IE 6.0.2800. Getting on a bit I know but we have no choice. I realise this is unsupported, does this also mean incompatible in this case?

    I have tried navigating to the AXD files referenced by the source - and this works fine.

    Also, if I clear the temporary internet files and refresh, I don't get it on the next round trip. Any future page refreshes bring up the error again.

    CTRL-F5 also stops the error.

    Any help would be hugely appreciated.

    Many thanks,
    Matt

  • Re: 'Sys' is undefined.

    10-30-2006, 4:20 PM
    Locked

    in internet explorer, go to tools, internet options. clcik the settings button. check "every visit to the page and then drag the slider all the way to 1. Then click OK. Click delete files, then OK. Go to the advanced tab, and uncheck "Show friendly http error messages" and "show friendly urls". then click ok.

    try again, and see if you get the same error.

    Specializing in ASP.NET 2.0
  • Re: 'Sys' is undefined.

    10-30-2006, 6:07 PM
    Locked
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    hello.

    Sys undefined  means that you're not getting the client side files loaded on your browser.

    btw, windows 200 server is supported. if you searh this forum, you'll find a post by a team member where he says that the docs are wrong about that. 

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: 'Sys' is undefined.

    10-30-2006, 10:46 PM
    Locked
    • Member
      10 point Member
    • MURARAMAPS
    • Member since 10-31-2006, 3:33 AM
    • Posts 2
    mbettesworth:

    Hi there,

    Can anyone tell me why I get the 'Sys' is undefined Javascript error whenever I place a ScriptManager object o to my page please?

    I know I've seen posts similar to this before and have tried a few things to no avail. Is it a configuration / compatibility issue? Is is simply a bug that needs ironing out before release? 

    I'm using Windows 2000 / IIS5 / IE 6.0.2800. Getting on a bit I know but we have no choice. I realise this is unsupported, does this also mean incompatible in this case?

    I have tried navigating to the AXD files referenced by the source - and this works fine.

    Also, if I clear the temporary internet files and refresh, I don't get it on the next round trip. Any future page refreshes bring up the error again.

    CTRL-F5 also stops the error.

    Any help would be hugely appreciated.

    Many thanks,
    Matt

     

    HI Matt

    if you are using Beta1 release of Atlas Framework Sys is now moved to the Preview name space. Ensure your script manager tag has a scripts section as follows:

     

     <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Scripts>
              <asp:ScriptReference Assembly="Microsoft.Web.Preview" Name="Microsoft.Web.Resources.ScriptLibrary.PreviewScript.js" />
              <asp:ScriptReference Assembly="Microsoft.Web.Preview" Name="Microsoft.Web.Resources.ScriptLibrary.PreviewGlitz.js" />
              <asp:ScriptReference Assembly="Microsoft.Web.Preview" Name="Microsoft.Web.Resources.ScriptLibrary.PreviewDragDrop.js" />
            </Scripts>
       </asp:ScriptManager>

     Hope if helps

     

    Murali
     

     

  • Re: 'Sys' is undefined.

    11-07-2006, 6:48 AM
    Locked
    • Member
      54 point Member
    • jumpingmattflash
    • Member since 08-22-2006, 9:56 AM
    • Middlesbrough, GB
    • Posts 41

    I've had the same problem yet neither of the steps seem to have resolved my problems.

     It's mainly for client testing purposes, as in my development machine is XP but certain of my clients are running I.E 5.5 and Win 2000 etc. As a side note are there any resources as to what the requirements are client side for browser version and OS?

     Thanks,

    -----------
    Matt Brooke
    Software & System Developer
    http://www.rocketscience.uk.com
    http://www.i-snapshot.com
  • Re: 'Sys' is undefined.

    11-07-2006, 9:56 AM
    Locked
    • Member
      10 point Member
    • andro007
    • Member since 11-07-2006, 2:51 PM
    • Posts 2

    I had the same error. Turns out I had created a normal "ASP.NET Web Site" and not an "ASP.NET Ajax Enabled Web Site". Not sure what the difference is, but the 'sys is undefined' went away with the Ajax Enabled site.

    Hope it helps,

    Andreas
     

  • Re: 'Sys' is undefined.

    11-07-2006, 10:17 AM
    Locked
    • Member
      356 point Member
    • ncipollina
    • Member since 10-20-2006, 11:36 AM
    • Richmond, VA USA
    • Posts 79

    Try this from the migration guide:

     

     

    In the Web.config file, add the following entry in the <httpHandlers> element for the new ScriptResourceHandler object in Beta 2:

    <add verb="GET"

      path="ScriptResource.axd"

      type="Microsoft.Web.Handlers.ScriptResourceHandler"

      validate="false"/>

     

     

    The release notes state the following:

     

    This handler requires an entry in the web.config file.  If the entry is missing, you might see the following error:

     

        'Sys' is undefine.

     

    I hope this helps! 

     

  • Re: 'Sys' is undefined.

    11-07-2006, 10:45 AM
    Locked
    • Member
      10 point Member
    • andro007
    • Member since 11-07-2006, 2:51 PM
    • Posts 2

    Good one, ncipollina - this "ajax-enabled" my existing projects. Thanks! 

    /Andreas
     

  • Re: 'Sys' is undefined.

    11-08-2006, 1:25 AM
    Locked
    • Member
      41 point Member
    • eibrahim
    • Member since 10-09-2006, 2:30 PM
    • Washington DC, USA
    • Posts 17
  • Re: 'Sys' is undefined.

    11-08-2006, 8:15 AM
    Locked
    • Member
      15 point Member
    • LSerge
    • Member since 11-08-2006, 12:58 PM
    • Posts 3

    When I create a standard Asp.Net Web Site and then try to use ajax controls I get the same problem.

    However, when I create a project from Ajax Control Toolkit Web Site the problem dissapears.

    I compared 2 newly created sites and found that they have totally different  web.config . In addition, Bin folder also differs. I will expand the issueSmile Does anybody know how to convert standard web site to an Ajax Web Site where I can use ajax controls and don't get "Sys undefined" javascript error?

     

  • Re: 'Sys' is undefined.

    11-08-2006, 8:17 AM
    Locked
    • Member
      15 point Member
    • LSerge
    • Member since 11-08-2006, 12:58 PM
    • Posts 3

    When I create a standard Asp.Net Web Site and then try to use ajax controls I get the same "Sys undefined" problem.

    However, when I create a project from Ajax Control Toolkit Web Site the problem dissapears.

    I compared 2 newly created sites and found that they have totally different  web.config . In addition, Bin folder also differs. I will expand the issueSmile Does anybody know how to convert standard web site to an Ajax Web Site where I can use ajax controls and don't get "Sys undefined" javascript error?

     

  • Re: 'Sys' is undefined.

    11-08-2006, 8:58 AM
    Locked
    • Member
      15 point Member
    • LSerge
    • Member since 11-08-2006, 12:58 PM
    • Posts 3

    I solved the problem!

    Simply create temporary web site from Ajax Control Toolkit Web Site template and copy some sections from web.config to web.config of your web site (<configSections>, so on).

    Copy bin dll file also.

  • Re: 'Sys' is undefined.

    11-08-2006, 12:35 PM
    Locked
    • Member
      5 point Member
    • aemj
    • Member since 11-08-2006, 5:30 PM
    • Costa Rica
    • Posts 1

    There are two key tags, that must exist on web.config:

     under <assemblies> (possibly you already have this one)
    <add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    under <httpHandlers> (this is the new one)
    <add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>

    And that's it.

    ---------------
    Enhance the trance
  • Re: 'Sys' is undefined.

    11-08-2006, 1:26 PM
    Locked
    • Member
      226 point Member
    • JasonMDLi
    • Member since 10-24-2006, 6:16 PM
    • Waterloo, ON
    • Posts 47

    I'm definitely sure the web.config is correct. But when I debug the website, I got three error popups:

    1. Syntax Error: Line 3

    2. Syntax Error: Line 3

    3. Stopped on {Sys.WebForms.PageRequestManager._initialize('ctl00$scriptManager1', document.getElementById('aspnetForm'));} and reported 'Sys' is undefined.

    I have scriptManager control in Master page. If there is no javascript code in content page, everything is fine.

    I'll see if it could be figured out. If no, I have to go back ASP.NET AJAX Beta 1.

    The real difficulty is that you don't know how difficult it is.
  • KB912812 may fix it.

    11-08-2006, 1:59 PM
    Locked
    • Member
      20 point Member
    • daniel.melo
    • Member since 11-08-2006, 6:37 PM
    • Posts 4

    This is problem seems to be a bug in IE 6 SP1. This bug prevents loading compressed HTML content correctly (in fact, ASP.NET AJAX does compress content) and this causes the JavaScript errors.

    If got rid of this error installing the patch KB912812 on client computers. It updates the affected urlmon.dll and the error will be gone.

    Thanks to ASP.NET team for helping me fixing it.

Page 1 of 14 (202 items) 1 2 3 4 5 Next > ... Last »