Solved

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

Posted on 2009-05-20
3
333 Views
Last Modified: 2013-11-18
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.
0
Comment
Question by:63Cook
  • 2
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24441334
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

0
 

Author Comment

by:63Cook
ID: 24444299
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?  
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 24446364
That just means that you didn't fully-qualify the namespace.class, and there isn't an Imports.

New System.IO.FileStream

   -or-

Add Imports System.IO to the top of the code module.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now