专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > .NET Framework

wcf原来有一个服务,现在新增了一个服务后为什么出错?app.config怎么写

发布时间:2011-06-23 14:46:40 文章来源:www.iduyao.cn 采编人员:星星草
wcf原来有一个服务,现在新增了一个服务后为什么出错?app.config如何写
WCF服务库中已有一个服务cjsTest,现在还要新建一个服务AnotherTest,App.Config的配置如下,程序不能编译通过:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
  <compilation debug="true" />
  </system.web>
  <system.serviceModel>
  <services>
  <service name="WcfServiceLibrary.cjsTest">
  <endpoint address="" binding="wsHttpBinding" contract="WcfServiceLibrary.IcjsTest">
  <identity>
  <dns value="localhost" />
  </identity>
  </endpoint>
  <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  <host>
  <baseAddresses>
  <add baseAddress="http://localhost:8732/WcfServiceLibrary/cjsTest/" />
  </baseAddresses>
  </host>

  </service>
  <service name="WcfServiceLibrary.AnotherTest">
  <endpoint binding="basicHttpBinding" bindingConfiguration=""
  contract="WcfServiceLibrary.IAnotherTest" />
  </service>

  </services>
  <behaviors>
  <serviceBehaviors>
  <behavior>
  <serviceMetadata httpGetEnabled="True"/>
  <serviceDebug includeExceptionDetailInFaults="False" />
  </behavior>
  </serviceBehaviors>
  </behaviors>
  </system.serviceModel>

</configuration>

请问,如何修改呢?

------解决方案--------------------
编译报的什么错
http://blog.csdn.net/fangxinggood/article/details/6106228
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: