Could not load file or assembly Microsoft.AnalysisServices.AdomdClient

本文介绍了解决Dundas OLAP控件因Microsoft.AnalysisServices.AdomdClient版本不匹配导致的问题的方法。可通过安装指定版本组件或在配置文件中设置版本重定向来解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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:

  1. 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.
  2. 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.

转载于:https://www.cnblogs.com/weishuai/archive/2010/11/10/1874047.html

=================================== 无法连接到 DESKTOP-BQPH5KV。 =================================== A connection cannot be made. Ensure that the server is running. (Microsoft.AnalysisServices.AdomdClient) ------------------------------ 程序位置: 在 Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenConnectionAndCheckIfSessionTokenNeeded(ConnectionInfo connectionInfo) 在 Microsoft.AnalysisServices.AdomdClient.XmlaClient.<>c__DisplayClass171_0.<OpenConnection>b__0() 在 Microsoft.AnalysisServices.AdomdClient.Security.TransparentUserContext.ExecuteInUserContextImpl[TResult](Func`1 action) 在 Microsoft.AnalysisServices.AdomdClient.Security.UserContext.ExecuteInUserContext[TResult](Func`1 action) 在 Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenConnection(ConnectionInfo connectionInfo, Boolean& isSessionTokenNeeded) 在 Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession) 在 Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Connect() 在 Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.AdomdConnection.IXmlaClientProviderEx.ConnectXmla() 在 Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP) 在 Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open() 在 Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server) 在 Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser() =================================== 由于目标计算机积极拒绝,无法连接。 [::1]:2383 (System) ------------------------------ 程序位置: 在 System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) 在 Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(IConnectivityOwner owner, ConnectionInfo connectionInfo)
03-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值