Microsoft KB Archive/935231

From BetaArchive Wiki
Knowledge Base


Error message when you try to run a BizTalk Server 2006 project by using the BizTalk Adapter for Host Files: "Could not load file or assembly"

Article ID: 935231

Article Last Modified on 5/16/2007



APPLIES TO

  • Microsoft Host Integration Server 2006
  • Microsoft BizTalk Adapter for Host Systems



SYMPTOMS

When you try to run a Microsoft BizTalk Server 2006 project by using the BizTalk Adapter for Host Files, you receive an error message that resembles the following:

The Messaging Engine failed to create the transport adapter "Host_AS400".
OutboundAssemblyPath: "NULL"
OutboundTypeName: "Microsoft.HostIntegration.Adapters.MsHostFile.Runtime.HostFileTransmitter, Microsoft.HostIntegration.Adapters.MsHostFile.Runtime, Version=7.0.2300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Exception Details: "Could not load file or assembly 'Microsoft.HostIntegration.Adapters.MsHostFile.Runtime, Version=7.0.2300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

Note This error message indicates a problem with the Microsoft.HostIntegration.Adapters.MsHostFile.Runtime.dll file. However, the problem may also occur with the following files:

  • Microsoft.HostIntegration.Adapters.MsDb2.Runtime.dll
  • Microsoft.HostIntegration.Adapters.MsTi.Runtime.dll


RESOLUTION

To resolve this problem, you must first verify that the global assembly cache entries are correct. Then, you must verify that the Microsoft SQL Server path locations are correct. To do this, follow these steps:

  1. Verify that the global assembly cache entries are correct. To do this, follow these steps:
    1. Use Windows Explorer to browse through the %WINDIR%\assembly folder. Make sure that the following entries are present.
      Assembly name Version Public key token Processor architecture
      Microsoft.HostIntegration.Adapters.MsDb2.Management 7.0.2300.0 31bf3856ad364e35 MSIL
      Microsoft.HostIntegration.Adapters.MsDb2.Runtime 7.0.2300.0 31bf3856ad364e35 MSIL
      Microsoft.HostIntegration.Adapters.MsHostFile.Management 7.0.2300.0 31bf3856ad364e35 MSIL
      Microsoft.HostIntegration.Adapters.MsHostFile.Runtime 7.0.2300.0 31bf3856ad364e35 MSIL
      Microsoft.HostIntegration.Adapters.MsTI.Management 7.0.2300.0 31bf3856ad364e35 MSIL
      Microsoft.HostIntegration.Adapters.MsTi.Runtime 7.0.2300.0 31bf3856ad364e35 MSIL
  2. Verify that the SQL Server path locations are correct for the .dll files. To do this, follow these steps:
    1. Start SQL Server Management Studio.
    2. Expand Databases, expand BizTalkMgmtDb, and then expand Tables.
    3. Right-click dbo.adm_Adapter, and then click Open Table.
    4. In the Name column, locate the MsDb2 entry.
    5. In the InboundAssemblyPath column for the MsDb2 entry, verify that it has the following value:

      C:\Program Files\Microsoft BizTalk Adapters for Host Systems\system\Microsoft.HostIntegration.Adapters.MsDb2.Runtime.dll

      Note Make sure that the file exists in the specified path. If the file does not exist in the specified path, type the path where the file is located.
    6. In the OutboundAssemblyPath column for the MsDb2 entry, verify that it has the following value:

      C:\Program Files\Microsoft BizTalk Adapters for Host Systems\system\Microsoft.HostIntegration.Adapters.MsDb2.Runtime.dll

      Note Make sure that the file exists in the specified path. If the file does not exist in the specified path, type the path where the file is located.
    7. In the Name column, locate the MsHostFile entry.
    8. In the InboundAssemblyPath column for the MsHostFile entry, verify that it has the following value:

      C:\Program Files\Microsoft BizTalk Adapters for Host Systems\system\Microsoft.HostIntegration.Adapters.MsHostFile.Runtime.dll

      Note Make sure that the file exists in the specified path. If the file does not exist in the specified path, type the path where the file is located.
    9. In the OutboundAssemblyPath column for the MsHostFile entry, verify that it has the following value:

      C:\Program Files\Microsoft BizTalk Adapters for Host Systems\system\Microsoft.HostIntegration.Adapters.MsHostFile.Runtime.dll

      Note Make sure that the file exists in the specified path. If the file does not exist in the specified path, type the path where the file is located.
    10. In the Name column, locate the MsTi entry.
    11. In the InboundAssemblyPath column for the MsTi entry, verify that it has the following value:

      C:\Program Files\Microsoft BizTalk Adapters for Host Systems\system\Microsoft.HostIntegration.Adapters.MsTi.Runtime.dll

      Note Make sure that the file exists in the specified path. If the file does not exist in the specified path, type the path where the file is located.
    12. In the OutboundAssemblyPath column for the MsTi entry, verify that it has the following value:

      C:\Program Files\Microsoft BizTalk Adapters for Host Systems\system\Microsoft.HostIntegration.Adapters.MsTi.Runtime.dll

      Note Make sure that the file exists in the specified path. If the file does not exist in the specified path, type the path where the file is located.

After you complete these steps, you should be able to run the BizTalk Server 2006 project.

Keywords: kbtshoot kbprb KB935231