错误:Interop type 'ADOX.CatalogClass' cannot be embedded. Use the applicable interface instead

来源:互联网 发布:心事谁人知二胡 编辑:程序博客网 时间:2024/05/23 12:14

该错误在我引入了ADOX.dll时产生,解决方案:

1.右键点击已经添加的引用,找到属性项

2.在属性页面中会发现:Embed Interop Assembly选项

3.将该选项设为false。