I keep getting the above error with the following detail. it looks as though its related to my robots.txt file.
System.Configuration.ConfigurationErrorsException: System.Web.Routing.UrlRoutingModule does not implement IHttpHandlerFactory or IHttpHandler. at System.Web.Configuration.HandlerFactoryCache.GetHandlerType(String type) at System.Web.Configuration.HandlerFactoryCache..ctor(String type) at System.Web.HttpApplication.GetFactory(String type) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
nopCommerce generates a robots.txt automatically. When you try to add a physical robots.txt file the MVC routing will get messed up and you will get this error.
To change the autogenerated content served when calling robots.txt you can modify the RobotsTextFile Action in CommonController.
Another way to do this, if you don't want to touch the core, is to write an ActionFilterAttribute that catches all calls made to this particular Action and serve any content you like. We use this aproach to serve a "dissalow all"-robots.txt on our development sites.
I was trying to testing my sitemap & robots file www.mydomain.com/sitemap.xml and www.mydomain.com/robots.txt I was getting same error System.Web.Routing.UrlRoutingModule does not implement IHttpHandlerFactory or IHttpHandler, me just removed below two lines from web.config and it worked fine for me: