WCF Service in VS.Net 2010 (provided as the Service attribute value in the ServiceHost directive)

Hi,

 

I'm building my first WCF Service in VS.Net 2010 RC on a Win7 Ent 64.

But when I launch my Service (ASP .Net Development Server) for debug and click on the .svc file, I get following error :

 
The type 'Systemat.Software.Services.PopsyWS.PopsyWebService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

 

My Project is in the namespace "Systemat.Software.Services.PopsyWS", Assembly Name is "PopsyWebService",Service Name is "PopsyWebService" derived from "IPopsyWebService". All compile options are set on x86.

My code behind is in the file PopsyWebService.svc.cs

My svc file has <%@ ServiceHost Language="C#" Debug="true" Service="Systemat.Software.Services.PopsyWS.PopsyWebService" CodeBehind="PopsyWebService.svc.cs" %>

I also tried PopsyWebService.PopsyWebservice with the same result (stating Type 'PopsyWebService.PopsyWebservice' was not found offcourse)

Pretty sure on of those two is the correct one but neither of them work. Other posts talk about problems with the GAC but I don't think this has anything to do with my problem.

 

A new empty (example) project of a WCF Service works correctly so it's a project specific problem.

 

Any idea's ?

 

Thanks in advance,

Sven Peeters
LVL 2
icemokkaAsked:
Who is Participating?
 
icemokkaConnect With a Mentor Author Commented:

I got an anwser on a msdn forum (thanks to Mog Liang) : http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/023b1a5d-66e7-423c-805d-be41ac2c4c34

I think I found a little bug in VS.2010
0
 
apeterCommented:
Can we see ur Interface file(service host) and the class file which hosts it.
0
All Courses

From novice to tech pro — start learning today.