Link to home
Start Free TrialLog in
Avatar of 63Cook
63Cook

asked on

Missing System.io from .NET VB 2003 and Compact Framework app

I'm trying to write an app for an older Pocket PC device.  Everything was going fine until I tried to add a reference to System.IO so I can do some data reading & writing to a text file.   For whatever reason, System.io.dll is missing from my system.  

I've been able to succesfully deploy a compact framework app to the Pocket PC 2002 handheld so I believe my development environment was installed ok with all the features initially.  What could be the reason for the missing System.IO?  Is there an additional Compact Framework component to install?

I've searched the hard drive and have found other DLLs such as System.Data, System.Data.Common, System.Data.SqlClient and others as well but System.IO is missing. The files I have found are in the "C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\" folder.

Any help you can provide is greatly appreciated.
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

The System.IO and its classes are in the mscorlib.dll.

NET Framework Class Library
BinaryReader Class

Reads primitive data types as binary values in a specific encoding.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

http://msdn.microsoft.com/en-us/library/system.io.binaryreader.aspx

Avatar of 63Cook
63Cook

ASKER

TheLearnedOne-
I'm new to Compact Framework and VB .NET 2003 as well.  

I already added mscorlib to my project using Add Reference from the beginning.  I just looked in my Solution Explorer and "mscorlib" is listed.

If I key in something such as:
 Dim myFS As New FileStream("\myFile.txt ", FileMode.Append, FileAccess.Write)

FileStream has the blue underline and there are not valid functions beginning with "File"... only FillEvent functions.

What am I doing wrong?  
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial