Results 1 to 5 of 5

Thread: SOLVED: WCF returns: "The remote server returned an error: NotFound."

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Posts
    297

    SOLVED: WCF returns: "The remote server returned an error: NotFound."

    As long as I return a windows known type the service works fine:
    For example:
    Code:
    [ServiceContract]
    	public interface ICalendarService
    	{
    		[OperationContract(AsyncPattern = true)]
    		IAsyncResult BeginCreateCalenderItem(string applicationName, string subject, string body, string username, string password, AsyncCallback callBack, Object state);
    		bool EndCreateCalenderItem(IAsyncResult result);
    	}
    But if I return my own type:
    Code:
    [ServiceContract]
    	public interface IPhotoService
    	{
    		[OperationContract(AsyncPattern = true)]
    		IAsyncResult BeginGetImagesFromAlbumByKeyWord(string keyString, string username, string password, AsyncCallback callBack, Object state);
    		PhotoAlbum EndGetImagesFromAlbumByKeyWord(IAsyncResult result);
    	}
    With:
    Code:
    [DataContract]
    	public class PhotoAlbum
    	{
    		[DataMember]
    		public string Name { get; set; }
    
    		[DataMember]
    		public List<PhotoImage> Images { get; set; }
    	}
    And:
    Code:
    [DataContract]
    	public class PhotoImage
    	{
    		[DataMember]
    		public string URL { get; set; }
    
    		[DataMember]
    		public string Thumbnail { get; set; }
    
    		[DataMember]
    		public string Title { get; set; }
    	}
    This returns the Error.
    Has it something to do with system known types?
    Last edited by HWijngaarD; May 5th, 2010 at 03:09 AM. Reason: solved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width