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

  • Home
  • SEARCH
  • 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 385311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:28:03+00:00 2026-05-12T15:28:03+00:00

I am working on a REST WCF project and when I implement the following

  • 0

I am working on a REST WCF project and when I implement the following code, it complains that it can’t resolve the WebGet class? What am I missing?

I tried importing the System.ServiceModel.Web namespace but it can’t find it even though I referenced it. The “Web” in System.ServiceModel.Web does not register when I register it in a using statement on top of my code.

Basically, what do I need to implement such WCF REST concepts like WebGet, WebInvoke, UriTemplate, etc?

UPDATE: After some feedback and thinking about this a little bit more what I’ve done, it seems that the DLLs (System.ServiceModel & System.ServiceModel.Web) do not come up via the ‘Add Reference’ window when I go to add a project reference. When I first started the project, FYI, since these assemblies did not come up at first, I went ‘searching’ for them, and copied them to a temp folder so I can reference them and thus, I guess I am having the resolve issues. So, now that I am at this point, how can I get my VS to recognize/register these WCF REST DLLs? Thanks!

UPDATE: I believe I am update-to-date on everything: developing on VS 2008 SP1 – I try to download the latest SPs, downloaded the REST Preview 2 Starter Kit, developing against 3.5 Framework, trying to create a WCF REST layer to ultimately be consumed by Silverlight 2 client.

This is what I have:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using UtilityClasses;
using Microsoft.ServiceModel.Web;
using Microsoft.Http;

namespace WcfRestService
{
    [ServiceContract]
    public interface IRestService
    {
        [OperationContract(Name = "Add")]
        [WebGet(UriTemplate = "/")]   // ** can't compile here **
        int Add();
    }

}

Any advice will be greatly appreciated it.

  • 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-12T15:28:03+00:00Added an answer on May 12, 2026 at 3:28 pm

    This happened to me too.

    I did this:

    1. Delete System.Service.Web from References
    2. Build
    3. Clean Project
    4. Add System.Service.Web to References
    5. Build

    ..and VS found it??

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

Sidebar

Ask A Question

Stats

  • Questions 217k
  • Answers 217k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here is a script which does that. See Windows PowerShell… May 12, 2026 at 11:28 pm
  • Editorial Team
    Editorial Team added an answer Use a dict comprehension (Python 2.7 and later): {key: value… May 12, 2026 at 11:28 pm
  • Editorial Team
    Editorial Team added an answer So confusing, your perl code just outputs html without any… May 12, 2026 at 11:28 pm

Related Questions

Have you ever seen a good reason to create a custom binary rest protocol
I am wanting to expose some data service endpoints for internal application use and
What is the best approach to implementing authorisation/authentication for a Windows Forms app talking
I am working on a REST API for a web application that up until

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.