+ Reply to Thread
Results 1 to 7 of 7

Thread: Struggling connecting to the web service

  1. #1

    Struggling connecting to the web service

    Greetings,

    I am new to Mixit Development, and have been following the Tutorial under Documentation and reached "Connecting to the web service". I also created a class called Callback, as prescribed. But when I try to run my C# console app, I get this error in VS2010:

    "An endpoint configuration section for contract 'ExternalAppAPI.Comms' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name."

    Could you please help me solve this one? I want to develop the app idea that I have.

    Henning

  2. #2
    MXit_Team def's Avatar
    Join Date
    Oct 2010
    Location
    David Freitas, ZA
    Posts
    414
    Blog Entries
    5
    Hi Henning,

    Welcome.

    This happens when your app.config file has more than one endpoint/binding specified.
    You can solve it by only having one in that file.
    Or, you can solve it by requesting/starting the wcf client with a specific name. Without a name it grabs the first and only binding it finds.

  3. #3
    OK, but I did what your tutorial said. Why does it have two endpoints then? I deleted one, still does not work.

  4. #4
    MXit_Team def's Avatar
    Join Date
    Oct 2010
    Location
    David Freitas, ZA
    Posts
    414
    Blog Entries
    5
    Quote Originally Posted by HenningViljoen View Post
    OK, but I did what your tutorial said. Why does it have two endpoints then? I deleted one, still does not work.
    Visual Studio usually adds two when you add another service reference... That's rather strange...

  5. #5
    Almost a MXit Pro Member
    Join Date
    Jul 2011
    Location
    Cape Town
    Posts
    189
    haha, i also had this problem.

  6. #6

    error

    client = new ExternalAppAPI.CommsClient(context);

    An endpoint configuration section for contract 'ExternalAppAPI.Comms' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name.

    help

  7. #7
    MXit Pro Member
    Join Date
    Feb 2012
    Posts
    243
    Blog Entries
    1
    Hi isphaa,

    Merely following up, are you still experiencing issues with regards to the end point?

+ Reply to Thread

Similar Threads

  1. Problems connecting with dev keys
    By soxion in forum Connecting to the API
    Replies: 1
    Last Post: 03-02-2012, 12:08 PM
  2. Problem connecting apps
    By melisak in forum Help and Coding
    Replies: 12
    Last Post: 21-07-2011, 10:58 AM
  3. 19 May 2011 - unplanned downtime on connecting occurred
    By thetourist in forum Announcements
    Replies: 8
    Last Post: 19-05-2011, 11:03 PM
  4. Connecting to my beta service
    By HarveySaayman in forum Connecting to the API
    Replies: 7
    Last Post: 02-11-2010, 08:36 PM

Posting Permissions

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