Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8502607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:31:57+00:00 2026-06-11T01:31:57+00:00

I am pulling my hair out over this one. I have a WCF interface

  • 0

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 am missing on that type? Here is the deceleration.

[DataContract]
public enum ItemType
{
    LOCATION, PART, ASSEMBLY
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:31:59+00:00Added an answer on June 11, 2026 at 1:31 am

    Resolved.

    I was missing the EnumMember with each value in the ItemType enumaration.

        [DataContract]
        public enum ItemType
        {
            [EnumMember]
            LOCATION,
            [EnumMember]
            PART,
            [EnumMember]
            ASSEMBLY
        }
    

    Thank you for the response McAden

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pulling my hair out over this one. I have one wordpress install at /2009
I'm pulling my hair out over this one. I want to get all contents
I'm pulling my hair out over this one. I have an app that when
I'm on the verge of pulling my hair out over this. Here I have
I'm pulling my hair out over this. I have this bit of javascript that
been pulling my hair out over this for the past few hours. i have
I've been pulling my hair out over this one...and Im fairly sure its strait
I've come to the point of pulling my hair out over this one. I
So I'm pulling my hair out over this one. I've been tracking down a
I am near the point of pulling my hair out over this one. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.