开发者

wcf service not found when installing on iis6 on server 2003

开发者 https://www.devze.com 2023-04-03 02:21 出处:网络
I have made a WCF service with VS 2010. I am trying to install on a server 2003 with iis6. When I try to browse the the svc file I get:

I have made a WCF service with VS 2010. I am trying to install on a server 2003 with iis6. When I try to browse the the svc file I get:

The type 'wcfBkesher.EvalService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The type 'wcfBkesher.EvalService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: The type 'wcfBkesher.EvalService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.]

System.ServiceModel开发者_如何学Python.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +52174

System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1440

System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44

System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +615

[ServiceActivationException: The service '/bkwcf/EvalService.svc' cannot be activated due to an exception during compilation. The exception message is: The type 'wcfBkesher.EvalService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found..] System.Runtime.AsyncResult.End(IAsyncResult result) +687598

System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190

System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, String routeServiceVirtualPath, Boolean flowContext, Boolean ensureWFService) +234

System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +355

System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

I have set the asp.net tab to version 4 My svc file:

<%@ ServiceHost Language="C#" Debug="true" Service="wcfBkesher.EvalService" CodeBehind="EvalService.svc.cs" %>

My web.config:

<?xml version="1.0"?>
<configuration>

       <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel><services>
   <service name="wcfBkesher">
      <endpoint address="http://mywebaddress/bkwcf/.EvalService.svc" 
    binding="basicHttpBinding" bindingConfiguration="" contract="wcfBkesher/IEvalService" 
    listenUri="/" isSystemEndpoint="true" />       
    </service>    
</services> 
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
<bindings>
       <basicHttpBinding>
          <binding maxBufferSize="100"
                   maxReceiveBufferSize="100" />
       </basicHttpBinding>
    </bindings>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 



  </system.serviceModel>
 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>

</configuration>
0

精彩评论

暂无评论...
验证码 换一张
取 消