Friday, April 9, 2010

Fixed error - UrlRewritingNet.UrlRewrite on IIS7

(System Requirements)

The component was designed and developed in 2006 for running with ASP.NET 2.0, but it works with ASP.NET 3.5 as well. The only requirement is a webserver running ASP.NET, for example Internet Information Services (IIS, Version 5.0 - 7.0).

However, UrlRewritingNet can have error when run on IIS7

To fix it, simple:

Open Web.config , find:

<configuration>
<system.webserver>
<modules>
// Place holder
</modules>
</system.webServer>
</configuration>


Place code below to Place holder:

<add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/>
<remove name="Session"/>
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>


And upload it.

Done.

11 comments:

  1. Thank you, Thank you, Thank you!!!!!

    ReplyDelete
  2. My file web.config don't have


    // Place holder



    It have only



    // Place holder

    ReplyDelete
  3. My web.config have only system.web. It don't have system.webSever

    ReplyDelete
  4. @Thang:
    you can add more them between <configuration>...</configuration> tag

    ReplyDelete
  5. Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks

    no words for you sir.

    ReplyDelete
  6. allah senden gani gani razı olsun. sıkıntıdan kurtardın bizi. Thanks.

    ReplyDelete
  7. thanks so much!
    but i can't show image. can u help me?

    ReplyDelete