未处理的异常:System.IO.FileNotFoundException:无法加载文件或程序集“Microsoft.Expression.Encoder.Utilities.dll”
我刚刚编写了一个使用微软编码器并合并视频和音频的程序,它在我的电脑(Windows7)上运行良好,当我在其他电脑(Windows7,Windows XP [.net 4.0 安装]] 上测试它时,它给了我以下异常
当我尝试在其他电脑上运行示例 sdk 应用程序时,它甚至给了我异常..(没有安装 microsoft 表达式)
未处理的异常:System.IO.FileNotFoundException:无法加载文件或 ass
embly 'Microsoft.Expression.Encoder.Utilities .dll' 或其依赖项之一
无法
在 Simple.Program.Main(String[] args) 中
找到,我该如何解决此错误,
或者在没有 pc pre 的情况下部署独立应用程序的方法是什么。 。
安装了微软表达工作室谢谢
i just wrote a program that uses microsoft encoders and merge videos and audios , its working fine in my PC (Windows7 ) and when i test it on other PCs (Windows7,Windows XP [.net 4.0 installed]] it is giving me following exception
its even giving me exception when i try to run the sample sdk applications to other pcs ..(with no microsoft expression installed)
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'Microsoft.Expression.Encoder.Utilities.dll' or one of its dependencies. T
he specified module could not be found.
at Simple.Program.Main(String[] args)
how can i solve this error ,
or what are the ways to deploy standalone application , without pc pre installed microsoft expression studio.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Microsoft.Expression.Encoder.Utilities.dll
是 Expression Studio 的一部分。如果目标计算机上未安装它,则不会找到它。我不知道这些 DLL 是否可以自由分发,但在尝试将它们与您的应用程序一起分发之前您应该了解一下。
Microsoft.Expression.Encoder.Utilities.dll
is part of Expression Studio. If it isn't installed on the target machine it will not be found.I don't know if these DLLs can be freely distributed, but you should find out before trying to distribute them with your application.
尝试在您的计算机上找到此 dll 文件,并将其与可执行文件一起分发到尚未安装表达式的电脑。
当程序要使用 dll 时,它会在计算机上的某些预先指定的位置进行查找。第一个位置是执行可执行文件的文件夹中。后面的位置之一可能是 c:\windows\system32
你有文件名,所以它应该不那么难。除非微软创建了某种机制来停止表达式实用程序的分发。
try to locate this dll-file on your machine, and distribute it with your executable to a pc that hasn't got expression installed.
when a program is about to use a dll, it looks in some predesignated places on the computer. one of the first places is in the folder the executable is executed in. one of the later places is probably c:\windows\system32
you have the filename though, so it shouldn't be that hard. unless microsoft has created some sort of mechanism stopping the distribution of the expression utilities.