What’s with this ‘/_vti_bin/owssvr.dll’ and ‘/MSOffice/cltreq.asp’ errors on my MVC Application

By | August 6, 2014

You might be getting the following errors below on your MVC Application and your wondering where does this come from? You looked everywhere in your solution and you’re definite you don’t have the following pages that the error is referring to. And now you are getting crazy and is looking for answers on how to get rid of this.

System.Web.HttpException (0x80004005): The controller for path '/_vti_bin/owssvr.dll' could not be found or it does not implement IController.
System.Web.HttpException (0x80004005): The controller for path '/MSOffice/cltreq.asp' could not be found or it does not implement IController.

Well lets understand first where this comes from.

Basically this comes from the users browser and not from your web application. These are requests are initiated by the “Discuss” toolbar in users browser which can be found when the old versions of Microsoft Office and Internet Explorer (not sure of the exact version) is installed and this functionality is enabled. So this means you can’t just tell all the users to disable them so the best solution to resolve this is to Ignore the Routes in your Route Registrar or in the Register Routes section of your Global.asax.

And here is how you do it.

routes.IgnoreRoute("_vti_bin/owssvr.dll");
routes.IgnoreRoute("MSOffice/cltreq.asp");

Take note you have to put this on top as the first items before the Map Route.
Now your codes will look similar to this.

RouteRegistrar

Recommended

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.