WCF, Service de la valeur de l'attribut dans la ServiceHost la directive n'a pas pu être trouvé

Je suis en train d'héberger mon service avec IIS 6, mais je continue à obtenir cette exception.

    Server Error in '/WebServices' Application.
--------------------------------------------------------------------------------
The type 'QS.DialogManager.Communication.IISHost.RecipientService', provided as the Service attribute value in the ServiceHost directive could not be found. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
Exception Details: System.InvalidOperationException: The type 'QS.DialogManager.Communication.IISHost.RecipientService', provided as the Service attribute value in the ServiceHost directive could not be found.
Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
Stack Trace: 
[InvalidOperationException: The type 'QS.DialogManager.Communication.IISHost.RecipientService', provided as the Service attribute value in the ServiceHost directive could not be found.]
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +6714599
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +604
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +46
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +654
[ServiceActivationException: The service '/WebServices/dm/RecipientService.svc' cannot be activated due to an exception during compilation.  The exception message is: The type 'QS.DialogManager.Communication.IISHost.RecipientService', provided as the Service attribute value in the ServiceHost directive could not be found..]
System.ServiceModel.AsyncResult.End(IAsyncResult result) +15626880
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +15546921
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +265
System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +227
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 

Je n'ai absolument aucune idée, sauf qu'il semble qu'il ne trouve pas mon assemblées. Le code doit être correctement compilé avec les classes publiques.

Voici mon .svc fichier:

<%@ ServiceHost Language="C#" Debug="true" Service="QS.DialogManager.Communication.IISHost.RecipientService" CodeBehind="RecipientService.svc.cs" %>

J'ai essayé de créer un très très simple service qui contient juste rien à voir si ce serait le travail, mais encore la même vieille erreur s'affiche.

The type 'IISHost.Service1', provided as the Service attribute value in the ServiceHost directive could not be found. 
  • Pouvez-vous montrer le contenu de service.svc?
  • Si il référence à un pré-compilé type dans une assemblée, avez-vous le copier dans le répertoire bin dans le vroot?
  • <%@ ServiceHost Language="C#" Debug="true" Service="QS.DialogManager.De la Communication.IISHost.RecipientService" CodeBehind="RecipientService.svc.cs" %>
  • Merci pour ce détachement, votre Q&A juste fixé le même problème pour moi.
  • Commentaire puisque je ne peux pas Enregistrer apparemment...
  • merci!! Pour moi, c'était le dossier bin c'est le répertoire est incorrect. Déplacé d'un niveau et c'est tout.

InformationsquelleAutor nandarya | 2009-04-06