473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Errors Creating WCF Service Contract Interface

I am "Walking Through" the VB Team's walkthrough of WCF support in VS2008.
In the IService interface the <ServiceContract()indicates an error "Type 'ServiceContract' is not defined" and both <OperationContract()are indicate "Type 'OperationContract' is not defined.

Any help?
Dec 24 '07 #1
3 5468
"Burton Roberts" <bh*********@yahoo.comwrote in
news:#2**************@TK2MSFTNGP06.phx.gbl:
In the IService interface the <ServiceContract()indicates an error
"Type 'ServiceContract' is not defined" and both
<OperationContract()are indicate "Type 'OperationContract' is not
defined.
You need the import the proper namespace (System.ServiceModel)

You may also have to reference the right DLL, or install WCF onto your
machine.

--
sp**********@rogers.com (Do not e-mail)
Dec 25 '07 #2
Thanks, Spam Catcher
That's all it was. I needed to add the reference to the dll and add the
imprts statement. Funny that the walkthrough doesn't tell you that, or that
the ServiceModel dll isn't automatically referenced when when you create a
WCF project.

"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
"Burton Roberts" <bh*********@yahoo.comwrote in
news:#2**************@TK2MSFTNGP06.phx.gbl:
>In the IService interface the <ServiceContract()indicates an error
"Type 'ServiceContract' is not defined" and both
<OperationContract()are indicate "Type 'OperationContract' is not
defined.

You need the import the proper namespace (System.ServiceModel)

You may also have to reference the right DLL, or install WCF onto your
machine.

--
sp**********@rogers.com (Do not e-mail)

Dec 27 '07 #3
Hi,

I am getting the same error.
How did you fixed it.?
Please include as much details as possible since I am very new at this.
Thanks
Ray

"Burton Roberts" wrote:
I am "Walking Through" the VB Team's walkthrough of WCF support in VS2008.
In the IService interface the <ServiceContract()indicates an error "Type 'ServiceContract' is not defined" and both <OperationContract()are indicate "Type 'OperationContract' is not defined.

Any help?
Mar 24 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: SH | last post by:
I wish to create a program (really a Windows Service) that sits and waits for a client PC to communicate with it, but I can't come up with a good method of doing so. I want to have a service...
3
by: Baheri | last post by:
Can some some guide me to a good link on how to throw errors in a webservice? Also if there is a standard way of defining different degress of erros while exposing your webservice to thrid parties?...
0
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported...
3
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have just created a WCF service that is using WShttpbasic and all is good when another .net 3.0 application consumes it. However, I have legacy apps that must use this service and are running on...
0
by: =?Utf-8?B?QW5keSBZdQ==?= | last post by:
Hi, I'm trying to return exceptions from a WCF Service using FaultExceptions. I got the service compiled and running. But I get an error while adding a service reference to it. The error reads: "...
0
by: =?Utf-8?B?UmljaGFyZCBDb2xsZXR0ZQ==?= | last post by:
My goal is to connect a WSE 3.0 client to a WCF asp.net hosted service, utilizing MTOM encoding and if at all possible, streamedRequest transfer mode. I am starting with a basic Hello World...
2
by: =?Utf-8?B?S2lrZQ==?= | last post by:
Hello, I need to be able to somehow wrap calls made through a standard Interface used to access a WCF service. The reason for this is to have a higher degree of control, mainly to catch all...
9
by: Hakan Fatih YILDIRIM | last post by:
Hi all, Ý am working aboot WCF. and i have some problems. I created 2 interfaces containing attribute at the top of them.and i want to create two classes implementing these interfaces.One class...
2
by: adwest | last post by:
Forgive me if this is a foolish question. I "play" in Access and have only created a few rather simple relational databases. My knowledge and experience is limited. I have no formal training, just...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.