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

2
  • what version of iis are you using? Commented Aug 13, 2011 at 12:21
  • 1
    Seems to be the same problem like this question Commented Aug 13, 2011 at 12:33

2 Answers 2

0

Try sticking this in your web.config

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

  </modules>
<system.webServer>
Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.