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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:56:02+00:00 2026-05-28T14:56:02+00:00

I have a WCF Service application project , a class library project (acts as

  • 0

I have a WCF Service application project , a class library project(acts as a proxy betwen the service and the client) and a Asp.net web project.

Now in the WCF Service application project, I have the method GetData(int) [the default one]

public class Service1 : IService1
    {
        public string GetData(int value)
        {
            return string.Format("You entered: {0}", value);
        }        
    }

I complied the WCF service project and found it working and henceforth added that as service reference to the Class library project. And written a method as under to fetch the value from the service

public string GetResult(int number)
        {
            string result = "";
            try
            {
                Service1Client sc = new Service1Client();
                result = sc.GetData(number); 
            }
            catch (Exception ex)
            {
               var message = ex.Message;
            }
            return result;
        }

Now this method is being invoked from the Web application. At runtime I am getting an exception

Could not find default endpoint element that references contract ‘ServiceReference1.IService1’ in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

The error is happening at Service1Client sc = new Service1Client();

All the config files are in place….Should I have to create the proxy using SVC util?

What am I missing?

  • 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-05-28T14:56:03+00:00Added an answer on May 28, 2026 at 2:56 pm

    Are you sure you have apropriate configuration for wcf placed in web.config? It seems you don’t.

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

Sidebar

Related Questions

I have a WCF Web application that uses a WCF Class Library. My project
I have a project consisting of three projects, WCF service Asp.net MVC 3 application
I have added WCF Service Application project type to my VS solution(4.0). Now, the
I have a WCF Web Service which is referenced from a class library. After
I have developed a Web service using WCF Service Application. This service application is
I have client application that uses WCF service to insert some data to backend
I have a windows application that acts as a WCF Service that I developed
I created a WCF service library project in my solution, and have service references
I have 3 projects in my solution: 1) A silverlight Application Project 2) ASP.Net
I have a RESTful WCF web service called "Palladium" as a project in my

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.