WCF cannot find the type "Wcfservicestudy.wcfservice", which is provided as Servi in the ServiceHost directive

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.