web 2.0

Portage du BlogEngine.Net deuxiéme partie

Enfin le serveur web de  Windows Azure qui va héberger mon projet  étant un IIS7 je dois faire quelques petites adaptations à mon web.config  les modules et les handlers nécessitent une nouvelle configuration  spécifique. Il faut rajouter le tag <system.webServer> et la configuration suivante pour les handlers et les module de BE .net :

<system.webServer>
    <modules>
       
<
remove name="Profile"/>
       
<
remove name="AnonymousIdentification"/>                 
        <
add name="WwwSubDomainModule" type="BlogEngine.Core.Web.HttpModules.WwwSubDomainModule, BlogEngine.Core" preCondition="managedHandler"/>                 
        <
add name="UrlRewrite" type="BlogEngine.Core.Web.HttpModules.UrlRewrite, BlogEngine.Core" preCondition="managedHandler"/>                 
        <
add name="CompressionModule" type="BlogEngine.Core.Web.HttpModules.CompressionModule, BlogEngine.Core" preCondition="managedHandler"/>                 
        <
add name="ReferrerModule" type="BlogEngine.Core.Web.HttpModules.ReferrerModule, BlogEngine.Core" preCondition="managedHandler"/>           
    </
modules>           
    <
handlers>                 
        <
add name="blogml.axd_*" path="blogml.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.BlogMLExportHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
        <
add name="monster.axd_*" path="monster.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.MonsterHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
        <
add name="opml.axd_*" path="opml.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.OpmlHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
       
<
add name="rating.axd_*" path="rating.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.RatingHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
        <
add name="js.axd_*" path="js.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.JavaScriptHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
        <
add name="css.axd_*" path="css.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.CssHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
       
<
add name="rsd.axd_*" path="rsd.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.RsdHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
       
<
add name="metaweblog.axd_*" path="metaweblog.axd" verb="*" type="BlogEngine.Core.API.MetaWeblog.MetaWeblogHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
       
<
add name="opensearch.axd_*" path="opensearch.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.OpenSearchHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
        <
add name="pingback.axd_*" path="pingback.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.PingbackHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
        <
add name="trackback.axd_*" path="trackback.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.TrackbackHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
        <
add name="sitemap.axd_*" path="sitemap.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.SiteMap, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
       
<
add name="syndication.axd_*" path="syndication.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.SyndicationHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>                 
       
<
add name="image.axd_*" path="image.axd" verb="*" type="vBlogEngine.Core.HttpHandlers.ImageHandler, AzureStorage" preCondition="integratedMode,runtimeVersionv2.0"/>                 
       
<
add name="file.axd_*" path="file.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.FileHandler, BlogEngine.Core" preCondition="integratedMode,runtimeVersionv2.0"/>           
    </handlers>           
    <
validation validateIntegratedModeConfiguration="false"/>
</system.webServer>

Tags: