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

Rad reference in web.config -- causes Form Response object failure.

3 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John Ream
Top achievements
Rank 1
John Ream asked on 28 Jul 2010, 05:37 PM

Regarding:  Rad reference in web.config --> causes Form Response object failure.

Simple example Code Segment:

<FORM Method="POST" ACTION="MyPage.asp">  What is your name? 
   <INPUT NAME = "firstname" SIZE = 48>  <BR /> <INPUT TYPE = SUBMIT>   </FORM>
   Response.Write "Request.Form.Count  -> " & Request.Form.Count

Above example AOK when Rad is removed from web.config, and properly displays Request.Form.Count = 1

Above example FAILS if Rad is in web.config, such as line:
         <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>

       Error message:   "An error occurred on the server while processing the URL"
       What could cause this simple line to fail to badly?    Request.Form.Count

My versions:  RadControls for ASP.NET AJAX, we tried the newest 2010.2 713 and some previous versions too.   
My server: IIS 7.5, Windows 2008 R2 64-bit.

Any hints or comments?

John Ream
Voice 973-267-0065

3 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 29 Jul 2010, 11:11 AM
Hello John,

To prevent the error you can exclude the asp pages from being compressed by adding a precondition in the RadCompression registration like this:
<add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="managedHandler" />

This is explained in more details in the following links:
http://blogs.iis.net/thomad/archive/2006/11/04/precondition-what.aspx
http://learn.iis.net/page.aspx/121/iis-7-modules-overview/

Sincerely yours,
Pavel
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
0
John Ream
Top achievements
Rank 1
answered on 30 Jul 2010, 03:11 PM
Thank you for replying.  We didn't know about that precondition option.  Is there any potential negative side-effects from adding the phrase:  preCondition="managedHandler" ?   Will our .Net project be impacted at all?   Any gotcha's?

Thanks again for your great response! 
John

0
Pavel
Telerik team
answered on 02 Aug 2010, 11:35 AM
Hello John,

As explained in the links provided in my previous post, the ManagedHandler precondition simply ensures that the module will be executed only for ASP.NET content. You can check the referenced resources for a more thorough explanation.

Sincerely yours,
Pavel
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
Tags
General Discussions
Asked by
John Ream
Top achievements
Rank 1
Answers by
Pavel
Telerik team
John Ream
Top achievements
Rank 1
Share this question
or