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

filter menu and inheritInChildApplications

4 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robin
Top achievements
Rank 1
Robin asked on 16 Oct 2012, 02:33 PM
I have a weird issue. I have a website with a web service as a folder under the website's root folder, and I have valdiateIntegratedModeConfiguration="false". When I tried to access the web service I would get errors regarding telerik controls. After some digging I found a few sites that seemed to resolve the problem. I added a <system.webServer> section in my web.config with just <validation validateIntegratedModeConfiguration="false"/> in it. Immediately below that I had <location path="." inheritInChildApplications="false"/>, followed by my original <system.webServer> section. I also added EnableHandlerDetection=false to all my RadScriptManager controls.

This all worked fine if I was on my company's network. However, if I tried to access the site from outside the network the filtering menu on the grid control would not appear when the filtering icon was clicked. I took these changes out of my web.config and everything works again.

I know that I can move the web service from underneath the web site and everything works just fine, but I would really like to figure out what is causing such different behavior depending upon where the user is residing.

Any suggestions as to what might be going on?

Thanks.
~Robin

4 Answers, 1 is accepted

Sort by
0
Robin
Top achievements
Rank 1
answered on 16 Oct 2012, 04:05 PM
I created a new site on my server, same configuration with the web service as a folder under the web site's root folder and now I can't get the filter menu to appear behind the firewall.
0
Marin
Telerik team
answered on 19 Oct 2012, 01:24 PM
Hello,

 You can check whether you have any javascript errors on the page. It might be that the web resource handler that provides the scripts of the controls does not operate well under the current web site configuration and it might need higher permissions in order to work as expected.
Most likely there is a problem in the configuration of the web site. Turning off the integrated mode validation (by setting valdiateIntegratedModeConfiguration="false") is not recommended because this way the IIS will not report configuration errors that is necessary to be resolved in order for the web site to function properly.

Greetings,
Marin
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
Robin
Top achievements
Rank 1
answered on 19 Oct 2012, 02:37 PM
I need  validateIntegratedModeConfiguration="false" in the web.config if the appPool's Managed pipeline mode is "Integrated". I need the appPool's managed pipeline mode to be "Integrated" in order to get my web service (which is a folder underneath the web site) running. If I remove "validateIntegratedModeConfiguration" from the web.config and set the appPool's managed pipeline mode to "Classic" I get the following error when I try to load the web service:

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load type 'Telerik.Web.UI.RadUploadHttpModule'. (C:\ACARTWEB\web.config line 56)
Source Error:
Line 54:       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
Line 55:       <!-- telerik specific addition -->
Line 56:       <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
Line 57:     </httpModules>
Line 58:     <authentication mode="None">
Source File: C:\web.config Line: 56 


So, if I set the appPool back to integrated and add the "validateIntegratedModeConfiguration" back into the web.config, I can get the web site and the web service to load. HOWEVER - the filter menu does not appear in the RadGrid.

I've mucked around with the settings many times and I get the same behavior.
0
Marin
Telerik team
answered on 23 Oct 2012, 08:45 AM
Hi,

 You can find more information about how to configure the settings in the web.config in this help topic.
Note that the problematic setting is only needed in case you use RadUpload or RadProgressArea controls otherwise you can remove it. Also if you use IIS7 or later the setting should look like this:

<add name="RadUploadModule" precondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
Then you will not need to set validateIntegratedModeConfiguration="false" and the menu should work as expected.

Greetings,
Marin
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
Grid
Asked by
Robin
Top achievements
Rank 1
Answers by
Robin
Top achievements
Rank 1
Marin
Telerik team
Share this question
or