Another sys undefined error

Last post 12-28-2006 11:50 AM by benglish1. 1 replies.

Sort Posts:

  • Another sys undefined error

    12-28-2006, 9:07 AM
    • Member
      1 point Member
    • benglish1
    • Member since 12-22-2006, 10:15 AM
    • Wilmington, NC
    • Posts 10

    Hello everyone.  Let me start out by just saying I am new to AJAX and my problem could very well be that I am not connecting the dots correctly.  That being said, here is the problem.  I have an AJAX enabled web site containing 1 page.  Upon clicking a button, I make several webservice calls, between each call I update the screen from the javascript to give the user an idea or the progress.  This works perfect when running in the IDE (Visual Studio 2005).  My headache started when I decided to test it out on my local IIS.  I can see the site, but an error "Error:  'Sys' is undefined".  this error occurs once on page load then I get an error telling me that my webservice is undefined when the button is clicked.

    This is where I think the offending code resides:

            <asp:ScriptManager ID="ScriptManager1" runat="server">
                <Scripts>
                    <asp:ScriptReference Path="~/Scripts/Build.js" />
                </Scripts>
                <Services>
                  <asp:ServiceReference Path="BuildService.asmx" />
                </Services>
            </asp:ScriptManager>
    

     

    Possibly I am missing an attribute or something.  Currently my javascript is in <root>/Scripts and my webservice resides in <root>.

     At first I thought it was working in Firefox, but since have determined that in Firefox the errors were not being thrown (probably an option that i have not set somewhere in Firefox).

     Again, it works when I run from Visual Studio 2005.  Any help would be appreciated.

    thanks,

    Brian

    Brian English
    Filed under:
  • Re: Another sys undefined error

    12-28-2006, 11:50 AM
    Answer
    • Member
      1 point Member
    • benglish1
    • Member since 12-22-2006, 10:15 AM
    • Wilmington, NC
    • Posts 10

    You can disreguard this post.  The problem was in my IIS configuration.  I had to add the .axd extention under extension mapping (executable set to aspnet_isapi.dll in the %.net framework 2.0% folder) and uncheck the Check that file exists check box, now I am past that particular hurdle.  Hope this saves someone else a little time..

     

     

    Brian English
Page 1 of 1 (2 items)