【发布时间】:2011-05-31 08:29:06
【问题描述】:
现在我需要继续更改下面的行。有没有一种编程方式来检查我是在本地运行网站还是在生产环境中运行网站?
我得到的最接近的是这篇文章,但它似乎指的是 Silverlight,我只是从一个 asp.net 站点打来的。
Silverlight application cannot accesss WCF services on other machines
<client>
<endpoint address="http://www.punkoutersoftware.com/Service1.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"
contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" />
</client>
【问题讨论】:
-
我最终采用了非常简单的#DEBUG 方式......最终我将使用 web.config 转换......几乎一样
标签: wcf web-services endpoint