500 Internal Server Error when use UrlRewriteModule RRS feed

  • Question

  • User-369506445 posted


    i use UrlRewriter in my web site when run at local it's correct but in server i get error:

    the error:

       39:     <httpModules>
       40:       <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
       41:     </httpModules>
    Module	ConfigurationValidationModule
    Notification	BeginRequest
    Handler	ExtensionlessUrl-Integrated-4.0
    Error Code	0x800700b7
    Config Error	Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'UrlRewriteModule'

    and in web config use :

    <?xml version="1.0"?>
        <section name="urlrewritingnet" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
      <urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultPage="index.aspx" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
          <add name="Rewrite" virtualUrl="^~/(.*).html" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/User/SubGroup.aspx?id=$1" ignoreCase="true" />
        <!--<customErrors mode="On" defaultRedirect="error.html" />-->
        <compilation debug="true" targetFramework="4.0">
            <add assembly="System.Security, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Data.Entity, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.Entity.Design, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
        <add name="myEntities" connectionString="metadata=res://*/App_Code.CarModel.csdl|res://*/App_Code.CarModel.ssdl|res://*/App_Code.CarModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.\MSSQL;Initial Catalog=myDB;User ID=sa;Password=123;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />

    and get this error:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    please help me


    Tuesday, July 9, 2013 12:30 PM

All replies

  • User-369506445 posted

    hi again

    hear isnot every one for help me

    Tuesday, July 16, 2013 12:31 PM
  • User-801004448 posted

    Do you have UrlRewritingNet module installed on server?

    Contact server admin to troubleshoot error for you.

    Friday, July 19, 2013 1:47 AM
  • User-369506445 posted

    thanks for your answer

    yes i install on iis7.5 and i see it into iis manager

    but i get that error

    please help me


    Friday, July 19, 2013 2:31 AM