The type '<>, provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.
RSS
I get the error "The type 'WcfFitnessService.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."
Here's what I did:
File->New project
and chose 'WCF Service Application'
I then created a new site in IIS: www.fservice.nl which I pointed to folder: C:\inetpub\fitness-\fitness-service\WcfFitnessService.
But when I call www.fservice.nl/Service1.svc I get: The type 'WcfFitnessService.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 did a Google search,but cant find whats going on for my situation. I must be doing something wrong,cause I dont believe the default settings would throw an error.
The type 'WcfFitnessService.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.
please mark answers as 'Answered' and post back solutions when you figure stuff out that isnt in the post already.
You need to check whether the type, namespace and assembly were setup correctly and the assembly was in the bin folder and security was setup appropriately. Please check the following similar post.
Peter Smith
Contributor
4605 Points
2109 Posts
The type '<>, provided as the Service attribute value in the ServiceHost directive, or provided i...
Dec 29, 2011 10:39 AM|LINK
I get the error "The type 'WcfFitnessService.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."
Here's what I did:
File->New project
and chose 'WCF Service Application'
I then created a new site in IIS: www.fservice.nl which I pointed to folder: C:\inetpub\fitness-\fitness-service\WcfFitnessService.
But when I call www.fservice.nl/Service1.svc I get: The type 'WcfFitnessService.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 did a Google search,but cant find whats going on for my situation. I must be doing something wrong,cause I dont believe the default settings would throw an error.
The type 'WcfFitnessService.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.rkchaudary
Contributor
2524 Points
545 Posts
Re: The type '<>, provided as the Service attribute value in the ServiceHost directive, or provid...
Dec 29, 2011 11:00 AM|LINK
look at this
http://www.laschinger.net/?p=160
http://social.msdn.microsoft.com/Forums/en/wcf/thread/023b1a5d-66e7-423c-805d-be41ac2c4c34
http://stackoverflow.com/questions/720807/wcf-service-attribute-value-in-the-servicehost-directive-could-not-be-found
http://forums.lhotka.net/forums/t/10481.aspx
RkChaudary
blog
Peter pi - M...
Star
12871 Points
1786 Posts
Re: The type '<>, provided as the Service attribute value in the ServiceHost directive, or provid...
Jan 03, 2012 06:10 AM|LINK
Hi,
You need to check whether the type, namespace and assembly were setup correctly and the assembly was in the bin folder and security was setup appropriately. Please check the following similar post.
http://www.thejoyofcode.com/WCF_The_type_provided_as_the_Service_attribute_could_not_be_found.aspx
http://www.byteblocks.com/post/2009/03/10/Error-when-adding-service-reference-for-WCF-service.aspx
</div>Regards,
Peter
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework