Click here to Skip to main content
13,662,176 members
Rate this:
 
Please Sign up or sign in to vote.
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 5-Feb-14 21:28pm
Comments
Prasad Avunoori 6-Feb-14 4:26am
   
Build the solution project by project.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.180810.1 | Last Updated 6 Feb 2014
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100