2

I had made a website bulkpedia.com In this i had use ASP.NET Routing mechanism in the way

{type}/{query}

whenever there is a query that contains a period, it shows me a 404 error

e.g. http://bulkpedia.com/web/fb.com

please help me solve it.

Thanks in advance

sll
  • 61,540
  • 22
  • 104
  • 156
user502016
  • 21
  • 1

2 Answers2

0

Try sticking this in your web.config

<system.webServer>
  <modules runAllManagedModulesForAllRequests="True" >

  </modules>
<system.webServer>
Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
0

Try this instead.

<system.webServer>     
  <modules >     
    <remove name="UrlRoutingModule-4.0" />     
    <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />     
    <remove name="Session"/>     
    <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition=""/>     
  </modules>     
</system.webServer>     

Reference: http://www.heartysoft.com/aspnet-routing-iis7-remember-modules

If this is not working either, I believe it might be your IIS or other machine setting.

Tae-Sung Shin
  • 20,215
  • 33
  • 138
  • 240