Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts

2008-10-08

ECO, Winforms, ASP.NET, and WCF

The technologies I used in an app I wrote for friends recently. The app manages properties at different locations, bookings, and tariffs. In addition to this the application (which uses SQLite) connects to their website using WCF and updates their database so that people can check prices and availability.

I need to get them using it now so that there is data available by the time I put up the website, but I thought I'd share the app source anyway. Don't be afraid to run it and click Publish, it will only publish to your local machine, I'm not that stupid :-)

There source is available here.

2008-08-14

The contract name could not be found in the list of contracts implemented by the service

When trying to add a service reference to my SilverLight project I kept getting this error message

The contract name xxxxxxx could not be found in the list of contracts implemented by the service

I looked around the web and couldn't find anything of any use (yes, I had added ServiceContract to my interface). The solution was really simple! In my Web.Config I had the wrong interface defined. IApplicationService was defined in another assembly, one I had added a namespace to, so I additionally needed to add the namespace before the interface name.

All I then had to do was to add the following attribute to the service implementing the interface and it seemed to import fine.

[AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]