Job Search
  |  Blog
  |  Contact
  |  Site Map
  |  Home
  |  

Visual Studio and WCF Tips and Tricks

Blog Date: 4/25/2008

Recent Blogs

<< Back

XML & XSD traversing with XPath and XmlDocument 4/22/2008

System.ServiceModel.CommunicationException: The un 4/23/2008

VSLive 2008 for Visual Studio in Orlando 4/24/2008

 More Blogs...
 

IT Jobs Hiring


Business Intelligence Programmer Analyst North Chicago, IL

.NET Developer - PROVEN, Inc. San Diego, CA

More jobs...
 

Visual Studio Step Through Code while Debugging in Debug Mode

DebuggerStepThrough()

 

WCF Errors (Windows Communication Foundation)

The type 'TheCompany.DocumentService.ServiceImplementation.MyService1', provided as the Service attribute value in the ServiceHost directive could not be found.

[InvalidOperationException: The type 'TheCompany.DocumentService.ServiceImplementation.MyService1', provided as the Service attribute value in the ServiceHost directive could not be found.]
   System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +4189701
  
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +516
  
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +31
  
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +498 

[ServiceActivationException: The service '/WcfHost/HostService1.svc' cannot be activated due to an exception during compilation.  The exception message is: The type 'TheCompany.DocumentService.ServiceImplementation.MyService1', provided as the Service attribute value in the ServiceHost directive could not be found..]
  
System.ServiceModel.AsyncResult.End(IAsyncResult result) +4413209
  
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +183
  
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +205
  
System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +322
  
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
  
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64



Check your ".svc" file and make sure your directive has been updated.

<% @ServiceHost Service="TheCompany.DocumentService.ServiceImplementation.MyService1" %>



4/25/2008 9:31:14 AM