Last post May 07, 2013 10:12 PM by Haixia Xie - MSFT
May 07, 2013 09:18 AM|PLibrary|LINK
JSONP sample - JsonpAjaxService is not defined
I am trying to call the Jsonp example from my website (c:\WR-WCF-Samples\WCF\Basic\Ajax\JSONP).
Firebug indicates that I have a
ReferenceError: JsonpAjaxService is not defined
var proxy= new JsonpAjaxService.CustomerService();
I placed the script and body from JSONPClientPage.aspx into my webpage, changing the ServiceReference Path to
<asp:ServiceReference Path="h_ttp:/_/192.168.64.180/Service_deploy/service.svc" />
I added service and behavior definitions to Web.Config:
<service name=" JsonpAjaxService" behaviorConfiguration="MyServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
I built the solution in Visual Studio 2012 and then published the service to IIS.
I assume that this is a Service/IIS/Website configuration issue, but I don't know what to change. How does my webpage connect to JsonpAjaxService?
Thanks so much for your help!
May 07, 2013 12:11 PM|kushalrdalal|LINK
Check this link -
May 07, 2013 01:30 PM|PLibrary|LINK
Thanks for the idea. It sounded nice and easy. But I get the message: KB2468871v2 does not apply, or is blocked by another condition on your computer. No idea why...
May 07, 2013 10:12 PM|Haixia Xie - MSFT|LINK
Take a look at the response in
this duplicated thread.
Hope it helps.