This is a migrated thread and some comments may be shown as answers.

web.config entries

6 Answers 242 Views
Spell
This is a migrated thread and some comments may be shown as answers.
debbie f
Top achievements
Rank 1
debbie f asked on 28 Jul 2008, 06:20 PM
I have a web project that requires authentication that is using radspell.  However, I do have registration pages (where users have not yet been authenticated) that must use radspell.  What web.config entries are necessary to grant permissions to anon users?  Here is what is I have defined in web.config currently:

<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
  <location path="Users/Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
  <location path="Telerik.Web.UI.DialogHandler.aspx">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
  <location path="App_Data/RadSpell/en-US.tdf">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>

I get this javascript error when accessing spell from a registration page:

Error: [Exception... "'Sys.ArgumentException: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.
Parameter name: data' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]

Any suggestions?

6 Answers, 1 is accepted

Sort by
0
johnv
Top achievements
Rank 2
answered on 29 Jul 2008, 09:08 PM
I am having the same issue on my dev webserver. My localhost XP dev environment is working fine, but my testing server is experiencing the same issue... Any thoughts?
0
George
Telerik team
answered on 30 Jul 2008, 12:10 PM
Hi guys,

First, note that when you add the Telerik.Web.UI.WebResource.axd location as follows, it will be added for all the users. 
<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>

So, you may remove the following one:
<location path="Users/Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>

Next, there is no need to add the "App_Data/RadSpell/en-US.tdf" because it is accessed by the server.

I can see is that the Telerik.Web.UI.SpellCheckHandler.axd is missing. Please add it to your configuration and test the behavior e.g.

 <location path="Telerik.Web.UI.SpellCheckHandler.axd">
    <system.web>

      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>

I hope this helps.

Sincerely,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
johnv
Top achievements
Rank 2
answered on 30 Jul 2008, 01:23 PM
Hi all,

I don't mean to hijack your thread Debbie, but I thought it was interesting that someone else is having my exact same problem - and maybe we can help each other discover the problem.

My web.config entries look like this:

</appSettings>
<
location path="Telerik.RadUploadProgressHandler.ashx">  
    <system.web> 
        <authorization> 
            <allow users="*"/>  
        </authorization > 
    </system.web> 
</location> 
<location path="Telerik.Web.UI.WebResource.axd">  
    <system.web> 
        <authorization> 
            <allow users="*" /> 
        </authorization> 
    </system.web> 
</location> 
<location path="Telerik.Web.UI.SpellCheckHandler.axd">  
    <system.web> 
        <authorization> 
            <allow users="*" /> 
        </authorization> 
    </system.web> 
</location> 
<system.codedom>

So, I guess I have already gotten the web.config put together correctly. I should probably add that I am running my app as a DNN module. After verifying the web.config, and replacing the entries, I am still having the same problem.

I have also observed that this issue manifests itself differently in Firefox 2. It looks like it simply hangs up.

Thanks,

John
0
jason
Top achievements
Rank 1
answered on 30 Jul 2008, 02:48 PM
It's all yours now John - having the correct web.config entries has solved the problem on my end for now.  (I haven't pushed to staging/production yet but development works fine.)  I'd suggest possibly running fiddler to see if you find a uri that your app is hanging on - early on we had an isapi filter running that was choking on the long urls.
0
johnv
Top achievements
Rank 2
answered on 30 Jul 2008, 02:54 PM
Thanks, but I figured out what my problem was also. I had forgotten that in DNN there are some rules for using their friendlt URL's. I added the SpellCheckHandler entry to the SiteUrls.config file and everything started working on my QA server correctly.

So, Thanks!
0
Luiz Pires
Top achievements
Rank 2
answered on 21 Dec 2009, 03:44 PM
Hi,

Please,  paste here your siteurl.config.

Thanks,
Luiz
Tags
Spell
Asked by
debbie f
Top achievements
Rank 1
Answers by
johnv
Top achievements
Rank 2
George
Telerik team
jason
Top achievements
Rank 1
Luiz Pires
Top achievements
Rank 2
Share this question
or