完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我是一个C#开发人员,我的一个dll将被用于一个安静的vee程序。
遇到的一个问题是我的dll实际上只是一个C库的包装器,我不得不包含非托管/不安全的代码。 我收到错误“无法获取详细的程序集信息[...] System.IO.FileLoadException:无法加载文件或程序集[...]或其中一个依赖项。无法授予最小权限请求。” 每当我想在网络文件夹上运行它。 C#库在C#程序中运行得很好。 删除不安全的代码并安全地重新编译它解决了这个问题,所以作为一种解决方法,我复制了我的C#dll并删除了有问题的部分。 但是,因为这将涉及在两个不同的库中维护相同的代码,我想知道,是否有一种在Agilent Vee中包含非托管代码的正确方法。 感谢您的帮助。 以上来自于谷歌翻译 以下为原文 Hallo, I'm a C# developer and one of my dlls is to be used in an agilent vee program. One of the problems encountered is that my dll is actually just a wrapper for a C library and I had to include unmanaged / unsafe code. I get the error "Failed to obtain detailed assembly information [...] System.IO.FileLoadException: Could not load file or assemby [...] or one of its dependencies. Failed to grant minimum permission requests." whenever I want to run it on a network folder. The C# library works just fine from within C# programs. Deleting the unsafe code and recompile it safely solved the issue, so as a workaround I copied my C# dll and just removed the problematic part. However, as that would involve maintaining the same code in two different libraries I would like to know, whether there is a proper way to include unmanaged code in Agilent Vee. Thank you for your help. |
|
相关推荐
1个回答
|
|
我没有做你想做的事。
由于库驻留在网络驱动器中,并且您的C#程序运行正常,我猜您是否执行了caspol命令? 我指的是VEE帮助文件? 讲述我...> .NET Framework> Agilent VEE Pro和.NET安全性。 -MK 以上来自于谷歌翻译 以下为原文 I have not did what you are trying to do. Since the libraries reside in a network drive and your C# program works fine, I guess you did the caspol command? I am referring to the VEE help file ? Tell Me About... > .NET Framework > Agilent VEE Pro and .NET Security. -mk |
|
|
|
只有小组成员才能发言,加入小组>>
1283 浏览 0 评论
2371 浏览 1 评论
2189 浏览 1 评论
2062 浏览 5 评论
2946 浏览 3 评论
1103浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
750浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
921浏览 0评论
1283浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 16:05 , Processed in 1.519470 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号