Hello I am implementing an Ajax enabled web site with an Ajax Enabled WCF Service. For inbuilt return types I can successfully use the [OperationContracts]. When I add a user defined return type it complies correctly but when I try and run the site I get an error. The error occurs irrespective if i call the [OperationContract] or not.
The error is in jsdebug -
Webpage error details
Message: Expected ';'
Line: 66
Char: 13
Code: 0
URI: http://localhost:50212/HomePage/HomePage.svc/jsdebug
This is the code for the [OperationContract] and its user defined return type causing the error.
[OperationContract]
public IEnumerable<TabAndDiv> GetMostViewed()
{
return (from t in ctx.Tabs
where t.Views == ctx.Tabs.Max(m => m.Views)
select ne ...
Go to the complete details ...