2012-10-13 29 views
0

我有一个问题,我试图克服,我走了这是可能的但我不知道如何。WCF/silverlight endpoints

我在我的服务提出了以下配置

<configuration> 
<system.serviceModel> 
    <bindings> 
     <customBinding> 
      <binding name="CustomBinding_MyDataService"> 
       <binaryMessageEncoding /> 
       <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" /> 
      </binding> 
     </customBinding> 
    </bindings> 
    <client> 
     <endpoint address="http://mywebsite.com/vdir/Services/MyDataService.svc" 
      binding="customBinding" bindingConfiguration="CustomBinding_MyDataService" 
      contract="HBDataLayer.MyDataService" name="CustomBinding_MyDataService" />   
    </client> 
</system.serviceModel> 

的问题是终点地址,我有地址设置为实际发布的位置然而,当我尝试在本地我得到调试跨域策略问题。我必须不断更新本地主机和网站之间的配置文件切换。

我被告知可以配置它,所以你没有这个问题。

有谁知道如何?

回答