|
The Dundas OLAP controls are built with version 9.0.242.0 of the
Microsoft.AnalysisServices.AdomdClient assembly.
If this version of the assembly is not installed on the machine that runs
the Dundas OLAP controls you may experience the following error:
Could not load file or assembly 'Microsoft.AnalysisServices.AdomdClient,
Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or
one of its dependencies. The system cannot find the file specified.
The problem can be resolved by:
- Installing the required version of the assembly, or
- Creating a binding redirect to a later version of the same assembly.
Installing the required version
You can install version 9.0.242.0 by downloading and running Microsoft
Adomd.NET from
microsoft.com.
Creating a binding redirect
If you have a newer version of the assembly installed on your system you
can set up a binding redirect in your application’s configuration
file:
-
Navigate to C:\Windows\Assembly and locate
Microsoft.AnalysisServices.AdomdClient.dll.
At the time this article was written, the latest version
available was 10.0.0.0. Take a note of the installed assembly's version.
-
Open your application’s configuration files
(appName.config for Windows Forms
or web.config for web applications). Create a
<dependetAssembly> element
configuration file. Be sure that newVersion
attribute matches the version of the assembly installed on your system:
<configuration>
<<runtime>>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"<>>
<dependentAssembly>
<assemblyIdentity name="Microsoft.AnalysisServices.AdomdClient" publicKeyToken="89845dcd8080cc91"/>
<bindingRedirect oldVersion="9.0.242.0" newVersion="10.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
You can find additional information about binding redirect element
in the MSDN
library.
|