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
  • 59,352
  • 21
  • 103
  • 153
user502016
  • 21
  • 1

2 Answers2

0

Try sticking this in your web.config

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

  </modules>
<system.webServer>
Daniel A. White
  • 181,601
  • 45
  • 354
  • 430
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
  • 19,749
  • 32
  • 136
  • 235