.Net参考问题P9:system.io.filenotfoundexception [英] .Net Reference problem P9: system.io.filenotfoundexception

查看:95
本文介绍了.Net参考问题P9:system.io.filenotfoundexception的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在尝试部署我的项目,但在其他计算机上出现错误,例如"system.io.filenotfound".
在我的计算机和装有Visual Studio 2010的计算机上都可以正常工作.我注意到错误的原因是我使用的一些参考.因此,我删除了它在其他计算机上可以使用的参考,但它很重要为我的应用程序然后,我尝试使用此dll在没有此dll的情况下在计算机上使用进程资源管理器打开它.当我包含此dll时,还有更多包含的dll称为accesesibility.ni.dll和System.Forms.Windows.Resources.dll我试图将我的应用程序文件夹复制到这个dll中,但没有解决我的问题.然后我尝试使用反射器对其进行检查,但这也无法正常工作.该dll的名称为"skincrafter_.net4.0_vs2010.dll",将其复制到app文件夹中即可解决我的问题吗?以及如何检测到底需要什么引用.

对不起,我的英语不好.

Hi all,I am trying to deploy my project but it gives an error on other computers like ''system.io.filenotfound''
it''s work perfect on my computer and People who have Visual studio 2010 in his computer.I noticed cause of the error is some of reference that I used.So I remove the reference it worked on other computers but it''s important for my application Then I tried to open it with process explorer on my computer wiht this dll and without this dll.When I include this dll there is some more included dlls called accesesibility.ni.dll and System.Forms.Windows.Resources.dll.I tried to copy my app folder this dlls but not solved my problem.Then I tried to examine it with reflector but this is not worked too. Name of the dll is "skincrafter_.net4.0_vs2010.dll" copying app folder the dlls can solve my problem ? and how to detect what reference is exactly requires.

Sorry for my bad english.

推荐答案

尝试将您引用的dll放入GAC(C:\ Windows \ Assembly \)中.只需将dll拖放到那里就无法进行复制,粘贴.
try to put you referenced dll in GAC (C:\Windows\Assembly\). just drag and drop dll there you can''t make copy, paste.


尝试复制bin文件夹的内容,然后尝试运行.

如果使用COM Interop,则可能需要在客户端系统上注册一些dll.
Try to copy the contents of the bin folder and then try to run.

If you are using COM Interop, then you might need to register a few dll''s on the client system.


这篇关于.Net参考问题P9:system.io.filenotfoundexception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆