Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista technology newsgroups > Indigo

"This service has no endpoint defined"

Reply
 
Thread Tools Display Modes
Old 02-10-2008   #1 (permalink)
Trapulo
Guest
 
Posts: n/a

"This service has no endpoint defined"

I have this error starting VS2008 debug on a WCF library project:
"The service cannot be started. This service has no endpoint defined. Please
add at least one endpoint for the service in config file and try again."


I defined well contract, but it seems there is some error.

My contract is:
Namespace BLL

<ServiceContract()> _

Public Interface ICrud

Inherits ICrud(Of BusinessEntities.Company)

End Interface

End Namespace



<ServiceContract()> _

Public Interface ICrud(Of t)

<OperationContract()> _

<TransactionFlow(TransactionFlowOption.Allowed)> _

Function Create(ByVal item As t) As t

<OperationContract()> _

<TransactionFlow(TransactionFlowOption.Allowed)> _

Sub Update(ByVal item As t)

<OperationContract()> _

<TransactionFlow(TransactionFlowOption.Allowed)> _

Sub Delete(ByVal item As t)

End Interface



Then I have a class that implements that interface:

Namespace BLL

Public Class Crud

Implements ICrud

<OperationBehavior(transactionscoperequired:=True)> _

Public Function Create(ByVal item As BusinessEntities.Company) As
BusinessEntities.Company Implements BLL.ICrud.Create

.....



And, at least, my app.config has defined the endpoint:

<endpoint address="Crud" binding="wsHttpBinding"
bindingConfiguration="Transactional"

contract="Fullnamespace.BLL.ICrud">



But I still have that error message.

What is wrong?



thanks










  Reply With Quote

Reply

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48