Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
A short article about problems I had with the new location API and permissions in Marshmallow
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

792 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