Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Spell > Rad Spell Fails in IE7, Works in FF 2.0
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Rad Spell Fails in IE7, Works in FF 2.0

Feed from this thread
  • Jared avatar

    Posted on Jan 16, 2008 (permalink)

    I am having a tough time getting RadSpell 3.2.0 to work in internet explorer 7.

    Symptoms:
     * In internet explorer the spellcheck dialog displays but does not perform any work afterwards.
    * Upon clicking "close" a javascript exception is displayed stating that at line: 89 in SpellDialogControl.js that "this.SpellProcessor is null or not an object". After debugging this (via visual studio 2005) I can tell that, yes, this.SpellProcessor is in fact null but the problem appears to be occuring earlier.
    * Firefox runs the spell check without error.

    below is my test ASPX page. upon clicking the "Spell Check Field" button you should see the following alerts: "[1]...", "[2]...", "[5]..." and "[7]..." .In firefox you will see (after the spell check dialog displays) "[3]..." and "[4]..." these alerts do not display in Internet Explorer 7 and I am not presented with a script error of any kind.

    There is no codebehind for this page.

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadSpellTest.aspx.cs" Inherits="RadSpellTest" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" />
            <asp:TextBox ID="txtTextBox1" runat='server' TextMode="multiLine" Columns="20" Rows="20" /><br />
            <radS:RadSpell ID="radSpellChecker"
                    runat="server"
                    WordIgnoreOptions="RepeatedWords"
                    Skin="Default"
                    SkinID="Default"
                    OnClientDialogClosing="OnClientDialogClosing"
                    OnClientCheckFinished="OnClientCheckFinished" UseEmbeddedScripts="true" UseClassicDialogs='true'
                    ButtonType="none" />
           
            <button onclick="startSpell(); return false;">Spell Check Field</button><br />
            <script type="text/javascript">
                function eo( obj )
                {
                    var objAsString = "";
                    for (var key in obj)
                    {
                        var val = obj[key];
                        objAsString+= key +": " + val + "\r\n";
                    }
                   
                    return objAsString;
                }
           
                function OnClientDialogClosing(){
                    alert('OnClientDialogClosing');
                }
               
                function OnClientCheckFinished(){
                    alert('OnClientCheckFinished');
                }
           
                function startSpell(){
                    var sources = new Array(); 
                   
                    sources.push(new HtmlElementTextSource(document.getElementById("txtTextBox1")));
                    
                    var spell   = GetRadSpell("radSpellChecker"); 
                    var x       = new MultipleTextSource(sources);
                    spell.SetTextSource(x); 
                    spell.StartSpellCheck();
                }
               
                function MultipleTextSource(sources)
                {
                    alert("[1]\r\n" + 'within MultipleTextSource');
       
                    this.sources = sources;
                   
                    alert("[2]\r\n" +this.sources);
                   
                    this.GetText = function()
                    {
                        var texts = [];
                        for (var i = 0; i < this.sources.length; i++)
                        {
                            alert("[3]\r\n" + eo(this.sources[i]));
                            alert("[4]\r\n" + eo(this.sources[i].element));
                            texts[texts.length] = this.sources[i].getText();
                        }
                        return texts.join("<controlSeparator><br/></controlSeparator>");
                    }
                   
                    alert("[5]\r\n" +'this.GetText() = ' + this.GetText);
                   
                    this.SetText = function(text)
                    {
                        alert("[6]\r\n");
                        var texts = text.split("<controlSeparator><br/></controlSeparator>");
                        for (var i = 0; i < this.sources.length; i++)
                        {
                            this.sources[i].setText(texts[i]);
                        }
                    }
                    alert("[7]\r\n" +'this.SetText() = ' + this.SetText);
                }
            </script>
        </form>
    </body>
    </html>

    any ideas?

  • Jared avatar

    Posted on Jan 16, 2008 (permalink)

    Problem solved. Smart Navigation was enabled which was fouling up the dialog page.

  • Posted on Dec 16, 2009 (permalink)

    Hello:

    I am using RadSpell.Net2, Version=3.2.1.0.
    The spell dialogue opens up but through s following error.

    =====================================================
    RadSpell error. Server returned error: 500



    Please, see the help for more details: RadSpell 3.x - Configuration - SpellCheckHandler.



    /RadiologyInformationSystem/RadControls/Spell/Telerik.RadSpellCheckHandler.ashx



    missing } in XML expression



    <html>

        <head>

            <title>Could not load file or assembly 'MsWordAdapter.Net2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2' or one of its dependencies. The system cannot find the file specified.</title>

            <style>

             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}

             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}

             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}

             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }

             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }

             pre {font-family:"Lucida Console";font-size: .9em}

             .marker {font-weight: bold; color: black;text-decoration: none;}

             .version {color: gray;}

             .error {margin-bottom: 10px;}

             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

            </style>

        </head>



        <body bgcolor="white">



                <span><H1>Server Error in '/RadiologyInformationSystem' Application.<hr width=100% size=1 color=silver></H1>



                <h2> <i>Could not load file or assembly 'MsWordAdapter.Net2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2' or one of its dependencies. The system cannot find the file specified.</i> </h2></span>



                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">



                <b> Description: </b>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.



                <br><br>



                <b> Exception Details: </b>System.IO.FileNotFoundException: Could not load file or assembly 'MsWordAdapter.Net2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2' or one of its dependencies. The system cannot find the file specified.<br><br>



                <b>Source Error:</b> <br><br>



                <table width=100% bgcolor="#ffffcc">

                   <tr>

                      <td>

                          <code>



    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.</code>



                      </td>

                   </tr>

                </table>



                <br>



                <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'MsWordAdapter.Net2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2' could not be loaded.<br><br>



                <table width=100% bgcolor="#ffffcc">

                   <tr>

                      <td>

                          <code><pre>



    WRN: Assembly binding logging is turned OFF.

    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

    Note: There is some performance penalty associated with assembly bind failure logging.

    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    </pre></code>



                      </td>

                   </tr>

                </table>



                <br>



                <b>Stack Trace:</b> <br><br>



                <table width=100% bgcolor="#ffffcc">

                   <tr>

                      <td>

                          <code><pre>



    [FileNotFoundException: Could not load file or assembly 'MsWordAdapter.Net2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2' or one of its dependencies. The system cannot find the file specified.]

       System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0

       System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43

       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection) +127

       System.Reflection.Assembly.Load(AssemblyName assemblyRef) +28

       Telerik.WebControls.WordAdapterLoader.LoadAssembly() +162

       Telerik.WebControls.WordAdapterLoader.CreateWordProvider() +8

       Telerik.WebControls.SpellChecker.get_SpellProvider() +31

       Telerik.WebControls.SpellChecker.CheckText() +120

       Telerik.WebControls.SpellChecker.BadWordsJScript() +13

       Telerik.WebControls.SpellCheckHandler.ProcessSpellCheckRequest(String text) +94

       Telerik.WebControls.SpellCheckHandler.ProcessRequest(HttpContext context) +245

       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181

       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +75

    </pre></code>



                      </td>

                   </tr>

                </table>



                <br>



                <hr width=100% size=1 color=silver>



                <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016



                </font>



        </body>

    </html>

    <!--

    [FileNotFoundException]: Could not load file or assembly 'MsWordAdapter.Net2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2' or one of its dependencies. The system cannot find the file specified.

       at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

       at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

       at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

       at System.Reflection.Assembly.Load(AssemblyName assemblyRef)

       at Telerik.WebControls.WordAdapterLoader.LoadAssembly()

       at Telerik.WebControls.WordAdapterLoader.CreateWordProvider()

       at Telerik.WebControls.SpellChecker.get_SpellProvider()

       at Telerik.WebControls.SpellChecker.CheckText()

       at Telerik.WebControls.SpellChecker.BadWordsJScript()

       at Telerik.WebControls.SpellCheckHandler.ProcessSpellCheckRequest(String text)

       at Telerik.WebControls.SpellCheckHandler.ProcessRequest(HttpContext context)

       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    -->
    ===========================\
    Kindly help.
    TS



  • Rumen Rumen admin's avatar

    Posted on Dec 17, 2009 (permalink)

    Hi Theju,

    Please, see the following forum thread discussing the reported error: Server returned error 500 / missing } in XML expression.


    Regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Spell > Rad Spell Fails in IE7, Works in FF 2.0