wcf - DNS Lookup for localhsot failed. No such host is known -
i did break point on method never goes there , if paste url in web browser , hit enter , in firebug:
readresponse() failed: server did not return response request.
edit:
indeed typo, after correcting , still have no response, in ff see response
get getcustomer?method=jsonp1299253547713 http://localhost:2344/service1.svc/getcustomer?method=jsonp1299253547713 aborted localhost:2344 ?
what may wrong ?
end edit
i have created wcf services using json padding (http://msdn.microsoft.com/en-us/library/cc716898(v=vs.90).aspx)
i have code below using call service, , code in html page withint th same project have created wcf service.
$("#btn").click(function (event) { $.getjson('http://localhsot:2344/service1.svc/getcurrentuser?method=?', { }, function (data) { debugger alert(data); }); //return false; });
getting error:
dns lookup localhsot failed. no such host known
try renaming:
localhsot
=> localhost
Comments
Post a Comment