4
Answers

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

Sven

Sven

9y
30.8k
1

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

Attachment: PopsyWS.zip

Answers (4)