How can I get rid of the “The target assembly contains no service types” error message in VS2008?

It’s always like that. You search for 2 hours, you eventually end up posting on SO, and 5 minutes later, you find the answer.

In the WCF Options tab of the properties of the project defining the ServiceContract,
there’s a checkbox labelled “Start WCF Service Host when debugging another project in the same solution” that I unchecked.

I’ve no idea how it has been checked in the first place.

Anyway, that solved my problem. See the MSDN Reference for this project setting.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)