dexter
dexter

Reputation: 7203

How to debug this WCF error?

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

Answers (3)

Chris Dickson
Chris Dickson

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

jtstroup
jtstroup

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

  • 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

Upvotes: 0

Related Questions