部署到其他PC时system.io功能有问题 [英] Problem with system.io functions when deployed to other pc

查看:73
本文介绍了部署到其他PC时system.io功能有问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我有一个公司项目

使用TextFile:创建/阅读/写作

我使用VB.Net2010在Windows 8开发程序

使用System.IO函数

并且在我的Windows 8中测试时没有问题

但是当我将我的项目部署到其他PC时

System.IO功能似乎无法正常运行

有人可以帮助我吗?



我尝试了什么:



我试图包含system.Io在参考中

但系统.IO在.Net列表下不可用



所以我试图浏览system.io的其他位置

并将其包含在参考资料中



但仍然在部署到其他PC之后

system.IO功能仍无法正常工作

Hi
I have a project for the company
which uses TextFile: Creating/ Reading/ and Writing
I developed the Program using VB.Net2010 at Windows 8
using System.IO functions
and have no problem when i test it in my windows 8
but on the time i deployed my project to other PC
System.IO functions seems not to be functioning
can someone help me with this??

What I have tried:

I tried to include the system.Io in the reference
but the system.IO is not available under .Net list

so i tried to browse other location of system.io
and include it in the references

but still after deployment to other PC
system.IO functions still not working

推荐答案

如果它不起作用,那么你会收到一个错误。使用system.IO函数,错误将告诉您完全问题是什么。而且,由于它适用于您的机器而不是其他机器,因此问题可能是两个问题之一。您在代码中引用的路径是错误的,并且在另一台机器上不存在或者它运行的权限是不够的。



无论哪种方式,只需看看在错误,它会告诉你。
If it isn't working then you are getting an error. And with system.IO functions, the error will tell you exactly what the problem is. And, since it works on your machine but not others the problem is 99% likely to be one of 2 issues. Either the path you are referencing in code is wrong and does not exist on the other machine or the permissions it is running under are not sufficient.

Either way, just look at the error and it will tell you.


这篇关于部署到其他PC时system.io功能有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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