WCF Project Client missing one method

Posted on 2012-09-06
Last Modified: 2012-09-06
I have created a WCF project and everything appears to work fine, at least for the most part.  All of the methods work fine and appear in the client so I can run them and test them just fine.  The issue that I am having is there is one method that I am trying to pull which is a delete method by a id and it won't appear in my list of methods for the client.  How do I resolve this issue?

public OfficeMaps DeleteMapLocationByMapID(int mapid)
            OfficeMaps map = new OfficeMaps();

            SqlConnection connection = new SqlConnection();
            DataSet dataset = new DataSet();
            SqlDataAdapter adapter = new SqlDataAdapter();

            SqlCommand command = new SqlCommand("SP_DeleteMapByID");
            command.CommandType = CommandType.StoredProcedure;

            map.MapId = mapid;

            connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["MapSite"].ToString();
            command.Connection = connection;

            command.Parameters.Add(new SqlParameter("@MapId", map.MapId));


            return map;

Open in new window

Question by:VBBRett
    1 Comment
    LVL 14

    Accepted Solution

    Have you declared that your DeleteMapLocationByMapID is accessible to the client using the OperationContractAttribute?

    Any operations/methods which are not decorated with this attribute will not be consumable via the client, regardless of their access modifier.

    If you have added a manual reference to your service in your client (via references) then just check it is up to date.

    If you are using a proxy, do the same and possibly make use of the svcutil program to generate the proxy on your behalf.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
    Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now