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