0

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.

dexter
  • 7,063
  • 9
  • 54
  • 71
  • possible duplicate of [WCF, Service attribute value in the ServiceHost directive could not be found. ](http://stackoverflow.com/questions/720807/wcf-service-attribute-value-in-the-servicehost-directive-could-not-be-found) – marc_s Dec 14 '10 at 21:44
  • dont delete - I am not using IIS at this point in any sort or manner... – dexter Dec 14 '10 at 21:46

3 Answers3

2

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.

Chris Dickson
  • 11,964
  • 1
  • 39
  • 60
0

WCF, Service attribute value in the ServiceHost directive could not be found

Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
  • would gladly accept but I am not using IIS, all I am trying is to reference the service from another proj in the solution or run it in cassini. – dexter Dec 14 '10 at 21:45
0
  • 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

  • You can enable WCF tracing by allowing me to link you to my blog post because I am evil and want to generate more traffic to my website to be all important :) http://jtstroup.net/post/Wcf-Tracing.aspx
jtstroup
  • 73
  • 6