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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:12:41+00:00 2026-06-12T07:12:41+00:00

I am performing the following steps. Created a WCF service using WCF Service Library

  • 0

I am performing the following steps.

  1. Created a WCF service using WCF Service Library

  2. Run and Test the WCF service by pressing F5 in the project (and it runs fine)

  3. Create another project in the same solution in Visual Studio

  4. Add Service Reference to the WCF Service I created earlier in Step 1

However, the new project does not recognize the WCF Service I created in Step 1. How can I consume a WCF Service created in a different project?
The same service call works fine when it’s called from the same project. I get a red line on using HelloWorld2;

  using HelloWorld2; 

namespace WebApplication1
{
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       // Helloworld2 client = new Helloworld2();

        // Use the 'client' variable to call operations on the service.
       // Name person = new Name();
       // person.First = "Adam";
       // person.Last = "Smith";

       // Response.Write(person.First);


    }
}

}

  • 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-12T07:12:42+00:00Added an answer on June 12, 2026 at 7:12 am

    It was because I was missing the code where you add references

    ServiceReference2.Helloworld2Client cc = new ServiceReference2.Helloworld2Client();
    ServiceReference2.Name person = new ServiceReference2.Name();

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

Sidebar

Related Questions

Okay, I get that performing the following will create an array of my string
The following method shows up as leaking while performing a memory-leaks test with Instruments:
After performing a Menubar> Project> Clean... I get the following error in the errorlog:
I'm using 3rd party library JInt (the JavaScript interpriter) which was working fine until
Is there a more efficient way of performing the following calculation? It works fine,
I have the following exec task, performing checkin of assemblyinfo.cs files. I'm trying to
One user of a website that I support receives the following error whenever performing
Okay, this is following on from my previous question reguarding performing a simple ajax
Occasionally when performing a rebase using the MercurialEclipse plugin my repository gets thrown into
I've created an MSI using WiX. I'm trying to register .NET components for COM

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.