Html.Telerik (). The output StyleSheetRegistrar () file generating a 404 message about asset.axd

I use Telerik MVC controls and they work fine in work / home dev and prod environments, but when I tried to deploy my home environment (IIS7), I had a problem.

I added the axm axm type, but I don't know what else to do. I read a post suggesting to add a handler, but was not sure if I would install it incorrectly or I was just looking for the wrong pointer.

if you are using IIS7, make sure you add a handler to the section <system.webServer><handlers>:

<add name="MyName" path="MyName.axd" verb="*" type="NameSpace.Class, Assembly" /> 

I added: <add name="ScriptRegistrar" path="Access.axd" verb="*" type="Telerik.Web.Mvc.UI.ScriptRegistrar, Version=v2.0.50727" />

http: // localhost: 1000 / asset.axd id = sQAAAB-LCAAAAAAABADsvQdgHEmWJSYvbcp7f0r1StfgdKEIgGATJNiQQBDswYjN5pLsHWlHIymrKoHKZVZlXWYWQMztnbz33nvvvffee - 997o7nU4n99__P1xmZAFs9s5K2smeIYCqyB8_fnwfPyJ-8UfT9qNHH7X5u_butGk-Gn10SX_u7ezujHfH93Ye0gfTjx619TqnX2YfPbr36f3RR_Tze7_4oxU1PKmWbb5s775ur8scb5_zV9VHj3ZGHy2pwbRaLKrlGKB_yYi_2JUv2rzM6-LtuN9gL2xwWTRtJt9__5d8_5f8PwEAAP__qtxwmrEAAAA% 3d?

+5
source share
1 answer

To enable combining web resources with Telerik extensions, you need to register WebAssetHttpHandler in your webconfig:

IIS 7

<add name="AssetHandler" preCondition="integratedMode" verb="GET,HEAD" path="asset.axd" type="Telerik.Web.Mvc.WebAssetHttpHandler, Telerik.Web.Mvc"/>

IIS 6

<add verb="GET,HEAD" path="asset.axd" validate="false" type="Telerik.Web.Mvc.WebAssetHttpHandler, Telerik.Web.Mvc"/>

, Script StyleSheet. - Telerik:

http://www.telerik.com/help/aspnet-mvc/web-assets-working-with-javascript-web-assets.html

+9

All Articles