Reputation: 71288
I have this Aja.svc
in my root folder
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class Aja
{
[WebGet]
[OperationContract]
public string Hi()
{
return "hi world!";
}
}
and I'm trying to do this:
$.get('Aja.svc?method=Hi', function(d) { alert(d.d); });
In firebug I see that the result is HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler.
I use .net 3.5, jquery 1.4.4
Upvotes: 0
Views: 1395
Reputation: 598
check if WCF is installed
$.get('Aja.svc/Hi', function(d) { alert(d.d); });
Upvotes: 1