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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

apeterCommented:
Can we see ur Interface file(service host) and the class file which hosts it.
0
icemokkaAuthor 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WCF

From novice to tech pro — start learning today.