WCF运行错误:“此集合已经包含方案 http 的地址”的解决办法

修改web.config,在<system.serviceModel>下增加以下节(如果已经有serviceHostingEnvironment节点,则参照修改):

<serviceHostingEnvironment aspNetCompatibilityEnabled="true" >
<baseAddressPrefixFilters>
        <add prefix="
http://www.yourdomain.com"/>
    </baseAddressPrefixFilters>

</serviceHostingEnvironment>

 

注意红色部分,将域名换成你自己的域名即可

posted @ 2009-03-31 15:27  菩提树下的杨过  阅读(2393)  评论(1编辑  收藏  举报