Problem with ServerSide Click Event in Azure

2 posts, 0 answers
  1. Michael
    Michael avatar
    43 posts
    Member since:
    Mar 2013

    Posted 16 Apr 2013 Link to this post

    I am getting this error is Azure only. When running locally the program executes as expected. Any thoughts?
    SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
    Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3abcbc5876-5d5e-4774-955e-2ecda3d55cd3%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc, line 15 character 16485

    Here is the ASPX

    <form id="dsxWeb_Login" runat="server">
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="loginClicked">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="loginMessage"/>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
                <telerik:RadCodeBlock ID="cb1" runat="server">
                    <script type="text/javascript">
                        function invokeAjax()
                        {
                            try
                            {
                                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                                ajaxManager.ajaxRequest();
                            }
                            catch (err)
                            {
                                alert(err);
                            }
                        }
                    </script>
                </telerik:RadCodeBlock>
                <div id="login">
                    <div id="loginLogo"></div>
                    <div id="loginProducts">
                        <ul>
                            <li><input type="checkbox" id="chkLoginFM" runat="server"/>Forecast Management</li>
                            <li><input type="checkbox" id="chkLoginRP" disabled="disabled" runat="server" />Requirements Planning (Coming Soon...)</li>
                        </ul>
                    </div>
                    <div id="loginForm">
                        Username:<br />
                        <input id="txtUsername" class="loginInput" runat="server"/><br /><br />
                        Password: <br />
                        <input id="txtPassword" class="loginInput" type="password" runat="server"/><br />
                        <input type="button" ID="btnLogin" onClick="invokeAjax(); return false;" Value="Login" />
                        <br />
                         
                    </div>
                   <div id="loginMessage" runat="server"><strong>Please enter login credentials.</strong></div>
                </div>
                 
                 
     
            </form>



  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 19 Apr 2013 Link to this post

    Hi Michael,

    Is the problem intermittent or is reproduced regularly? If you disable the script combining on the RadScriptManager does this stops the problem for reproducing?

    You can stop the script combining using the EnableScriptCombine property.

    Regards,
    Genady Sergeev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top