Reputation: 7203
When trying to run or reference the service project I get this error:
The type 'MyCompany.MyNameSpace.MyType', provided as the Service attribute value in the ServiceHost directive could not be found.
Where to look to fix this?
Edit: This is while running under the buit in vs 2008 cassini.
Upvotes: 0
Views: 252
Reputation: 65594
WCF, Service attribute value in the ServiceHost directive could not be found
Upvotes: 0
Reputation: 12135
The error message means that the type specified as the Service type couldn't be loaded. Type loading problems can be debugged using the Fusion loader log. See here for a good explanation.
Upvotes: 2
Reputation: 73
Check your svc html file for the tag: <%@ ServiceHost Language="C#" Debug="true" Service="Service" CodeBehind="~/App_Code/Service.cs" %>
If explicitly setup in IIS make sure the virtual folder is a web application
Upvotes: 0