Silverlight Video Demo0004 - Could not find default endpoint element that references contract

Silverlight Video Demo0004 - Could not find default endpoint element that references contract

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


ninoarena posted on Tuesday, May 26, 2009

I downloaded the codes for the Silverlight video Demo0004 but getting the following error when I tried running it. 

Csla.Reflection.CallMethodException: NewTestObject method call failed --> Could not find default endpoint element that references contract 'WcfPortal.IWcfPortal' in the ServiceModel client configuration section.

I did not modify any of the demo's svc files or Web.Config file.  I looked at the values and they seem to be fine.  Any help is greatly appreciated.

Thanks.

RockfordLhotka replied on Tuesday, May 26, 2009

Check to make sure the references to Csla.dll are correct in all the projects. It sounds like the web project is missing that reference, which probably means Visual Studio was unable to find the DLL on your hard drive.

ninoarena replied on Tuesday, May 26, 2009

Thanks for the prompt reply.  I checked all my references and they seems to be all in place.  I can rebuild the whole solution without a hitch but when I run the application, I still get the error.

 

RockfordLhotka replied on Tuesday, May 26, 2009

I re-read the text you provided. It refers to the client configuration file, not server. So that seems to indicate a problem in ServiceReferences.clientconfig in the Silverlight app itself, or that the Csla.dll reference in that project isn't correct?

ninoarena replied on Tuesday, May 26, 2009

Could this be caused by Silverlight 3 because the machine I am using has Silverlight 3 installed?  Demo001, 002, 003 all worked fine so I thought that Silverlight 3 would be okay for Demo004 as well.

Copyright (c) Marimer LLC