New Posts New Posts RSS Feed: Custom server configuration error
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Custom server configuration error

 Post Reply Post Reply
Author
morahman View Drop Down
Newbie
Newbie
Avatar

Joined: 26-Feb-2012
Location: India
Posts: 3
Post Options Post Options   Quote morahman Quote  Post ReplyReply Direct Link To This Post Topic: Custom server configuration error
    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  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 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
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post 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.

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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down