473,398 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Can't import System.IO.Ports



Can somebody please help me! This problem drives me mad!

I've got a small GPS-Reciever; very nice little thing.
Now I want to design a little program to connect to the reciever. I looked
on the internet for some help to connect to the COM-port. Just a little code
"Imports System.IO.Ports".

When I typed this code in VB.NET, it wouln't work because the namespace
"System.IO.Ports" cannot be found. In the references of the project is
already a version of "System.dll". This is the only version I've got.

Does anyone know what went wrong over here and how I can solve this strange
problem?

--
Best regards,
RichART


(Insanity according to Einstein: run two times the same code, use the same
values but expect other result)

Nov 27 '06 #1
2 3967
If I am not mistaken, System.IO.Ports is supported from up to version
2.0. If you are using version 1.1 then this namespace isn't there.

RichART schreef:
Can somebody please help me! This problem drives me mad!

I've got a small GPS-Reciever; very nice little thing.
Now I want to design a little program to connect to the reciever. I looked
on the internet for some help to connect to the COM-port. Just a little code
"Imports System.IO.Ports".

When I typed this code in VB.NET, it wouln't work because the namespace
"System.IO.Ports" cannot be found. In the references of the project is
already a version of "System.dll". This is the only version I've got.

Does anyone know what went wrong over here and how I can solve this strange
problem?

--
Best regards,
RichART


(Insanity according to Einstein: run two times the same code, use the same
values but expect other result)
Nov 27 '06 #2
Hi,

Assuming you are using VB 2005, no I cannot explain it. Perhaps some sort
of bug. If you are using VS 2003, the you can download DesktopSerialIO from
my homepage (I also have a DecodeGPS dll that you may want to use). There
also is a VS 2005 version of DesktopSerialIO.dll that you can use as a
work-around. These all are free.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Nov 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Helge Jensen | last post by:
Having posted in microsoft.public.dotnet.framework.sdk and microsoft.public.dotnet.framework.wmi without receiving any response, I posthere on the off-chance that someone who isn't following those...
1
by: Alex Moskalyuk | last post by:
I downloaded the Visual C# express, which includes the .NET Framework 2.0. The following exception is generated: {"Illegal cross-thread operation: Control 'textBox1' accessed from a thread...
3
by: andyI | last post by:
Where do I find information on how to address and pass data to and from the serial ports and USB ports in VB. VB6 supports the serial ports easily but I see no reference to using the USB ports....
0
by: Piotrekk | last post by:
Hi My question is: How to conrol output pins of ( for example ) COM1 I found in .net System.IO.Ports.SerialPort class. Is there any posibility to set or not set pins D0-7? Thanks PK
3
by: Jamie Risk | last post by:
I'm attempting to improve some serially executing code (that uses the SerialPort class) bogging Windows down when it runs. To do the 'antibogging' I'm following the example from MSDN...
2
by: joaquimfpinto | last post by:
Dear All, I made an app in c# that uses several serial ports. For the serial ports I use a pnp Sunix board, some with 8 serial ports other with 4 or even 2 serial ports. Whenever I use the...
0
by: Bandu | last post by:
Hi, is System.IO.Ports.SerialPort supported in 64bit? I'm writing C# application and its worked fine with 32 bit. But in 64-bit, System.IO.Ports.SerialPort never fire up the Event Handler (e.g....
1
by: JDS | last post by:
I am getting the following error in my application: System.UnauthorizedAccessException was unhandled Message="Access to the port is denied." Source="System" StackTrace: at...
1
by: spynx | last post by:
import javax.swing.JOptionPane; import java.io.*; import java.util.Arrays; public class election5 { public static void main( String args ) {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.