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

Telerik.Web.UI.WebResourceSession and RadScriptManager

7 Answers 181 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Paul Robertson
Top achievements
Rank 1
Paul Robertson asked on 10 Jan 2013, 04:13 PM
Hi there

I'm wondering how it is possible to use both the radScriptManager and a radCaptcha control that stores its image in the server-side session?

I've tried amending the web.config entry to the httphandler entry, from Telerik.Web.UI.WebResource to Telerik.Web.UI.WebResourceSession, but on doing this, the page will no longer load, as the RadScriptManager control complains it can no longer find Telerik.Web.UI.WebResource, at least I assume that is what is happening, as the page just stops with the error:

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config.


Could anybody let me know what would be the correct way of configuring web.config to keep both these controls happy? Leaving both of the options in does not appear to work either?

Thanks if you can advise.

Regards

7 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 14 Jan 2013, 12:42 PM
Hi Paul,

There should not be any problems with using both a RadScriptManager and a RadCaptcha that stores its image in Session on the same page. Please check the code sample in this help article and ensure that the displayed hierarchy of the web.config file is used in your project.

Also, keep in mind that if you are referencing the Telerik.Web.UI assembly from the GAC, you need to use a fully qualified name in the HTTP handler registrations:
<configuration>
    <system.web>
        <httpHandlers>
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession, Telerik.Web.UI, Version=20xx.x.xxxx.xx, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />
        </httpHandlers>
    </system.web>
    <system.webServer>
        <handlers>
            <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession, Telerik.Web.UI, Version=20xx.x.xxxx.xx, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
        </handlers>
    </system.webServer>
</configuration>
The version of your Telerik.Web.UI in GAC should be specified in the sample above.

If you are still having difficulties after trying the suggestions above, please send your web.config so that I can examine it for errors in the configuration.

Regards,
Slav
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.
0
Paul Robertson
Top achievements
Rank 1
answered on 15 Jan 2013, 04:05 PM
Thanks for getting back to me about this.

I'm still in the process of trying to fix this, but I thought I'd better just check if the 'Telerik.Web.UI.WebResourceSession' namespace was introduced at any particular version of Telerik.Web.UI, just to make sure there is not a versioning issue with my current configuration. Has the namespace for this handler always been valid, or was it introduced only in very recent versions?

Thanks if you can clarify this.

Regards
0
Paul Robertson
Top achievements
Rank 1
answered on 15 Jan 2013, 04:26 PM
I forgot to include the relevant entry in web.config. This is the entry I that triggers the error:
    
           <httpHandlers>
                <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResourceSession, Telerik.Web.UI,
                 Version=2009.3.1208.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" validate="false"/>
                .....
           </httpHandlers>

whereas the orginal version loads the page OK:

           <httpHandlers>
                <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI,
                 Version=2009.3.1208.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" validate="false"/>
                .....
           </httpHandlers>

Thanks if you can advise.


      
0
Paul Robertson
Top achievements
Rank 1
answered on 17 Jan 2013, 12:28 PM
Hello again

After further investigation, I am wondering if this issue relates to my requirement to place the RadScriptManager into the ASP.NET masterpage for the page in question. Setting the EnableHandlerDetection="false" property of the RadScriptManager is a way to workaround the error in question, and which appears to allow the page to load correctly. However, I am wondering if there are probable unpleasant consequences of setting this property to false? What are the advantages of setting it to "true" that I would be losing? Thanks if you can advise.

Regards
0
Slav
Telerik team
answered on 18 Jan 2013, 02:45 PM
Hi Paul,

Setting EnableHandlerDetection to false will remove the exception, nevertheless you will still have a problem with the HTTP handler. In order to resolve the issue, I would suggest upgrading your version of RadControls to the latest release (Q3 2012 SP2). The version you are currently using is no longer supported as you can check here.

Greetings,
Slav
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.
0
Paul Robertson
Top achievements
Rank 1
answered on 18 Jan 2013, 05:58 PM
Hello

Does this mean that you are unable to clarify at which stage the 'Telerik.Web.UI.WebResourceSession' namespace to Telerik.Web.UI, just to make sure there is not a versioning issue with my current configuration. Has the namespace for this handler always been valid, or was it introduced only in very recent versions?

Thanks if you can clarify this.
0
Slav
Telerik team
answered on 23 Jan 2013, 08:04 AM
Hi Paul,

The WebResourceSession class is introduced in an older version of the RadControls for ASP.NET AJAX and more specifically 2009 Q2 (2009.2.826). The 2009 Q3 SP2 release (version 2009.3.1314)  includes a fix for a problem with handler detection when using the WebResourceSession handler type so you should not have problems related to this HTTP handler with later versions.

Kind regards,
Slav
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.
Tags
Captcha
Asked by
Paul Robertson
Top achievements
Rank 1
Answers by
Slav
Telerik team
Paul Robertson
Top achievements
Rank 1
Share this question
or