WCF debugging Exception information: The type "" is not found, provided as a Service attribute value in the ServiceHost directive, or in the configuration element system.servicemodel/servicehosting

Source: Internet
Author: User
Tags stack trace

Server error in the "/commonhelpservices" application.

The type ' JianKunKing.Common.CommonHelp.Services.Service1 ' is not found, it is provided as a Service attribute value in the ServiceHost directive, or in the configuration element system.servicemodel Available in/servicehostingenvironment/serviceactivations.

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: The Type "JianKunKing.Common.CommonHelp.Services.Service1" is not found, it is in ServiceHost The Service attribute value is provided in the directive, or is provided in the configuration element system.servicemodel/servicehostingenvironment/serviceactivations.

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: The type ' JianKunKing.Common.CommonHelp.Services.Service1 ' is not found, it is provided as a Service in the ServiceHost directive The attribute value, or provided in the configuration element system.servicemodel/servicehostingenvironment/serviceactivations. ]
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (String constructorstring, uri[] baseaddresses ) +52914
System.ServiceModel.HostingManager.CreateService (String Normalizedvirtualpath) +1461
System.ServiceModel.HostingManager.ActivateService (String Normalizedvirtualpath) +44
System.ServiceModel.HostingManager.EnsureServiceAvailable (String Normalizedvirtualpath) +651

[ServiceActivationException: The Service "/COMMONHELPSERVICES/SERVICE1.SVC" could not be activated due to an exception during compilation.) The exception message is: The type "JianKunKing.Common.CommonHelp.Services.Service1" is not found, it is provided as a Service attribute value in the ServiceHost directive, or in the configuration element Available in System.servicemodel/servicehostingenvironment/serviceactivations: ]
System.Runtime.AsyncResult.End (IAsyncResult result) +688334
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End (IAsyncResult result) +190
System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest (IAsyncResult ar) +304886
System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion (IAsyncResult ar) +94


Version information: Microsoft. NET Framework Version: 4.0.30319; ASP. NET version: 4.0.30319.1025


Debugging WCF today, there is a strange phenomenon is to browse the. svc file when the above error occurred, when the client calls the function, there is a function in the "Object Browser View" is there, but in other projects through the client class instance referencing the function, it is not really found, There is no problem with the implementation of the WCF interface and the corresponding class.

Baidu has made a lot of information, but also wood to find a viable solution, finally delete the SVC and its corresponding interface file, re-added a WCF service, and then put the previous SVC and interface code copied over, done!

Always wood has found the reason, hope to know people, leave a message.


WCF debugging Exception information: The type "" is not found, provided as a Service attribute value in the ServiceHost directive, or in the configuration element system.servicemodel/servicehosting

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.