troubleshooting Question

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

Avatar of icemokka
icemokkaFlag for Belgium asked on
WCF
2 Comments1 Solution2223 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
icemokka

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros