I am trying to setup a WCF service with multiple endpoints with one of the endpoints using the enableWebScript endpoint behavior so that a Javascript proxy will be created on the client (jsdebug/js).
When adding the Service Reference to my AJAX ScriptManager, the jsdebug file is not found unless the address of the endpoint is blank. The ScriptManager proxy seems to always generate a path of "MyService.svc/jsdebug" to look for the file even though my service has an address of "ajax". The proxy should generate the path as "MyService.svc/ajax/jsdebug".
Is there a setting to get the Proxy generated with the right path? My service is at the root of my website.
works:
<endpoint address=""
behaviorConfiguration="ajaxBehavior"
binding="webHttpBinding"
bindingConfiguration="webBinding"
contract="MyTest.Web.ICustomerService" />
want this (doesn't work):
<endpoint address="ajax"
behaviorConfiguration="ajaxBehavior"
binding="webHttpBinding"
bindingConfiguration="webBinding"
contract="MyTest.Web.ICustomerService" />