Scenario: MVC ASP.NET application containing WCF data services. When you try to browse WCF data service .svc page you might get the error
"Resource not found -404 error" .
Reson for such behavior : When you try to browse to data service page , the request is sent to MVC framework first rather than data service . As the controller is not defined for such request , error is send back.
Resolution :Ignore request redirection to MVC framework when WCF data service is requested .In order to achieve this add following to global.asax RegisterRoute function.
routes.IgnoreRoute("{resource}.svc/{*pathInfo}");
Subscribe to:
Post Comments (Atom)
Gray Failures: What is it and how to detect one?
If you are reading this article , i guess you are curious to know about gray failures and different methods to detect gray failures. Hopefu...
-
Note : In below scenario jenkins was deployed in Linux container Scenario: Jenkins build failed with error. java.io.IOException: error...
-
SharePoint Capacity Planning Tool on Microsoft Download Center: http://go.microsoft.com/fwlink/?LinkID=93029 System Center Capacity Planner:...
-
Error when installing NPM Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile. Fix: Run command and try a...
1 comment:
Interesting that it is not specified anywhere in MSDN or the tutorial videos. Thanks for this post
Post a Comment