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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:47:50+00:00 2026-05-23T17:47:50+00:00

I have created a wcf service called ServiceIRE. I add a service reference to

  • 0

I have created a wcf service called ServiceIRE. I add a service reference to my project by right clicking on th eproject in solution explorer and clicking add Service Reference. I am able to discover my created service and click ok after specifying the namespace ServiceReference1. All files seem to be generated properly.

I then go to the codebehind and try to add a using statment “using ServiceReference1;”. This is unrecognized by the file even though the namespace apparently exists in the same project.

Any help would be greatly appreciated.

ServiceIRE.cs

namespace FakeIREServiceLibrary
{

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class ServiceIRE : IServiceIRE
{
    public string GetData()
    {
        Random rnd = new Random();
        var randomNumber = rnd.Next(10);
        Random rndID = new Random();
        var randomNumberID = rnd.Next(10000);
        Thread.Sleep(randomNumber*1000);
        return string.Format("Thread # {0} returned in {1} nanoseconds", randomNumberID, rnd.Next());
    }


}

IServiceIRE.cs

namespace FakeIREServiceLibrary
{

    [ServiceContract]
    public interface IServiceIRE
    {
        [OperationContract]
        string GetData();

    }
}

Page.aspx.cs

using ServiceReference1; //THIS IS NOT RECOGNIZED

Thank you in advance 🙂

  • 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-23T17:47:51+00:00Added an answer on May 23, 2026 at 5:47 pm

    What’s the default namespace for your project?

    I believe you have to do something like “using DefaultNamespaceForProject.ServiceReference1;”

    You can find the default namespace by right clicking your project.. clicking Properties, and then going to the Application tab.

    • 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 service called Palladium that is created as a project
I have a RESTful WCF web service called "Palladium" as a project in my
I have created a WCF service for uploading images , which accepts System.IO.Stream as
We have created a WCF service hosted in a windows service that handles Authentication
I am a WCF / Security Newb. I have created a WCF service which
We have created a WCF RESTful service for a WPF(UI) Application. The UI sends
I have created a web service via WCF. Then I exposed it as a
I have a Data Service created using WCF that internally uses nHibernate. This WCF
I am trying to write my first WCF project. I have created a project
Created a WCF service that is being called by a Silverlight app. Both reside

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.