Could not find default endpoint element that references contract 'WcfPortal.IWcfPortal'

Could not find default endpoint element that references contract 'WcfPortal.IWcfPortal'

Old forum URL: forums.lhotka.net/forums/t/11159.aspx


smgrisw posted on Tuesday, February 14, 2012

Hello,

I am using CSLA version 4.3.1.0 and Silverlight 5.  I am getting an error message that is very strange.  When I try to create a new business object I am getting an error Could not find default endpoint element that references contract 'WcfPortal.IWcfPortal.  I do not have an endpoint with the name.  I could find no reference in my code that says WcfPortal.IWcfPortal.  Does anyone know why I would be getting a message for and endpoint contract name that does not exist in my code?

 

Thanks,

 

 

 

RockfordLhotka replied on Tuesday, February 14, 2012

Did you set the data portal url as the app starts up? The data portal defaults to using the WCF proxy to talk to an app server, but you need to supply the url for the server.

The contract you are seeing is the data portal contract.

Or you can set the proxy name to Local to run the data access code on the client. Obviously that has a whole other set of implications.

The Using CSLA 4: Data Portal Configuration book has a lot of detail on all the various configuration options.

smgrisw replied on Friday, February 17, 2012

Dear Mr. Lhotka,

Than you for your response.  Your answer pointed me in the right direction and I was able to resolve my issue.

 

Regards,

 

Scott Griswold

 

Copyright (c) Marimer LLC