Click here to Skip to main content
15,878,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I wanted to programm a 'WCF Service Application' in Visual Studio 2010 SP1. I started with a new Project Template, but when i try to debug the project, there is no test-site in the Browser. I always get this error:

Server Error in '/' Application.
"The type 'TestService.Service1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found"

I didn't change something in the examle project, so i think there is an installation problem on my Windows 7 computer. I copied the project to an other computer with Visual Studio 2010 and there was no error when i try to debug.

Do you have some hints for me, what i have to install?
Posted
Comments
Prasad Avunoori 6-Feb-14 4:26am    
Build the solution project by project.
Member 8261538 6-Feb-14 6:23am    
There is only one project in my solution. I create a complete new solution and project without any changes from the template. As i already wrote, I can start the WCF Service Application, when i copy the project files to an other computer. I think there is something wrong with my configuration, but i did't find the reason.
Prasad Avunoori 6-Feb-14 23:22pm    
Check the Service attribute value in the ServiceHost directive. Is it Same as your Namespace.Class of your .svc file?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900