The type <service>, provided as the Service attribute value in the ServiceHost directive could not be found.
February 26, 2008
I recently had a tough time to resolve this issue.
The problem: The WCF service stopped working without any “breaking” changes done
The exception: The type <xxxxx> provided as the Service attribute value in the ServiceHost directive could not be found. (Complete stack-trace below).
The solution: The class name (aka. type) was missing the complete signature. As my project assembly is strong named and GACed, the declaration should be “type, assembly, version, culturePublicKeyToken”).
Earlier declaration: <% @ServiceHost Language=C# Debug=”true” Service=”typeXXXXX” %>
The corrected declaration: <% @ServiceHost Language=C# Debug=”true” Service=”typeXXXX, assembly,version=1.0.0.0, culturePublicKeyToken=xxxx” %>
October 14, 2008 at 8:48 am
could u please write the below declaration with some example?
October 14, 2008 at 8:49 am
“”
October 14, 2008 at 8:49 am
typeXXXX, assembly,version=1.0.0.0, culturePublicKeyToken=xxxx
June 23, 2009 at 2:38 am
Thank you, this helped me with when I tried to move all the assemblies to the GAC only for deployment.
August 10, 2009 at 11:01 am
Build the solution first, and then a add a service reference.
July 20, 2010 at 3:20 pm
Thanks it worked
August 13, 2009 at 8:49 pm
Try to check your spelling in svc. Because it must use case sensitive letter.
August 19, 2009 at 8:53 am
Thanks Ravi,
The rebuild trick worked.
November 18, 2009 at 11:53 am
Thanks! The documentation I read said the assembly could be in the GAC but it would have been helpful if they had mentioned the @ServiceHost requirements in order to make that work! I appreciate you taking the time to share this.
February 11, 2010 at 4:10 pm
[…] https://dennyonline.wordpress.com/2008/02/26/the-type-service-provided-as-the-service-attribute-value… […]
April 28, 2010 at 8:22 am
I had same problem, I tried different ways,none of them worked, but my problem or solution was about have wrong namespace in the code, like:
namespace MyCompany.MyProject
{
public class HHTInterface : IHHTInterface
{
}
}
by removing the namespace problem solved.
July 22, 2010 at 1:22 am
Thanks, This helped me resolve my problem.
October 13, 2011 at 8:02 am
Following is the error that i am getting in someone’s code which i have to modify.I dont have any experience regarding WCF but have initial knowledge
Error:The type ‘Springwell.RestServices.DataService’, provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.
Below is the structur of my Webconfig file:
October 13, 2011 at 8:04 am
March 23, 2012 at 12:57 pm
change the build output path to “bin\” if not set and then run
December 28, 2012 at 10:03 am
For anyone else wondering, this directive can be found in the .svc file itself, you need to edit it using “Open With…”
May 18, 2013 at 5:48 pm
At last, after surfing http://dennyonline.wordpress.
com/2008/02/26/the-type-service-provided-as-the-service-attribute-value-in-the-servicehost-directive-could-not-be-found/ for some time, I got a blog from which
I was able to actually discover helpful details regarding the studies and the knowledge
that I want. There need to be more things like this on Serendipity