带有.Net 3.5的Acrobat [英] Acrobat with .Net 3.5

查看:102
本文介绍了带有.Net 3.5的Acrobat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可视化的基本程序,我开始在.net 4.0框架下进行开发.我将Adobe PDF Reader COM组件添加到了我创建的用户控件中,并且一切正常.当我将.Net框架降低到3.5以与AutoCAD兼容时,没想到这会成为问题.我在我的计划中发现了一个障碍.现在,我收到有关由较新的运行时生成的AcroPDFLib.dll的错误.有办法解决吗?

错误如下:
Could not load referenced assembly "obj\x86\Debug\AxInterop.AcroPDFLib.dll". Caught a BadImageFormatException saying "Could not load file or assembly ''C:\Visual Studio 2010\Projects\SupportIT\SupportIT\obj\x86\Debug\AxInterop.AcroPDFLib.dll'' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded."

谢谢,
Jason

I have a visual basic program that I started working on under the .net 4.0 framework. I added the Adobe PDF Reader COM Component to a user control I had created and all was working fine. Not expecting it to be a problem when I dropped the .Net framework down to 3.5 for compatibility with AutoCAD I found a snag in my plan. Now I get an error about AcroPDFLib.dll being built by a newer runtime. Is there a way around this?

Here is the error:
Could not load referenced assembly "obj\x86\Debug\AxInterop.AcroPDFLib.dll". Caught a BadImageFormatException saying "Could not load file or assembly ''C:\Visual Studio 2010\Projects\SupportIT\SupportIT\obj\x86\Debug\AxInterop.AcroPDFLib.dll'' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded."

Thanks,
Jason

推荐答案

您尝试删除对COM组件的引用,删除生成的.DLL并在您将项目设置为a时重新添加引用NET 3.5应用程序?
Did you try removing the reference to the COM component, deleting the resulting .DLL''s and re-adding the reference while youre project was set as a .NET 3.5 app?


这篇关于带有.Net 3.5的Acrobat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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