Could not load file or assembly Microsoft.Practices.ESB.Resolver.STATIC

I just encountered a classic ESBG 1.0 issue whilst developing a custom ESB Agent.  Before starting development I cleaned up the machine and done a complete compile and deploy of the ESBG core assemblies.  Then I noticed each time I submitted a message I would receive the following error,
Could not load file or assembly ‘Microsoft.Practices.ESB.Resolver.STATIC, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.
After recompiling a few times and double checking the GAC it occurred to me that I hadn’t updated the machine.config file to use the new key.  Basically there are two ways of installing ESBG components, either by the supplied MSI or compiling the framework and deploying yourself.  Compiled ESBG components use a different key from MSI installed components.  The machine.config refers to the assembly from the MSI installed components.  So if this error is encountered then change the following in your machine.config.
From this,
   <add key="STATIC"
                Version=, Culture=neutral,
                PublicKeyToken=31bf3856ad364e35" />
To This,
    <add key="STATIC"
                Version=, Culture=neutral,
                PublicKeyToken=c2c8b2b87f54180a" />
This entry was posted in BizTalk Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s