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 8888231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:59:08+00:00 2026-06-14T21:59:08+00:00

Hej guys, i’m trying to access a webservice hosted on a virtual machine (Windows

  • 0

Hej guys,

i’m trying to access a webservice hosted on a virtual machine (Windows 7) from my Ubuntu Host using Mono.

I can import the wdsl file and generate the service reference. I copied the App.config from an other working client accessing the webservice correctly.

When i try to connect to the webservice using
using System;

namespace MonoTest
{
class MainClass
{
    public static void Main (string[] args)
    {
        Console.WriteLine ("Hello World!");
        TestServer.Service1Client client = new TestServer.Service1Client("Test");
        Console.WriteLine(client.GetData(12));
        Console.ReadLine();
    }
}
}

I get an error:

System.InvalidOperationException: Client endpoint configuration 'Test' was not found in 1 endpoints.
  at System.ServiceModel.ChannelFactory.ApplyConfiguration (System.String endpointConfig) [0x00000] in <filename unknown>:0 
  at System.ServiceModel.ChannelFactory.InitializeEndpoint (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00000] in <filename unknown>:0 
  at System.ServiceModel.ChannelFactory`1[MonoTest.TestServer.IService1]..ctor (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00000] in <filename unknown>:0 
  at System.ServiceModel.ClientBase`1[MonoTest.TestServer.IService1].Initialize (System.ServiceModel.InstanceContext instance, System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00000] in <filename unknown>:0 
  at System.ServiceModel.ClientBase`1[MonoTest.TestServer.IService1]..ctor (System.ServiceModel.InstanceContext instance, System.String endpointConfigurationName) [0x00000] in <filename unknown>:0 
  at System.ServiceModel.ClientBase`1[MonoTest.TestServer.IService1]..ctor (System.String endpointConfigurationName) [0x00000] in <filename unknown>:0 
  at MonoTest.TestServer.Service1Client..ctor (System.String endpointConfigurationName) [0x00000] in <filename unknown>:0 
  at MonoTest.MainClass.Main (System.String[] args) [0x0000a] in /home/***/WebserviceTest/MonoTest/MonoTest/Main.cs:11 

My App.config file looks like the following:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
        <bindings>
            <wsHttpBinding>
                <binding name="WSHttpBinding_IService1" />
            </wsHttpBinding>
        </bindings>
        <client>
            <endpoint name="Test"
                address="http://192.168.178.34:8732/Design_Time_Addresses/TestServer/Service1/"
                binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1"
                contract="ServiceReference1.IService1" >
                <identity>
                    <dns value="localhost" />
                </identity>
            </endpoint>
        </client>
    </system.serviceModel>
</configuration>

Has anyone made this working using Linux?

  • 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-14T21:59:08+00:00Added an answer on June 14, 2026 at 9:59 pm

    Mono’s WSDL import tool does not support automatic configuration generation yet, you need to manually configure your endpoints in your app.config.

    The error that you’re seeing here means that WCF can’t find the endpoint configuration section.

    The detailed, technical reason for the problem

    You are getting this because Visual Studio and Mono have a different, incompatible way of referencing the configuration section.

    When adding a Service Reference in Visual Studio, it automatically creates and updates the corresponding entries in your app.config. The “contract name” that’s in the generated <endpoint ... contract="contract name"> is not necessarily the fully qualified name of the data contract class in the generated Reference.cs.

    Instead, Visual Studio emits

        [ServiceContractAttribute(ConfigurationName="contract name")]
        public interface YourContract {
                ....
        }
    

    The ConfigurationName is the same as in the <endpoint ... contract="..."> element, that’s how WCF finds the endpoint configuration.

    In Mono, since we don’t support config file generation yet, we emit

        [ServiceContractAttribute]
        public interface YourContract {
                ....
        }
    

    Without the ConfigurationName argument, the default is the fully qualified name of that interface.

    How to fix your problem

    To get this to work, you need to edit your app.config file and use the fully qualified name of your service contract interface in the <endpoint ... contract="..."> element.

    In your case, changing contract="ServiceReference1.IService1" into contract="TestServer.IService1" should do it.

    Otherwise, look into the generated Reference.cs, search for an interface with a [ServiceContractAttribute] and which C# namespace it is in.

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

Sidebar

Related Questions

Hej guys, I wrote a little php script which access a database and simply
Hej I am trying to load an (embedded) image in a wpf application, using
hej guys, I am trying to solve this homework. I have reached a dead
Hej, I'd like to produce high quality PDFs from matplotlib plots. Using other code,
This my method in my repository: public List<Question> getallquestion() { var hej = from
Hej guys, I was wondering if you know any well working Math or Calculation
Hej, I am using the httpBinding / netTcpBinding in my WCF service, I am
Hej, im currently trying to get AudioRecord to work. Because I need it in
Hej everyone, I'm trying to update my autoconf since I need version 2.62 or
Hej Buddies! I'm trying to create a mock for an interface like the one

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.