SPClient必须存在于全局程序集中 [英] SPClient must be present in the global assembly

查看:94
本文介绍了SPClient必须存在于全局程序集中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个C#WPF应用程序与MOLAP多维数据集进行一些交互:

I have a C# WPF application that does some interaction with a MOLAP cube:

using Microsoft.AnalysisServices.AdomdClient;

AdomdConnection connection = new AdomdConnection("Data Source=SERVER;" +
            "Initial Catalog=Test Cube;"); 
            CellSet cs;
            AdomdCommand command;
            string strCommand;
            command = connection.CreateCommand();

当我使用点击一次安装到客户端机器上时我收到错误Microsoft .AnalysisServices.SPclient.Interfaces需要包含在全局程序集缓存中。

When I am installing onto clients machine using click once I am getting the error Microsoft.AnalysisServices.SPclient.Interfaces needs to be included in the Global Assembly Cache.

我需要做些什么才能解决这个问题?

What do I need to do to fix this problem?

很多谢谢,

Joe

推荐答案

你好乔,

>> Microsoft.AnalysisServices.SPclient.Interfaces需要包含在全局程序集缓存中。

>>Microsoft.AnalysisServices.SPclient.Interfaces needs to be included in the Global Assembly Cache.

我发现这里有类似的问题和解决方案:

I found there is a similar issue and solution here:

"无法
安装或运行应用程序。该应用程序要求首先将程序集安装在全局程序集缓存(GAC)中。"

摘自wordpress链接:

Excerpt from wordpress link:



我在编译第一个C#生产应用程序时收到了这个错误。我必须在Visual Studio中为项目执行以下操作:

I recevied this error while compiling my first C# production application. I had to do the following in Visual Studio for the project:



  1. 在解决方案资源管理器中,展开"引用"节点,然后单击错误中列出的程序集。确保"属性"网格中的"复制本地"设置为"True"。

  2. 在项目的属性中,Publish | "应用程序文件"选项卡,确保错误中列出的程序集的"发布状态"设置为"包含"


问候,

Frankie

注意:此响应包含对第三方万维网站点的引用。 Microsoft提供此信息是为了方便您。 Microsoft不控制这些网站,也未测试在这些网站上找到的任何软件或信息;因此,
Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。使用互联网上的任何软件都存在固有的危险,微软提醒您在从互联网上检索任何软件之前,确保您完全了解风险。

Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


这篇关于SPClient必须存在于全局程序集中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆