您的位置:首页 > 其它

Could not load file or assembly Microsoft.AnalysisServices.AdomdClient

2010-11-10 17:15 1531 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐