2

In my WPF project, I use CodeFluent to generate my BOM and my WCF Service application. My WCF Service application is hosted on a separate server.

ServiceBinaryLargeObject data send by my WCF application contain a "ServerUrl" property. Its default value starts with [http://localhost:1027/xxxxxxxxx].

How can i change this default BITS host url?

Thanks to anyone that can help me on that ;)

4

1 回答 1

3

As explain in the CodeFluent Entities documentation (http://www.softfluent.com/documentation/BOM_BLOB_BITS_Url.html) you have to set the bitServerUrl attribute in the configuration file.

<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>
于 2014-01-22T10:36:16.577 回答