Print Page | Close Window

Custom server configuration error

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4129
Printed Date: 10-Apr-2025 at 6:29pm


Topic: Custom server configuration error
Posted By: morahman
Subject: Custom server configuration error
Date Posted: 26-Apr-2013 at 7:55am
I followed the directions provided in the link  http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-server-servicemodel - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-server-servicemodel   for custom server side configuration.

First in the Debug output Window I see the following message,
"Could not find endpoint element with name 'EntityService' and contract 'IdeaBlade.EntityModel.IEntityServiceContract' in the ServiceModel"

Then when I put the url   http://localhost:8000/EntityService.svc/sl - http://localhost:8000/EntityService.svc/sl  in the browser I get the following InvalidOperationException,

The contract name 'IdeaBlade.EntityModel.IEntityServiceContract' could not be found in the list of contracts implemented by the service 'EntityService'.

In web.config I'm seeing the following message thrown by the XML editor for "EntityService" name
The name attribute is invalid - The value 'EntityService' is invalid according to its dataType 'serviceNameType'- The Enumeration constraint failed.

What am I doing wrong.

Thanks



Replies:
Posted By: kimj
Date Posted: 26-Apr-2013 at 9:12am
That page you're using as reference is for DevForce 2010, and we did make a few changes in this area in DF 2012. Corrected information is available here - http://drc.ideablade.com/devforce-2012/bin/view/Documentation/code-sample-custom-server-servicemodel - http://drc.ideablade.com/devforce-2012/bin/view/Documentation/code-sample-custom-server-servicemodel .

The EntityService should use a contract name of "IdeaBlade.EntityModel.Server.IEntityServiceContract", while the EntityServer should use "IdeaBlade.EntityModel.Server.IEntityServerContract".

The Intellisense error while viewing the XML is actually harmless, as DevForce will still find the endpoints. If you want to remove the error see the section "Service Names" in the page linked about.



Print Page | Close Window