Error message (The specific error message is forgotten, the following error message is a similar one found on the Internet):
Server error in "/" application. The type "Wcfservicestudy.wcfservice" provided as a service property value in the ServiceHost directive cannot be found. Description: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace information For more information about the error and the source of the error in your code. Exception Details: System.InvalidOperationException: Unable to find the type ' wcfservicestudy.wcfservice ' provided as a service property value in the ServiceHost directive. SOURCE Error: An unhandled exception was generated during the execution of the current WEB request. You can use the following exception stack trace information to determine information about the cause of the exception and where it occurred. Stack trace: [InvalidOperationException: Could not find type ' wcfservicestudy.wcfservice ' provided as a service property value in the ServiceHost directive. ] System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (String constructorstring, uri[] baseaddresses) +4073430 System.ServiceModel.HostingManager.CreateService (String normalizedvirtualpath) +11659180 System.ServiceModel.HostingManager.ActivateService (String Normalizedvirtualpath) +42 System.ServiceModel.HostingManager.EnsureServiceAvailable (String Normalizedvirtualpath) +479[ ServiceActivationException: The service "/WCFSERVICESTUDY/WCFSERVICE.SVC" could not be activated due to an exception during compilation. The exception message is: Unable to find the type ' wcfservicestudy.wcfservice ' provided as a service property value in the ServiceHost directive. ] System.ServiceModel.AsyncResult.End (IAsyncResult Result) +11530250 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End (IAsyncResult result) +194 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous (HttpApplication context, Boolean Flowcontext) +176 System.ServiceModel.Activation.HttpModule.ProcessRequest (Object sender, EventArgs e) +278 system.we B.synceventexecutionstep.system.web.httpapplication.iexecutionstep.execute (+68) System.Web.HttpApplication.ExecuteStep (IExecutionStep step, boolean& completedsynchronously) +75
How to resolve:
Set up the virtual directory directly as an application.
On the IIS site, right-----convert to application----in the popup screen, click OK, ok!
Small bet
I am deploying a WCF application.
Copyright: jiankunking Source: http://blog.csdn.net/jiankunking This article is copyright to the author and Csdn, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original connection.
WCF cannot find the type "Wcfservicestudy.wcfservice", which is provided as Servi in the ServiceHost directive