在server 2003的iis6上安装时未找到wcf服务
我用VS2010做了一个WCF服务。我正在尝试在服务器2003上安装iis6。当我尝试浏览svc文件时,我得到: “wcfBkesher.EvalService”类型作为服务属性提供 ServiceHost指令中的值,或配置中提供的值 要素 system.serviceModel/serviceHostingEnvironment/serviceActivations可以 找不到。描述:测试期间发生未处理的异常 当前web请求的执行。请查看堆栈跟踪 有关错误以及错误来源的详细信息,请参阅 代码 异常详细信息:System.InvalidOperationException:类型 “wcfBkesher.EvalService”,作为中的服务属性值提供 ServiceHost指令,或在配置元素中提供 system.serviceModel/serviceHostingEnvironment/serviceActivations可以 找不到 源错误: 在执行过程中生成了未处理的异常 当前web请求。关于货物来源和位置的信息 可以使用下面的异常堆栈跟踪来识别异常 堆栈跟踪: [InvalidOperationException:类型为'wcfBkesher.EvalService', 作为ServiceHost指令中的服务属性值提供, 或在配置元素中提供 system.serviceModel/serviceHostingEnvironment/serviceActivations可以 找不到。]在server 2003的iis6上安装时未找到wcf服务,wcf,iis-6,Wcf,Iis 6,我用VS2010做了一个WCF服务。我正在尝试在服务器2003上安装iis6。当我尝试浏览svc文件时,我得到: “wcfBkesher.EvalService”类型作为服务属性提供 ServiceHost指令中的值,或配置中提供的值 要素 system.serviceModel/serviceHostingEnvironment/serviceActivations可以 找不到。描述:测试期间发生未处理的异常 当前web请求的执行。请查看堆栈跟踪 有关错误以及错误来源的详细信息,请参阅 代码
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(字符串 构造函数字符串,Uri[]基地址)+52174
System.ServiceModel.HostingManager.CreateService(字符串 标准化虚拟路径)+1440
System.ServiceModel.HostingManager.ActivateService(字符串 标准化虚拟路径)+44
System.ServiceModel.HostingManager.EnsureServiceAvailable(字符串 标准化虚拟路径)+615 [ServiceActivationException:服务'/bkwcf/EvalService.svc' 由于编译期间出现异常,无法激活 异常消息是:类型“wcfBkesher.EvalService”,提供为 ServiceHost指令中的服务属性值,或 在配置元素中 system.serviceModel/serviceHostingEnvironment/serviceActivations可以 找不到..]System.Runtime.AsyncResult.End(IAsyncResult结果) +687598
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult 结果)+190
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication 上下文,字符串routeServiceVirtualPath,布尔流上下文,布尔 确保服务)+234
System.ServiceModel.Activation.HttpModule.ProcessRequest(对象 发送方,事件参数e)+355
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148 System.Web.HttpApplication.ExecuteTEP(IExecutionStep步骤, 布尔值&同步完成)+75 我已将asp.net选项卡设置为版本4 我的svc文件:
<%@ 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>
您是如何以及如何部署到服务器的?您是否有*.svc文件以及其中包含的内容?您是否已将必要的配置设置放入web.config
??您是否将包含服务实现的程序集部署到虚拟目录的\bin
目录?您的web服务器具有正确版本的.NET?是。我安装了dot net framework 4.0,并将asp.net选项卡更改为版本4。我的svc文件:关于服务实现:我使用“构建部署包”生成了文件。bin目录深埋在名为“Content”的目录结构中。我不知道什么是“包含服务实现的程序集”。我在原始问题中添加了svc内容和web配置