锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置:锐英源 / 开源技术 / nVLC / That assembly does not allow partially trusted callers组件禁止部分信任访问方
服务方向
人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发
联系方式
固话:0371-63888850
手机:138-0381-0136
Q Q:396806883

That assembly does not allow partially trusted callers组件禁止部分信任访问方


This project is exactly was I was looking as I would like to customize VLC. 本项目满足我期望。

However I am having some trouble to test it.
When I debug the demo winform, I get an error at execution time, at :当调试Winform演示程序时,运行时出错,代码位置是:

public   NLogger()
m_logImpl = NLog.LogManager.GetCurrentClassLogger();  
}
Message: 信息
An error occurred creating the configuration section handler for nlog: That assembly does not allow partially trusted callers. (C:\Users\Jo\Documents\Visual Studio 2010\Projects\nVLC\Sources\nVLC_Demo_WinForms\bin\x86\Release\nVLC_Demo_WinForms.vshost.exe.Config line 4)在为nlog创建配置节处理时遇到错误:组件禁止部分信任访问方。
If I continue to run despite this message, I get an exception at: 如果忽略此信息,产生异常:
if (m_hMediaLib == IntPtr.Zero)
{
throw new LibVlcInitException();
}
saying: 提示
Failed to initialize libVLC. Possible reasons : Some of the arguments may be incorrect. VLC dlls' version mismatch.初始化libVLC异常。可能的原因:某些参数不正确。VLC的DLL版本不匹配。

I am using dlls copied from my VLC folder. I think the version is 1.1.11.我从VCL目录下拷贝文件,我认为是1.1.11版本。

I tried to solve the first issue by adding [assembly: AllowPartiallyTrustedCallers] before the namespaces nVLC_Demo_WinForms and Implementation, but then I get this message at run time:
Inheritance security rules violated while overriding member: 'Implementation.MediaPlayerFactory.CreatePlayer()'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

Your help would be appreciated!

Regards

友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内