Sys.WebForms is undefined

8 posts, 0 answers
  1. Alexey
    Alexey avatar
    1 posts
    Member since:
    Feb 2009

    Posted 12 Feb 2009 Link to this post

    Hi, i'm getting this error on this line (window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this;)
    when use IIS for debugging
    and at the same time  sys is not null, but WebForms is null

    Moreover RadAjax.Net2 controls work fine, but Telerik.Web.UI don't. 

    here is my sample
     
    <asp:ScriptManager ID="ScriptManager" runat="server" /> 
     <telerik:RadAjaxManager EnableAJAX=true ID="RadAjaxManager1" runat="server"
    </telerik:RadAjaxManager>  

    my web config
    <httpHandlers> 
                <remove path="*.asmx" verb="*"/> 
                <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> 
                <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> 
                <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> 
                <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/> 
            </httpHandlers> 
            <httpModules> 
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            </httpModules> 
     
     
    <system.webServer> 
            <validation validateIntegratedModeConfiguration="false"/> 
            <modules> 
                <remove name="ScriptModule"/> 
                <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            </modules> 
            <handlers> 
                <remove name="WebServiceHandlerFactory-Integrated"/> 
                <remove name="ScriptHandlerFactory"/> 
                <remove name="ScriptHandlerFactoryAppServices"/> 
                <remove name="ScriptResource"/> 
                <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <remove name="Telerik.Web.UI.WebResource"/> 
                <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/> 
     
            </handlers> 
        </system.webServer> 
    environment

    Visual Studio 2008
    Microsoft.Net 3.5 sp1
    Vista business sp1 IIS7
    Telerik.Web.UI, Version=2008.2.826.35

    Any ideas?



  2. SamJ
    SamJ avatar
    101 posts
    Member since:
    Jul 2008

    Posted 13 Feb 2009 Link to this post

    Hi Alexey,

    Try changing the ScriptManager ID to ScriptManeger1 instead of ScriptManager. Does it make any difference.
    Additionally, do you have any client code on the problematic page? Can you paste it here?

    Thanks,
    SamJ
  3. Michael Brading
    Michael Brading avatar
    1 posts
    Member since:
    Sep 2006

    Posted 13 Feb 2009 Link to this post

    Thanks for your reply, but it didn't help. I think this problem mainly related to  IIS7 settings and .NET 3.5 SP1.
  4. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 16 Feb 2009 Link to this post

    Hi Michael,

    I suggest that you open a formal support ticket and send us a runnable sample illustrating the issue you are facing. Thus we could investigate it in depth locally and provide a proper solution to you.

    Kind regards,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. r00tsecurity
    r00tsecurity avatar
    14 posts
    Member since:
    Apr 2007

    Posted 21 Apr 2009 Link to this post

    Hi Alexey I have the same problem. How did you solve it?
  6. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 23 Apr 2009 Link to this post

    Hi r00tsecurity,

    Please try troubleshooting the mentioned error as suggested in the below online resources and see if it helps:

    http://www.telerik.com/help/aspnet-ajax/troubleshooting.html
    http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html
    http://www.telerik.com/help/aspnet-ajax/adding%20radcontrols%20prometheus%20to%20an%20existing%20application.html

    Best wishes,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Matt
    Matt avatar
    33 posts
    Member since:
    Nov 2010

    Posted 01 Feb 2011 Link to this post

    Hello,

    I experienced this problem after upgrading from Q1 2007 to Q3 2010. I fixed it by removing the following line from my web.config file;

    <xhtmlConformance mode="Legacy" />

    I hope this infomation helps someone else in the future.

    Matt.
  8. Joshua
    Joshua avatar
    3 posts
    Member since:
    Jun 2011

    Posted 02 Jul 2012 Link to this post

    Here's a solution to this error if you're receiving it only on the iPad in full-screen mode.

    The problem turned out to be related to a header the iPad was sending to ASP.Net.  I've outlined the solution here: http://joshmouch.wordpress.com/2012/07/02/sys-webforms-is-undefined-on-ipad/ 

    Basically, you just have to tell ASP.Net that the iPad in full screen mode supports ajax.
    protected override void OnPreInit(EventArgs e)
    {
        if (Request.UserAgent != null && Request.UserAgent.IndexOf("AppleWebKit", StringComparison.CurrentCultureIgnoreCase) > -1)
        {
            this.ClientTarget = "uplevel";
        }
     
        base.OnPreInit(e);
    }
Back to Top