简体   繁体   中英

URL rewriting with asp.net

I want to implement URL rewriting in my code. I get an error :

Could not load file or assembly 'Intelligencia.UrlRewriter' or one of its dependencies. The system cannot find the file specified

when i try to add below section in my web.config file.

 <httpModules>
      <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/> 
    </httpModules>

Am i missing something?

Refer - Could not load file or assembly 'Intelligencia.UrlRewriter' or one of its dependencies. The system cannot find the file specified

In the comments section, OP says...

Didn't get any answers from community. at last i used microsoft support. and they suggested that. While adding reference to the URLRewriter in the Web.Config please include Version, PublicKeyToken and Culture of the assembly, and it this worked. syntax for adding module in web.config would be. <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter, Version=?, PublicKeyToken=???, Culture=neutral " /> hope this saves someone's time( i wasted many hours on this issue)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM