+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Search Index Error

Search Index Error

11 posts, 0 answered
  1. mcpdinkansas
    mcpdinkansas avatar
    102 posts
    Registered:
    22 Mar 2007
    06 Dec 2010
    Link to this post
    I can't find the content the site index is getting an error on. Could you please point me to where the issue might be occurring? I get this error when manually running a Site Search Index - "Start indexing".

    Thanks

    'UTF-8' http-equiv='Content-Type'/>
    <script type=' is not a supported encoding name.
    Parameter name: name
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
     
    Exception Details: System.ArgumentException: 'UTF-8' http-equiv='Content-Type'/>
    <script type=' is not a supported encoding name.
    Parameter name: name
     
    Source Error:
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
     
    Stack Trace:
     
    [ArgumentException: 'UTF-8' http-equiv='Content-Type'/>
    <script type=' is not a supported encoding name.
    Parameter name: name]
       System.Globalization.EncodingTable.internalGetCodePageFromName(String name) +7750081
       System.Globalization.EncodingTable.GetCodePageFromName(String name) +56
       Telerik.Framework.Utilities.HtmlPageEncodingHelper.GetEncodedDataForHtmlPage(WebClient client, Byte[] buffer, Encoding encoding, String resolvedUrl) +365
       Telerik.Cms.Search.PageIndexerInfo.GetExternalPageData(String resolvedUrl) +96
       Telerik.Cms.Search.PageIndexerInfo.GetExternalPageData() +22
       Telerik.Cms.Search.PageIndexerInfo.GetData() +27
       Telerik.Search.Engine.Crawler.IndexContent(String provider, LinkedList`1 data, Boolean appendToIndex, Dictionary`2 indexers) +180
       Telerik.Search.Engine.Crawler.Index(String provider, String[] urls, LinkedList`1 data, Boolean appendToIndex) +150
       Telerik.Search.Engine.IndexingManager.StartIndexing(IIndexingService service, Boolean appendToIndex) +86
       Telerik.Search.Engine.IndexingService.Index(Boolean appendToIndex) +11
       Telerik.Search.WebControls.Admin.ControlPanel.Service_Command(Object sender, CommandEventArgs e) +334
       System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +108
       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
     
     
    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3614
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Dec 2010
    Link to this post
    Hello mcpdinkansas,

    There is something wrong with your master page ( template). Could you verify that the head tag looks as shown below

    <head runat="server">
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />    
    </head>
     
    if not modify it and run the index to see whether the error will appear again.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. mcpdinkansas
    mcpdinkansas avatar
    102 posts
    Registered:
    22 Mar 2007
    06 Dec 2010
    Link to this post
    Hey Ivan,

    We actually have a lot of javascript and additional conditional css added to the head of the masterpages. This works fine for the other sub-site.

    Is the meta tag needed/preferred when creating Sitefinity Masterpages? Also, would there be any way to tell exactly which Masterpage this would be failing on?

    Thanks
  4. mcpdinkansas
    mcpdinkansas avatar
    102 posts
    Registered:
    22 Mar 2007
    07 Dec 2010
    Link to this post
    After removing all javascript and additional css from the head so that I only had

    <head runat="server">
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    </head>

    I am still getting a search index error. Any thoughts?
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Dec 2010
    Link to this post
    Hello mcpdinkansas,

    Can you send one of the master pages you use ( paste its content here by using FormatCodeBlock or attach it to the request) and I will try to replicate the issue on a local project.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. mcpdinkansas
    mcpdinkansas avatar
    102 posts
    Registered:
    22 Mar 2007
    07 Dec 2010
    Link to this post
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="Homepage.master.cs" Inherits="Templates_Homepage" %>
    <%@ Register Src="../Sitefinity/UserControls/CustomNavigation/TopNavigation.ascx" TagName="TopNavigation" TagPrefix="usercontrol" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <head runat="server">
        <title></title>
        <link rel="shortcut icon" href="/content/images/favicon.ico" type="image/vnd.microsoft.icon" />
        <link rel="icon" href="/content/images/favicon.ico" type="image/vnd.microsoft.icon" />
        <!--UNCOMMENT WHEN PAGE GOES LIVE-->  
        <%--<script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-146970-1']);
            _gaq.push(['_trackPageview']);
            (function () {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();
        </script>    
        <script language="JavaScript" type="text/javascript">
            // smart401kadvice.com search retargeting code
            rsi_account = '9412FA08FF9C6620748260605B439272';
            rsi_site = '492DB0F7A66BC529EDC046B32D559BB0';
            rsi_event = '85A828DD76C593FEB0D97D506134EB33';
        </script>   
        <script language="JavaScript" src="https://ads.revsci.net/adserver/rsi_event.js" type="text/javascript"></script>--%>
        <script src="/content/Javascript/proxyBuster.js" type="text/javascript" language="Javascript"></script>
        <script src="/content/Javascript/jquery-1.4.1.min.js" type="text/javascript"></script>    
        <script type="text/javascript" src="/content/Javascript/functions.js"></script>
        <script type="text/javascript" language="javascript">
            $(function () {
                if ($(".employerId").val() == "")
                    $(".employerId").val("Employer ID");
     
                $(".employerId").focus(function () {
                    $(this).addClass("focus");
                    if ($(this).val() == "Employer ID") {
                        $(this).val("");
                    }
                });
     
                $(".employerId").blur(function () {
                    if ($(this).val() == "Employer ID" || $.trim($(this).val()) == "") {
                        $(this).removeClass("focus");
                        $(this).val("Employer ID");
                    }
                });
     
                if ($(".username").val() == "")
                    $(".username").val("Username");
     
                $(".username").focus(function () {
                    $(this).addClass("focus");
                    if ($(this).val() == "Username") {
                        $(this).val("");
                    }
                });
     
                $(".username").blur(function () {
                    if ($(this).val() == "Username" || $.trim($(this).val()) == "") {
                        $(this).removeClass("focus");
                        $(this).val("Username");
                    }
                });
            });
            function removeText(id) {
                if (id == 3) {
                    var txtBox3 = document.getElementById("ctl00_txtPassword");
                    if (txtBox3.value == "Password") {
                        txtBox3.value = "";
                        switchPasswordType();
                        txtBox3.focus();
     
                    }
                }
            }
            function setFocus() {
                document.forms[0].ct100_txtPassword.focus();
            }
            function switchPasswordType() {
                document.getElementById("swapper").innerHTML = "<input name=\"txtPassword\" type=\"password\" value=\"\" id=\"txtPassword\" onFocus=\"removeText(3);\" onBlur=\"removeText(3);\" style=\"width:100px;\" />";
                setFocus();
            }
            function checkLength() {
                var txtBox3 = document.getElementById("ctl00_txtPassword");
                if (txtBox3.value.length == 0) {
                    document.getElementById("ctl00_txtPassword").style.display = "none";
                    document.getElementById("mockpass").style.display = "block";           
                }
            }
        </script>
        <!--[if IE 6]>
        <script src="/Content/Javascript/DD_belatedPNG_0.0.8a-min.js"></script>
        <script>DD_belatedPNG.fix('h1.logo,button,.button,#topNav,#subNav,.leftShadow,#shadow,img,#footer');</script>
        <link href="/Content/css/ie6.css" rel="stylesheet" media="screen" type="text/css" />
        <![endif]-->
        <!--[if IE 7]>
        <link href="/Content/css/ie7.css" rel="stylesheet" media="screen" type="text/css" />
        <![endif]-->
    </head>
    <body class="es-home">
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
     
     
        <div id="shadow">
      
            <div id="header">
                <asp:contentplaceholder ID="Logo" runat="server"></asp:contentplaceholder>       
                <div id="tools">
                    <asp:contentplaceholder ID="Tools" runat="server"></asp:contentplaceholder>
                </div>           
                <!-- TopNav -->           
                 <usercontrol:TopNavigation ID="TopNavigation1" runat="server" />
                <!-- TopNav End -->
            </div>
            <!-- /#header -->
            <div id="container">
            <!-- InstanceBeginEditable name="container" -->
            <div id="hero" style="height:400px;">
                <div class="grid_5">
                    <div class="bigButton individual">
                        <asp:contentplaceholder ID="HeroSignup" runat="server"></asp:contentplaceholder>    
                        <asp:Panel ID="PanelSignup" runat="server" DefaultButton="ButtonSignup">              
                            <fieldset>                       
                                <label for="txtID">Employer ID:</label>
                                <asp:TextBox ID="txtID" runat="server" Text="Employer ID" CssClass="text employerId"></asp:TextBox>
                                <asp:CustomValidator ID="cvValidEmployerID" runat="server" ErrorMessage=""
                                    OnServerValidate="cvValidEmployerID_ServerValidate" Display="None" EnableClientScript="False">
                                </asp:CustomValidator>       
                                <asp:Label ID="LabelEmployerIdError" runat="server" CssClass="error"></asp:Label>               
                            </fieldset>
                            <h4><a href="ForgotEmployer.aspx">Forgot your Employer ID?</a></h4>
                            <asp:Button ID="ButtonSignup" runat="server" CssClass="bigArrow" OnClick="ButtonSignup_Click" />
                        </asp:Panel>
                    </div>
             
                    <div class="bigButton employer">
                        <asp:contentplaceholder ID="HeroLogin" runat="server"></asp:contentplaceholder>
                        <asp:Panel ID="PanelLogin" runat="server" DefaultButton="ButtonLogin">                       
                            <fieldset>                       
                                <label for="txtUsername">Username:</label>
                                <asp:TextBox ID="txtUsername" runat="server" Text="Username" CssClass="text username"></asp:TextBox>
                                <asp:Label ID="LabelLoginError" runat="server" CssClass="error"></asp:Label>
                                <label for="txtPassword">Password:</label>
                                <input type="text" id="mockpass" value="Password" class="text" onfocus="document.getElementById('mockpass').style.display='none'; document.getElementById('ctl00_txtPassword').style.display=''; document.getElementById('ctl00_txtPassword').focus();">
                                <asp:TextBox ID="txtPassword" runat="server" style="display:none;" TextMode="Password" CssClass="text" onblur="checkLength()"></asp:TextBox>
                                <asp:Label ID="LabelLoginError2" runat="server" CssClass="error"></asp:Label>
                            </fieldset>
                            <h4><a href="ForgotPassword.aspx">Forgot your Username or Password?</a></h4>
                            <asp:Button ID="ButtonLogin" runat="server" CssClass="bigArrow" OnClick="ButtonLogin_Click" />
                        </asp:Panel>
                    </div>
                </div>
         
                <div class="grid_7">
                    <div class="leftShadow"></div>
                    <asp:contentplaceholder ID="HeroImage" runat="server"></asp:contentplaceholder>
                </div>
         
       
              </div><!-- /#hero -->
       
       
                    <asp:Label ID="LabelLoginErrorExpired" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
               <div id="content">
        
             
                <div class="prefix_2 grid_8 suffix_1">    
                    <asp:contentplaceholder ID="ContentMain" runat="server"></asp:contentplaceholder>
     
                </div>
         
         
         
                </div><!-- /#content -->
     
            <!-- InstanceEndEditable -->
            <div class="clear"></div>
            </div><!-- / #container -->
            </div><!-- /#shadow -->
            <div id="footer">
                <div class="socialLinks">
                    <asp:contentplaceholder ID="SocialLinks" runat="server"></asp:contentplaceholder>
                </div><!-- /.socialLinks -->
                <div class="securityLinks">
                    <asp:contentplaceholder ID="SecurityLinks" runat="server"></asp:contentplaceholder>
                </div><!-- /.securityLinks -->
                <div class="footerLinks">
                    <asp:contentplaceholder ID="Footer" runat="server"></asp:contentplaceholder>
                </div><!-- /.footerLinks -->
            </div><!-- /#footer -->
     
        </form>
        <script type="text/javascript">
            $(function () {
                heightMatch("div.match");
            })
        </script>
    </body>
    </html>

    .master

    You can create empty methods for the button clicks. This would be the homepage master which contains the most javascript in the head tag and has additional asp.net logic directly in the masterpage itself.

    Thanks
  7. Chris Aybar
    Chris Aybar avatar
    25 posts
    Registered:
    20 Oct 2008
    07 Dec 2010
    Link to this post
    I'm having the same issue...

    12/7/2010 4:27:01 PM [UNKNOWN]
    ************************************************************************************
    ID: 62013d79-85eb-4879-9201-499dd6f286d7; Code: 3005; Occurrence: 14; Sequence: 9770
    ------------------------------------------------------------------------------------

    Application information:
        Machine name: DOMAIN-DD9C9F
        OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2
        Product Version: 3.7.2096.2
        Application Path: C:\webroot\sitefinity\
        Debug: False

    Process information:
        Process ID: 6616
        Process Name: w3wp

    Request information:
        Request URL: /Sitefinity/Admin/CmsAdmin/Services.aspx
        Rewrite URL: http://www.domain.com/Sitefinity/Admin/CmsAdmin/Services.aspx
        Url Referrer: http://www.domain.com/Sitefinity/Admin/CmsAdmin/Services.aspx
        Is Authenticated: False
        Authentication Type: Forms
        User: info@domain.com
        User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
        User Address: 72.77.204.55

    Variables:
        SF_Crawler: False
        AspSessionIDManagerInitializeRequestCalled: True
        Telerik.Web.UI.RadScriptManager: System.Collections.Generic.List`1[Telerik.Web.UI.ScriptEntry]
        CmsHttpRequest: /Sitefinity/Admin/CmsAdmin/Services.aspx
        RadControlRandomNumber: 0
        _!TelerikVersionStampRendered: True

    - L0 -------------------------------------------------------------------------------

    Exception Type: System.ArgumentException

    Message: 'UTF-8' http-equiv='Content-Type'/>
    <script type=' is not a supported encoding name.
    Parameter name: name

    Source: mscorlib

    Stack Trace:
       at System.Globalization.EncodingTable.internalGetCodePageFromName(String name)
       at System.Globalization.EncodingTable.GetCodePageFromName(String name)
       at Telerik.Framework.Utilities.HtmlPageEncodingHelper.GetEncodedDataForHtmlPage(WebClient client, Byte[] buffer, Encoding encoding, String resolvedUrl)
       at Telerik.Cms.Search.PageIndexerInfo.GetExternalPageData(String resolvedUrl)
       at Telerik.Cms.Search.PageIndexerInfo.GetExternalPageData()
       at Telerik.Cms.Search.PageIndexerInfo.GetData()
       at Telerik.Search.Engine.Crawler.IndexContent(String provider, LinkedList`1 data, Boolean appendToIndex, Dictionary`2 indexers)
       at Telerik.Search.Engine.Crawler.Index(String provider, String[] urls, LinkedList`1 data, Boolean appendToIndex)
       at Telerik.Search.Engine.IndexingManager.StartIndexing(IIndexingService service, Boolean appendToIndex)
       at Telerik.Search.Engine.IndexingService.Index(Boolean appendToIndex)
       at Telerik.Search.WebControls.Admin.ControlPanel.Service_Command(Object sender, CommandEventArgs e)
       at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
       at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ------------------------------------------------------------------------------------



  8. mcpdinkansas
    mcpdinkansas avatar
    102 posts
    Registered:
    22 Mar 2007
    08 Dec 2010
    Link to this post
    Have you had a chance to test this?
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Dec 2010
    Link to this post
    Hi mcpdinkansas,

    Both the issues are caused by some external page added to the index. As you can see in the stack - GetExternalPageData. Both of you have an external page that causes the issue. This  page should be excluded from the index.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Chris Aybar
    Chris Aybar avatar
    25 posts
    Registered:
    20 Oct 2008
    09 Dec 2010
    Link to this post
    Your recommendation to remove the external pages from the index was correct. It solved the indexing problem for me.
  11. mcpdinkansas
    mcpdinkansas avatar
    102 posts
    Registered:
    22 Mar 2007
    09 Dec 2010
    Link to this post
    Worked for me as well. As always, thanks Ivan!
Register for webinar
11 posts, 0 answered