晕~毁了!

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
    <client>
      <endpoint address="http://localhost:5566/VictorService" binding="basicHttpBinding" contract="Victor.WCFService.Contract.IVictor"/>
    </client>
  </system.serviceModel>
</configuration>

配置文件为什么要严格区分大小写!
害我DEBUG了1天的,伤啊!!
就因为把
<system.ServiceModel>
</system.ServiceModel>
"S"写成了大写!!!
晕~毁了!

你可能感兴趣的:(晕~毁了!)