Solved

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

Posted on 2009-05-20
3
335 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 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