Solved

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

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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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