HighTechTalks DotNet Forums  

Errors Creating WCF Service Contract Interface

Dotnet Framework (Webservices) microsoft.public.dotnet.framework.webservices


Discuss Errors Creating WCF Service Contract Interface in the Dotnet Framework (Webservices) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Burton Roberts
 
Posts: n/a

Default Errors Creating WCF Service Contract Interface - 12-24-2007 , 03:01 PM






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?

Reply With Quote
  #2  
Old   
Spam Catcher
 
Posts: n/a

Default Re: Errors Creating WCF Service Contract Interface - 12-25-2007 , 12:22 PM






"Burton Roberts" <bhroberts52 (AT) yahoo (DOT) com> wrote in
news:#2yDcfmRIHA.4272 (AT) TK2MSFTNGP06 (DOT) phx.gbl:

Quote:
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.

--
spamhoneypot (AT) rogers (DOT) com (Do not e-mail)


Reply With Quote
  #3  
Old   
Burton Roberts
 
Posts: n/a

Default Re: Errors Creating WCF Service Contract Interface - 12-26-2007 , 08:46 PM



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" <spamhoneypot (AT) rogers (DOT) com> wrote

Quote:
"Burton Roberts" <bhroberts52 (AT) yahoo (DOT) com> wrote in
news:#2yDcfmRIHA.4272 (AT) TK2MSFTNGP06 (DOT) 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.

--
spamhoneypot (AT) rogers (DOT) com (Do not e-mail)



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.