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.
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.