Clr Assembly必须指定主文件的错误 [英] Clr Assembly must have main file specified error

查看:315
本文介绍了Clr Assembly必须指定主文件的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我做的第一个DLL。目的是从数据库中获取域名,并作为mdx集返回。 dll编译完全正常,但是当我将dll作为大会投标到我的多维数据集时,我收到以下错误:



Clr程序集必须具有主文件指定的错误



该DLL应该像一个ssas存储过程,所以我可以为ssas设置一个角色的权限。



谢谢!
Ethan

解决方案

我终于想出了一个解决方案!我相信由于msmgdsv.dll是框架2.0,我不喜欢这个文件,所以我将项目属性下的目标框架从Framework 4.0改为Framework 2.0。然后,我从BIDS部署所有内容,而不是出现错误,部署了!


This is the first dll I have made. It's purpose is to grab territory names from a database and return as an mdx set. The dll compiled perfectly fine, but when I go to deploy the dll as an assembly in bids to my cube, I get the following error:

Clr Assembly must have main file specified error

The dll is supposed to be like a ssas stored procedure so I can set permission in a role for ssas.

Thanks! Ethan

解决方案

I finally figured out a solution! I believe that because of the msmgdsv.dll being of framework 2.0 I didn't like the file, so I changed the target framework under the project properties to Framework 2.0 from Framework 4.0. I then went to deploy everything from BIDS and instead of an error, It deployed!

这篇关于Clr Assembly必须指定主文件的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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