在我的 WPF 项目中,我使用 CodeFluent 生成 BOM 和 WCF 服务应用程序。 我的 WCF 服务应用程序托管在单独的服务器上。
我的 WCF 应用程序发送的 ServiceBinaryLargeObject 数据包含“ServerUrl”属性。 它的默认值以 [http://localhost:1027/xxxxxxxxx] 开头。
如何更改此默认 BITS 主机 URL?
感谢任何可以帮助我的人;)
最佳答案
正如 CodeFluent Entities 文档 ( http://www.softfluent.com/documentation/BOM_BLOB_BITS_Url.html ) 中所述,您必须在配置文件中设置 bitServerUrl
属性。
<configuration>
<configSections>
<section name="Sample" type="CodeFluent.Runtime.CodeFluentConfigurationSectionHandler, CodeFluent.Runtime"/>
</configSections>
<Sample connectionString="server=(local);database=Sample;Integrated Security=true"
bitsServerUrl="http://localhost:1028/Sample/" />
</configuration>
关于microsoft-bits - 如何更改 BITS 主机 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21278264/