I am trying to configure a WCF service with multiple endpoints from one of the endpoints using the enableWebScript endpoint behavior so that a Javascript proxy (jsdebug / js) is created on the client.
When adding the Service Reference to my AJAX ScriptManager, the jsdebug file will not be found if the endpoint address is not empty. ScriptManager proxy always generates the path "MyService.svc / jsdebug" to search for a file, even if my service has an "ajax" address. The proxy should generate a path like "MyService.svc / ajax / jsdebug".
Is there a parameter to get the proxy generated with the correct path? My service is at the core of my website.
work:
<endpoint address="" behaviorConfiguration="ajaxBehavior" binding="webHttpBinding" bindingConfiguration="webBinding" contract="MyTest.Web.ICustomerService" />
want (doesn't work):
<endpoint address="ajax" behaviorConfiguration="ajaxBehavior" binding="webHttpBinding" bindingConfiguration="webBinding" contract="MyTest.Web.ICustomerService" />
John swalt
source share