[英]C# app fails to load Matlab DLL when running from a shared drive?
I have a C# .NET 2.0 program that calls a Matlab .dll file that I created using Matlab Builder for .NET. 我有一个C#.NET 2.0程序,该程序调用使用Matlab Builder for .NET创建的Matlab .dll文件。 This Matlab .dll file is a wrapper for am file function that I need to call from my C# program. 这个Matlab .dll文件是我需要从C#程序调用的am函数的包装器。
Everything works fine when I run this app from my local drive. 当我从本地驱动器运行此应用程序时,一切正常。 However once I copy the app to a shared drive the Matlab dll fails when it's first loaded. 但是,一旦我将应用程序复制到共享驱动器,Matlab dll就会在首次加载时失败。
I setup caspol to allow .NET programs to run from shared drives. 我将caspol设置为允许.NET程序从共享驱动器运行。
Does anyone know what could cause this problem or a tool that I could use to easily figure out what the problem is? 有谁知道可能导致此问题的原因或我可以用来轻松找出问题原因的工具?
Thanks. 谢谢。
Try re-adding the .dll from Visual Studio. 尝试从Visual Studio重新添加.dll。 This is the best guess I can give. 这是我能给出的最好的猜测。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.