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

Error 500.21 when EnableStyleSheetCombine="true"

4 Answers 459 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 06 Aug 2008, 05:56 PM
I'm getting Error 500.21: Handler "Telerik.Web.UI.WebResource" has a bad module "ManagedPipelineHandler" in its module list whenever I set EnableStyleSheetCombine="true" on my RadStyleSheetManager.

Specifically, if I set EnableStyleSheetCombine to false, all of the Telerik styles are applied correctly. If I set it to true, none of the Telerik styles are applied. When I try to navigate directly to the stylesheet reference I get the 500.21 error. The stylesheet path is:

.../Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2008.2.723.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afaa3c25c-0b63-45d2-9c6e-561f75337212%3a27b344d4%3ac25d6f00%3a611faf1c%3a348638f9%3ac0a1b7bc%3a49851299

  • I'm running VS 2008 on Vista so I'm using IIS7.
  • I have not changed the application pool although I have tried change it to the Classic pool and it made no difference..
  • validateIntegratedModeConfiguration is set to false.
  • I have a reference for Telerik.Web.UI.WebResource in both system.web/httpHandlers as well as system.webServer/handlers.
  • The base master page also has a RadScriptManager with EnableScriptCombine=true and when EnableStyleSheetCombine is false, the site still appears to work fine.
  • EnableHandlerDetection is true on both the RadScriptManager and the RadStyleSheetManager.
  • I'm using two layers of master pages. I.e., a given page has Foo.master as a master page. Foo.master has Base.master as its master page. Base.Master contains the RadScriptManager and the RadStytleSheetManager.
  • I'm using a Theme which is set in the Web.Config file and contains a CSS stylesheet. The styles from the Theme are applied correctly whether EnableStyleSheetCombine is true or false.

4 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 07 Aug 2008, 10:48 AM
Hi Thomas,

I'm sorry I cannot help with a direct advice, as we haven't come across this error message before. I did some googling and I found that might be related somehow to the IIS configuration. Can you try the steps described here? Additionally, here is another interesting thread.

Let us know what you found.

Best regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Thomas
Top achievements
Rank 1
answered on 08 Aug 2008, 09:32 PM
I have finally corrected the problem. To solve the problem, I ensured that I was using the DefaultAppPool and not the Classic .NET Pool. I then ensured that my Telerik handler was written like so:

<add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" /> 
 

Next, I ensured that I specified to remove each handler I added. So something like:
<remove name="Telerik.Web.UI.WebResource" /> 
<add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" /> 
 

Further, I removed any <clear /> marker that might have been added that clears all handlers. In this way, I ensure that the default handlers remain.

Lastly, I ensured that the Web.Config files (I'm leveraging inheritance in config files, so a given site might have multiple) did not include all of the following stuff which probably came from various updates like the AJAX 1.0 extensions:

<system.webServer> 
    <modules> 
        <remove name="UrlMappingsModule" /> 
        <remove name="Session" /> 
        <remove name="WindowsAuthentication" /> 
        <remove name="UrlAuthorization" /> 
        <remove name="RoleManager" /> 
        <remove name="FileAuthorization" /> 
        <remove name="DefaultAuthentication" /> 
        <remove name="AnonymousIdentification" /> 
        <remove name="Profile" /> 
        <remove name="OutputCache" /> 
        <remove name="ServiceModel" /> 
        <remove name="FormsAuthentication" /> 
        <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" preCondition="" /> 
        <add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="" /> 
        <add name="OutputCache" type="System.Web.Caching.OutputCacheModule" preCondition="" /> 
        <add name="Profile" type="System.Web.Profile.ProfileModule" preCondition="" /> 
        <add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" preCondition="" /> 
        <add name="DefaultAuthentication" type="System.Web.Security.DefaultAuthenticationModule" preCondition="" /> 
        <add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" preCondition="" /> 
        <add name="RoleManager" type="System.Web.Security.RoleManagerModule" preCondition="" /> 
        <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" preCondition="" /> 
        <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" preCondition="" /> 
        <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="" /> 
        <add name="UrlMappingsModule" type="System.Web.UrlMappingsModule" preCondition="" /> 
    </modules> 
    <handlers> 
        <clear /> 
        <add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> 
        <add name="svc-ISAPI-2.0" path="*.svc" verb="*" type="" modules="IsapiModule" scriptProcessor="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" /> 
        <add name="TraceHandler-Integrated" path="trace.axd" verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> 
        <add name="WebAdminHandler-Integrated" path="WebAdmin.axd" verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> 
        <add name="AssemblyResourceLoader-Integrated" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> 
        <add name="PageHandlerFactory-Integrated" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> 
        <add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> 
        <add name="WebServiceHandlerFactory-Integrated" path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> 
        <add name="HttpRemotingHandlerFactory-rem-Integrated" path="*.rem" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> 
        <add name="HttpRemotingHandlerFactory-soap-Integrated" path="*.soap" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> 
        <add name="AXD-ISAPI-2.0" path="*.axd" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" /> 
        <add name="PageHandlerFactory-ISAPI-2.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" /> 
        <add name="SimpleHandlerFactory-ISAPI-2.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" /> 
        <add name="WebServiceHandlerFactory-ISAPI-2.0" path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" /> 
        <add name="HttpRemotingHandlerFactory-rem-ISAPI-2.0" path="*.rem" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" /> 
        <add name="HttpRemotingHandlerFactory-soap-ISAPI-2.0" path="*.soap" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" /> 
        <add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" type="" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" preCondition="" /> 
        <add name="SecurityCertificate" path="*.cer" verb="GET,HEAD,POST" type="" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" preCondition="" /> 
        <add name="SSINC-stm" path="*.stm" verb="GET,POST" type="" modules="ServerSideIncludeModule" scriptProcessor="" resourceType="File" requireAccess="Script" preCondition="" /> 
        <add name="SSINC-shtm" path="*.shtm" verb="GET,POST" type="" modules="ServerSideIncludeModule" scriptProcessor="" resourceType="File" requireAccess="Script" preCondition="" /> 
        <add name="SSINC-shtml" path="*.shtml" verb="GET,POST" type="" modules="ServerSideIncludeModule" scriptProcessor="" resourceType="File" requireAccess="Script" preCondition="" /> 
        <add name="TRACEVerbHandler" path="*" verb="TRACE" type="" modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified" requireAccess="None" preCondition="" /> 
        <add name="OPTIONSVerbHandler" path="*" verb="OPTIONS" type="" modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified" requireAccess="None" preCondition="" /> 
        <add name="ISAPI-dll" path="*.dll" verb="*" type="" modules="IsapiModule" scriptProcessor="" resourceType="File" requireAccess="Execute" preCondition="" /> 
        <add name="StaticFile" path="*" verb="*" type="" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" scriptProcessor="" resourceType="Either" requireAccess="Read" preCondition="" /> 
    </handlers> 
</system.webServer> 
 
Once I did all that, I stopped getting the 500.21 error.

0
Alexander
Top achievements
Rank 1
answered on 17 Jun 2009, 06:12 AM
Hi,
I run application on IIS 7 in Classic .NET Pool and get the same error when I open dialog in radEditor: Handler "Telerik.Web.UI.DialogHandler" has a bad module "ManagedPipelineHandler" in its module list.
Is it possible to use telerik controls in Classic .NET pool?
0
Rumen
Telerik team
answered on 19 Jun 2009, 03:58 PM
Hi,

Basically, if your application runs on IIS 7 in Classic App Pool then you should register the handler in the <system.web> <httpHandlers /> section.

If it runs on IIS7 in Integration App Pool then you should register the handler in the <system.webServer> <httpHandlers />

Please, note that both type of Telerik handlers are different and have different attributes:
Classic App Pool
  <system.web>
   ....  
   <httpHandlers>

      ...
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

    </httpHandlers>
   ...
  </system.web>


Integration App Pool:
  <system.webServer>
    <handlers>

      ...
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

    </handlers>
  </system.webServer>



More information is available at: http://www.telerik.com/help/aspnet-ajax/registering_the_httphandlers_on_windows_vista_iis_7_integrated_mode.html

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Thomas
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Thomas
Top achievements
Rank 1
Alexander
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or