Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Updated 29-Feb-16 3:49am
v2
Comments
Jim Meadors 29-Feb-16 1:54am    
Have you checked that the target framework of your Solution is installed on the computer you are trying to run it on? If, for example, your target framework is 4.0 and you are trying to run it on an old Windows XP, it won't run there as XP won't take higher than 3.5. But that is just a guess. You might try providing more specifics of your problem if it still isn't resolved.
Member 12358063 29-Feb-16 2:56am    
Sir thanks for your reply
i tried it already on Windows 7 and also on Windows 8

actually i don't know what the problem is
maybe about on the reference
since System is only on the reference
but not system.io originally

1 solution

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.
 
Share this answer
 
Comments
Member 12358063 1-Mar-16 3:48am    
Hi Sir the problem is there is no prompt that i have an error like a syntax error
and i think it is also not logical error
since the program is functioning well in my developer unit (laptop) which is Windows 8

the problem is on the client side the function that must generate a textfile using System.IO like filestream and StreamWriter is not functioning
but as i said it is functioning very well in my developer PC
ZurdoDev 1-Mar-16 7:20am    
Look in the event viewer. Add logging to your code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900