Error In Base.endinvoke
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up WCF Service Reference call returning “The remote server returned an error: NotFound.” up vote 0 down vote favorite I am pulling my hair out over this one. I have a WCF interface for calls on a web server. All the other functions are working fine, but the new function I added is resulting in "The remote server returned an error: NotFound." in the Reference.cs auto generated file in the End function. I know the server is found, I have the debugger breaking on the service side and its clearly being called and returning the correct type. What else could cause this misleading error? [ServiceContract] public interface IDatabaseQueries { ... [OperationContract(AsyncPattern = true)] IAsyncResult BeginGetItemFromId(int itemID, AsyncCallback callback, Object state); RmaItem EndGetItemFromId(IAsyncResult result); ... } [DataContract] [KnownType(typeof(ItemType))] [KnownType(typeof(Location))] [KnownType(typeof(DateTime))] public class RmaItem { ... } [SilverlightFaultBehavior] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] [KnownType(typeof(RmaItem))] [KnownType(typeof(RmaReport))] public class DatabaseService : IDatabaseQueries { ... public IAsyncResult BeginGetItemFromId(int itemID, AsyncCallback callback, Object state) { return new DatabaseResponse(itemID); } public RmaItem EndGetItemFromId(IAsyncResult result) { return GetRmaItemById((int)(result as DatabaseResponse).GetData); } ... } Crashing in "Reference.cs": public RMA.DatabaseServiceReference.RmaItem EndGetItemFromId(System.IAsyncResult result) { object[] _args = new object[0]; RMA.DatabaseServiceReference.RmaItem _result = ((RMA.DatabaseServiceReference.RmaItem)(base.EndInvoke("GetItemFromId", _args, result))); return _result; Edit: When I say all other functions I mean additional functions is the same IDatabaseQueries interface. EDIT 2:: Turns out the problem was using a Enum as a field (ItemType). As shown above, I have ItemType as a known type. Is there a special condition I
message before? “The remote server returned an error: NotFound.” I think that this wins that the most infuriating exception in Silverlight. I’ve personally wasted tens of hours trying to deal with this cryptic and utterly unhelpful message. Over time, you come to understand that this is your http://stackoverflow.com/questions/12305639/wcf-service-reference-call-returning-the-remote-server-returned-an-error-notfo Silverlight app’s way of telling you that there was an exception during a WCF Service call. Here’s the complete text of the exception: System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. --> System.Net.WebException: The remote server returned an error: https://www.benday.com/2010/08/16/how-to-permanently-banish-silverlights-not-found-error-for-wcf-service-calls/ NotFound. --> System.Net.WebException: The remote server returned an error: NotFound. at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.
digital channels at scale Software Quality Test Studio Release better quality software faster Individual Products DevTools Web UI for ASP.NET AJAX UI for ASP.NET MVC UI for http://www.telerik.com/forums/q2-2010-the-remote-server-returned-an-error-notfound ASP.NET Core UI for PHP UI for JSP UI for Silverlight HTML5/JS Framework Kendo UI NativeScript Desktop UI for WPF UI for WinForms Mobile UI for NativeScript UI for Xamarin UI for UWP (Windows 10) UI for iOS UI for Android UI for Windows Universal UI for Windows Phone PRODUCTIVITY & QUALITY JustCode JustMock Testing Framework error in Debugging Fiddler JustDecompile JustTrace Reporting & Data Access Reporting Report Server Data Access DEPLOYMENT Modulus Mobile App Development Telerik Platform AppBuilder Analytics Backend Services Testing Test Studio Mobile Testing API Testing Digital Content & Experience Progress Sitefinity CMS Progress Sitefinity Digital Experience Cloud ENTERPRISE FREE TRIALS PRICING SUPPORT & LEARNING ABOUT US YOUR ACCOUNT error in base.endinvoke Search Your Account Telerik Platform Telerik Forums / Data Access Forum / General Discussions / Q2 2010, The remote server returned an error: NotFound Cancel The title field is required! Data Access Resources Buy Try Feed for this thread 2 posts, 0 answers Pullan 1 posts Member since: Jul 2010 Posted 13 Aug 2010 Link to this post I created a solution and tried to build a program from zero according to Silverlight SalesDashboard Demo. I used OpenAccess to generate Domain Model. Database northwind comes from the Demo. I noticed the employee class in Employees.generated.csincludes the belowtwo fields: private IList