Share via


The Machine.config File

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The .NET Framework Machine.config file (located in the folder %WinDir%\Microsoft.NET\Framework\v2.0.50727\CONFIG) must contain the contents of the Microsoft.Practices.ESB.PipelineComponents.config** file.** The folder \Source\Core\Config (where you installed the ESB Guidance) contains samples of post-edited configuration files.

To edit the Machine.config file

  1. Open the Machine.config file in a text editor and add the following section immediately below the opening <configSections> element.

    <sectionGroup name="ESBProcessor">
      <section name="Resolver"
               type="System.Configuration.DictionarySectionHandler,
                     System,Version=2.0.0.0,Culture=neutral,
                     PublicKeyToken=b77a5c561934e089"/>
      <section name="AdapterProvider"
               type="System.Configuration.DictionarySectionHandler,
                     System,Version=2.0.0.0,Culture=neutral,
                     PublicKeyToken=b77a5c561934e089"/>
      <section name="ItineraryCache"  
               type="System.Configuration.DictionarySectionHandler,
                     System,Version=2.0.0.0,Culture=neutral,
                     PublicKeyToken=b77a5c561934e089"/>
      <section name="Cache"
               type="System.Configuration.DictionarySectionHandler,
                     System,Version=2.0.0.0,Culture=neutral,
                     PublicKeyToken=b77a5c561934e089"/>
    </sectionGroup>
    
  2. Add the following section at the end of the Machine.config file, immediately above the closing </configuration> element.

    <ESBProcessor>
      <Resolver>
        <add key="UDDI" 
             value="Microsoft.Practices.ESB.Resolver.UDDI,  
                    Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=31bf3856ad364e35" />
        <add key="WSMEX"
             value="Microsoft.Practices.ESB.Resolver.WSMEX, 
                    Version=1.0.0.0, Culture=neutral,  
                    PublicKeyToken=31bf3856ad364e35" />
        <add key="XPATH"
             value="Microsoft.Practices.ESB.Resolver.XPATH,
                    Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=31bf3856ad364e35" />
        <add key="STATIC"
             value="Microsoft.Practices.ESB.Resolver.STATIC,
                    Version=1.0.0.0, Culture=neutral, 
                    PublicKeyToken=31bf3856ad364e35" />
        <add key="BRE" 
             value="Microsoft.Practices.ESB.Resolver.BRE,
                    Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=31bf3856ad364e35" />
      </Resolver>
      <AdapterProvider>
        <add key="WCF-WSHttp"
             value="Microsoft.Practices.ESB.Adapter.WcfWSHttp,
                    Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=31bf3856ad364e35" />
        <add key="WCF-BasicHttp"
             value="Microsoft.Practices.ESB.Adapter.WcfBasicHttp,
                    Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=31bf3856ad364e35" />
        <add key="FTP" 
             value="Microsoft.Practices.ESB.Adapter.FTP,
                    Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=31bf3856ad364e35" />
        <add key="FILE" 
             value="Microsoft.Practices.ESB.Adapter.FILE,
                    Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=31bf3856ad364e35" />
        <add key="MQSeries"
             value="Microsoft.Practices.ESB.Adapter.MQSeries,
                    Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=31bf3856ad364e35" />
      </AdapterProvider>
      <ItineraryCache>
        <add key="timeout" value="120" />
      </ItineraryCache>
      <Cache>
        <add key="UDDI" value="600" />
        <add key="WSMEX" value="600" />
      </Cache>
    </ESBProcessor>
    
  3. Save and close the Machine.config file.

Note

If you are planning to build Microsoft ESB Guidance applications from the source code, refer to the example Machine.config file located in the \Source\Core\Config folder to determine the correct values for the Resolver and Adapter Provider configuration settings

Now continue to the next task: Install the ESB Exception Management Framework.