VS 2010项目在映射网络上驱动MEF问题 [英] VS 2010 project on mapped network drive MEF problem
问题描述
在映射的网络驱动器上开发MEF应用程序时,我在调用时收到FileLoadException:
catalog.Catalogs.Add(
new
Dir ectoryCatalog ( @"。\InterfaceInmplementations \ " ));
异常消息 "无法加载文件或程序集'StandAlone,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'或其中一个
其依赖项。不支持。(HRESULT异常:0x80131515)" string
我可以让项目在本地计算机上加载时工作。如何从映射的网络驱动器中使用它?
您可能遇到代码访问安全问题。您可以尝试使用caspol.exe将网络位置"列入白名单"
以下文章可能有帮助。
http:// blogs.msdn.com/b/shawnfa/archive/2004/12/30/344554.aspx
问候,
Martin
When developing a MEF application on a mapped network drive I get an FileLoadException when calling:
catalog.Catalogs.Add(
new DirectoryCatalog(@".\InterfaceImplementations\"));
Exception Message "Could not load file or assembly 'StandAlone, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)" string
I can get the project to work when it is loaded on my local computer. How can I get it to work from the mapped network drive?
Hi,
You're probably running into a code access security issue. You could try to 'whitelist' the network location using caspol.exe
The following article might help.http://blogs.msdn.com/b/shawnfa/archive/2004/12/30/344554.aspx
Regards,
Martin
这篇关于VS 2010项目在映射网络上驱动MEF问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!