Visual Studio and WCF Tips and Tricks
Blog Date: 4/25/2008
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
|