Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Serial Port throw a 'System.NotSupportedException' Framework 4.3

SerialPort exception

Best Answer BernardG , 27 February 2015 - 12:23 PM

There is no problem, in fact. It was my own dumbness, forgetting to cross RX and TX, which was precluding it to work. As long as one does not try to use the properties Length and Position, everything is just fine.

Thanks, Bernard

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 BernardG

BernardG

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts

Posted 26 February 2015 - 07:50 PM

At first I thought it was me, that I forgot something.
So I downloaded SerialPortLearn.zip, from Hari Wiguna found here: http://forums.netdui...rt-code-review/

 

and I get "serialPort.Position' threw an exception of type 'System.NotSupportedException' long {System.NotSupportedException}" for Both position and length property.

BTW, this is thrown directly in the constructor for SerialPort.

Is there another assembly than System.IO.Ports that I should reference for SerialPort ?

Thanks for your help, guys, this is really blocking a project on which I need to move on.

Bernard

 


#2 BernardG

BernardG

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts

Posted 26 February 2015 - 08:10 PM

Hum, looking on MSDN I find this for Length
https://msdn.microso...(v=vs.102).aspx
and for Position

https://msdn.microso...(v=vs.102).aspx

So, does that mean that I am sh*#&t out of luck with 4.3 and need to go back to a previous version (for now)
Just looking, same for 4.2. 

 

Hum, I see that 4.1 and 4.0 does not have these properties, so it must be working.

Any other idea/workaround?

Did someone use SerialPort with 4.3?

Thanks,

 

Bernard
 



#3 BernardG

BernardG

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts

Posted 27 February 2015 - 12:23 PM   Best Answer

There is no problem, in fact. It was my own dumbness, forgetting to cross RX and TX, which was precluding it to work. As long as one does not try to use the properties Length and Position, everything is just fine.

Thanks, Bernard






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.