+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / urlrewrites in 3.7 updated to .net 4

urlrewrites in 3.7 updated to .net 4

3 posts, 0 answered
  1. Imran
    Imran avatar
    75 posts
    Registered:
    17 Jan 2007
    19 Oct 2010
    Link to this post
    Hi there

    I used the patch Sitefinity_3_7_2136_dev_NET40_patch to update my project to use .NET 4. This worked well, but when I was migrating over my setting from my old web.config file, when I put the following in:

    <telerik>
            <urlrewrites>
                <rule>
                    <url>/blog/(\d\d\d\d\-\d\d\-\d\d\-)</url>
                    <rewrite>/blog/post.aspx?PostUrl=$1</rewrite>
                </rule>
            </urlrewrites>

    The project wouldn't compile because it didn't understand <urlrewrites>. 

    Any ideas on how to fix this? Thanks
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    19 Oct 2010
    Link to this post
    Hello Imran,

    Thank you for using our services.

    Can you please make sure that when you have merged the web.config file you have not missed to add the declaration of the urlrewrites config section as well as the settings for the rewrite module:
    <sectionGroup name="telerik">
        ...
        <section name="urlrewrites" type="Telerik.Cms.Web.AdvancedUrlRewriter, Telerik.Cms" restartOnExternalChanges="false" />
    </sectionGroup>

    <httpModules>
        <add name="Cms" type="Telerik.Cms.Web.CmsHttpModuleUrlRewrite, Telerik.Cms" />
        <!-- Http Module for extension mappings in Library module.-->
        <add name="LibraryModule" type="Telerik.Libraries.LibraryHttpModule, Telerik.Libraries" />
        <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></httpModules>

    <remove name="ScriptModule" /><remove name="Cms" />
            <remove name="LibraryModule" />
            <remove name="RadUploadModule" />
            <add name="Cms" type="Telerik.Cms.Web.CmsHttpModuleUrlRewrite, Telerik.Cms" />
            <!-- Http Module for extension mappings in Library module.-->
            <add name="LibraryModule" type="Telerik.Libraries.LibraryHttpModule, Telerik.Libraries" />
            <add name="RadUploadModule" preCondition="managedHandler" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
            <add name="NetopiaSitefinityFormsModule" type="Netopia.Sitefinity.Forms.FormsModule, Netopia.Sitefinity.Forms" />
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></modules>


    Kind regards,
    Radoslav Georgiev
    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
  3. Imran
    Imran avatar
    75 posts
    Registered:
    17 Jan 2007
    19 Oct 2010
    Link to this post
    Bingo ! Thanks
Register for webinar
3 posts, 0 answered