Windows Vista Beta | WinVistaBeta.com - Message | "This service has no endpoint defined"

October 06, 2008  
Subject: "This service has no endpoint defined"
Group: microsoft.public.windows.developer.winfx.indigo
Date: 2/10/2008 11:41:33 AM
From: "Trapulo" [Email Address Protection]

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











Back