description | title | ms.custom | ms.date | ms.service | ms.reviewer | ms.suite | ms.topic |
---|---|---|---|---|---|---|---|
Learn more about: Error getting binding extensions from machine.config |
Error getting binding extensions from machine.config |
06/08/2017 |
biztalk-server |
article |
Field | Error Details |
---|---|
Product Name | [!INCLUDEbtsBizTalkServerNoVersion] |
Product Version | [!INCLUDEbtsWCFVersion] |
Event ID | 0 |
Event Source | 0 |
Component | 0 |
Symbolic Name | 0 |
Message Text | Error getting binding extensions from machine.config |
This error occurs when a receive location or send port binding configuration has a user defined binding extension, but it is not defined in machine.config file. This situation occurs primarily with the WCF-Custom and WCF-CustomIsolated adapters.
Define the binding extension used in the receive location or send port in machine.config file. Also, to get a custom behavior or binding element to work with WCF-Custom adapter, complete these steps:
-
GAC the assembly
-
Modify your machine.config file (found in %FrameworkDir%\v4.0.30319\CONFIG).
-
Load your behavior DLL inside the Service Configuration Editor (svcConfigEditor.exe).
-
Save the configuration to an app.config file
-
Copy and paste the system.servicemodel extensions section in a similar section in machine.config. If system.servicemodel section is not present in machine.config, your must create one. The following is an example from the configuration section of a machine.config file:
<system.serviceModel> <extensions> <behaviorExtensions> <add name="BizTalkWcfContractNamespaceTestServiceBehaviorExtension" type="ASB.BizTalk.Samples.BizTalkWcfContractNamespaceTestServiceBehaviorExtension, CustomBizTalkWcfBehaviors, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7631521c07cf34b4" /> </behaviorExtensions> </extensions> </system.serviceModel>
-
Note
The above code can also be added to the WCF Extensions tab. If the extension needs to be on the receive side, see the <Host Name> Properties Dialog Box, WCF Extensions tab (WCF-Custom or WCF-CustomIsolated Adapter Receive Handler) [!INCLUDEui-guidance-developers-reference]. If the extension needs to be on the send side, see <Host Name> Properties Dialog Box, WCF Extensions tab (WCF-Custom Adapter Send Handler) [!INCLUDEui-guidance-developers-reference].
- Close and reopen your admin console. You should be able to see your custom behavior in the WCF-Custom adapter, and the port should stay enabled when you enable it.