Dll与装配不匹配

时间:2012-04-20 09:17:32

标签: vb.net

当我在C#应用程序中添加.dll文件作为引用时,它会显示错误:

A reference to the "....dll" could not be added.
Please make sure that the file is accessible and that it is a valid assembly
or COM component.

1 个答案:

答案 0 :(得分:0)

您确定您的dll不在受保护的文件夹中吗?例如,您需要某些文件夹的管理员权限。尝试将您的DLL移动到另一个文件夹,然后尝试添加并编译它