Custom service in application - can I disable pageroutehandl

Posted by Community Admin on 03-Aug-2018 17:09

Custom service in application - can I disable pageroutehandler for a folder?

All Replies

Posted by Community Admin on 14-Feb-2012 00:00

I've added a custom WCF service to my Sitefinity application. The service is set up to handle JSON posts and return data that the widget will then display. Using the standard jQuery.ajax command, the method url is in the format: somedomain.com/.../DataMethod. Obviously, the Sitefinity PageRouteHandler intercepts that URL, tries to figure out what DataMethod is, and throws a 404.

Is it possible to disable the default PageRouteHandler for the Services folder? Basically, I need a configuration that just tells the site to process that call like a normal .NET service call without any of the page routing commands kicking in. Any suggestions on how to make this happen?

Posted by Community Admin on 16-Feb-2012 00:00

Hello Steve,

Please review the following blog posts -

http://www.sitefinity.com/blogs/lubomirvelkov/posts/12-01-22/extending_the_built-in_content_modules.aspx 

http://www.sitefinity.com/blogs/lubomirvelkov/posts/12-01-11/creating_a_content_module_-_sticky_notes_for_your_backend_dashboard.aspx 

There are examples how to implement and cosume custom WCF services using jQuery.

Regards,
Lubomir Velkov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed