0
在MVC应用程序中,我有一个为我的开发环境设置的web.config,并且我有一个需要插入新的WCF服务端点的转换文件,但是它将它添加到错误的地方,所以我想我错过了一些东西。web.config变换不起作用
我削减了配置文件,只显示需要什么。
我有正常的web.config如下:
<services>
<!-- Report Service -->
<service name="Core.ReportDataHost">
<endpoint name="ReportDataHost" address="..." binding="customBinding" contract="..."/>
</service>
<!-- Authentication Service -->
<service name="Core.AuthenticationHost">
<endpoint name="AuthenticationHost" address="..." binding="customBinding" contract="..."/>
</service>
</services>
我那么有转换文件如下:
<services>
<service name="Core.AuthenticationHost">
<endpoint xdt:Transform="Insert" address="" binding="customBinding" contract="..." />
</service>
</services>
我预计,添加新的端点在“AuthenticationHost”服务,但它将其添加到第一个服务“ReportDataHost”中。
任何想法我失踪?
超级,这很有道理,明天当我回来工作时我会试试这个。谢谢。 – eyeballpaul 2012-07-18 18:52:32
工作过,谢谢。 – eyeballpaul 2012-07-19 13:01:45