Invalid length for a Base-64 char array or string

6 posts, 0 answers
  1. RYNETECH
    RYNETECH avatar
    15 posts
    Member since:
    Feb 2007

    Posted 12 Dec 2013 Link to this post

    Greetings,

    I am receiving the error "Invalid length for a Base-64 char array or string" with an application I am trying to deploy to Windows Server 2012 running IIS 8.  All is well with the application in development and on servers running IIS 7.

    The IE debugger screen shot attached indicates that it is coming from a Telerik WebResource.  The page makes use of the following Rad markup and the button resides inside a standard UpdatePanel (nothing fancy).  We are not using RadCompression, and the error occurs regardless of the OutputCompression setting.

    I was hoping you might see something that could point me in the right direction?

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableCdn="false" CdnSettings-TelerikCdn="Disabled"

            OutputCompression="Disabled" EnablePartialRendering="true" EnableScriptCombine="true" EnableEmbeddedjQuery="false"

            ScriptMode="Release" AjaxFrameworkMode="Enabled">

            <CompositeScript ScriptMode="Release" />

        </telerik:RadScriptManager>

        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" EnableStyleSheetCombine="true" CdnSettings-TelerikCdn="Disabled" OutputCompression="Disabled"></telerik:RadStyleSheetManager>

                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

                        <ContentTemplate>

                            <asp:Panel ID="pnlCitySelection" runat="server" Visible="true">

                                <div id='city-selection' style="width: 300px; height: 280px; background-color: White;">

                                    <h3 style="font-size: 2em; padding: 20px 0px 0px 30px">

                                        Where can we serve you?</h3>

                                    <div id="padding-left" style="padding-left: 10px">

                                        <br />

                                        <asp:DropDownList ID="ddlState" runat="server" class="book-form-input" AutoPostBack="true">

                                        </asp:DropDownList>

                                        <br />

                                        <br />

                                        <asp:DropDownList ID="ddlCity" runat="server" class="book-form-input">

                                        </asp:DropDownList>

                                        <asp:Button Width="90" Font-Size="1.2em" Font-Bold="true" CssClass="small-form-table-button-index"

                                            BackColor="Black" ForeColor="White" ID="btnSelectCity" runat="server" Text="SELECT CITY"

                                            OnClick="btnSelectCity_Click" CausesValidation="false" AutoPostBack="true" /><br />

                                        <br />

                                        <table border="0" style="color: Black; font-size: 10px; font-weight: normal; font-family: arial,sans-serif;

                                            float: left;">

                                            <tr>

                                                <td align="center">

                                                    Need transportation outside the U.S.?&nbsp;&nbsp;&nbsp;

                                                </td>

                                                <td align="center">

                                                    <asp:LinkButton ID="btnOutsideUS" Font-Underline="true" runat="server">Click Here</asp:LinkButton>

                                                      <br />

                                                </td>

                                            </tr>

                                        </table>

                                    </div>

                                </div>

                            </asp:Panel>

                        </ContentTemplate>

                    </asp:UpdatePanel>

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 17 Dec 2013 Link to this post

    Hello,

    The error could be caused by disabling the embedded jQuery. When EnableEmbeddedjQuery property is set to false you need to manually add a jQuery version that is compatible with our controls. If no such library is used the page will throw JavaScript exceptions.

    If you need to have this property disabled would you ensure that compatible jQuery library is loaded manually. Otherwise try enabling the property and see if the error will persist.


    Regards,
    Viktor Tachev
    Telerik
    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 the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. RYNETECH
    RYNETECH avatar
    15 posts
    Member since:
    Feb 2007

    Posted 17 Dec 2013 Link to this post

    I wish it was that simple Viktor, but jQuery is not the problem.  This application is bringing in the jQuery library through a link in the master page, therefore the internal version to RadControls is disabled and all works fine.

    Keep in mind, this exact same source code is running perfectly fine on a server running IIS 7.  It's not until deployed to Windows 2012 running IIS 8 that this error appears.

    Further, the error is clearly coming from the client-side resource, because a post-back to the server never occurs.

  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 20 Dec 2013 Link to this post

    Hello,

    I tried replicating the issue, however I was unable to.

    I am attaching a sample project I used for testing, I tested the project with IIS 8 and no errors were shown. Take a look at this video I made as reference.

    For your convenience I am also attaching the sample project I created based on the code provided in your first post. Would you let me know what needs to be modified in order for the problem to be replicated?

    I am looking forward to your reply.


    Regards,
    Viktor Tachev
    Telerik
    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 the blog feed now.
  6. RYNETECH
    RYNETECH avatar
    15 posts
    Member since:
    Feb 2007

    Posted 30 Dec 2013 Link to this post

    Hey Viktor,

    Your example appears to be incomplete.  There is no code behind file for default.aspx that handles the events that are defined.

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.



    Compiler Error Message: CS1061: 'ASP.default_aspx' does not contain a definition for 'btnSelectCity_Click' and no extension method 'btnSelectCity_Click' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?)

  7. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 02 Jan 2014 Link to this post

    Hello,

    I apologize for the mistake. I am attaching the project again with the code behind. I used the code provided in your first post for testing. The handlers do not execute any logic.

    Would you let me know what needs to be changed in order for the issue to be observed? This would enable us to investigate the problem locally and provide an appropriate solution.

    Regards,
    Viktor Tachev
    Telerik
    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 the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017