I've always used ASMX Web Services for when I need to do AJAX, but I'm just starting to use WCF Web Services because, well, it's newer and better isn't it? Not exactly sure why I want to use WCF, probably the same reason I upgraded from Visual Studio 2010 to Visual Studio 2012.
I have the exact same method in WS.asmx
as I do in WS.svc
, but when I set a break point on both, I'm only able to step through the ASMX method. Why?
I don't think the code is relevant but I'll paste anyway..
ASMX:
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string FetchData(string jsonAOData)
{
// some code here throws an exception
return "";
}
WCF:
[OperationContract]
public string FetchData(string jsonAOData)
{
// some code here throws an exception
return "";
}
Anyone know why I can't step through the WCF method?