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

Noob System.NotSupportedException


Best Answer cSharper, 26 August 2015 - 01:50 PM

I think you still may not have the correct firmware. Mine is 4.3.2.1 like the link I posted above.

HalSystemInfo.halVersion:               4.3.1.0
HalSystemInfo.halVendorInfo:            Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
HalSystemInfo.oemCode:                  34
HalSystemInfo.modelCode:                177
HalSystemInfo.skuCode:                  4102
HalSystemInfo.moduleSerialNumber:       00000000000000000000000000000000
HalSystemInfo.systemSerialNumber:       0000000000000000
ClrInfo.clrVersion:                     4.3.1.0
ClrInfo.clrVendorInfo:                  Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
ClrInfo.targetFrameworkVersion:         4.3.1.0
SolutionReleaseInfo.solutionVersion:    4.3.2.1
SolutionReleaseInfo.solutionVendorInfo: Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
SoftwareVersion.BuildDate:              May  7 2015
SoftwareVersion.CompilerVersion:        410894
FloatingPoint:                          True
SourceLevelDebugging:                   True
ThreadCreateEx:                         True
LCD.Width:                              0
LCD.Height:                             0
LCD.BitsPerPixel:                       0
AppDomains:                             True
ExceptionFilters:                       True
IncrementalDeployment:                  True
SoftReboot:                             False
Profiling:                              False
ProfilingAllocations:                   False
ProfilingCalls:                         False
IsUnknown:                              False
Go to the full post


  • Please log in to reply
7 replies to this topic

#1 darky8

darky8

    New Member

  • Members
  • Pip
  • 5 posts

Posted 11 July 2015 - 08:09 AM

Hi Folks,

 

Complete Noob to .NET MF but not to .NET.

I have strung together the most simple of apps on two different machines, both with Visual Studio 2013.

 

However, when I start the project in Visual Studio it fails with "An unhandled exception of type 'System.NotSupportedException' occurred in SecretLabs.NETMF.Hardware.Netduino.dll".

 

After this it asks me for the location of NetduinoHardwareProvider.cs


Imports Microsoft.SPOT
Imports Microsoft.SPOT.Hardware
Imports SecretLabs.NETMF.Hardware
Imports SecretLabs.NETMF.Hardware.Netduino
Imports System
Imports System.Net
 
Module Module1
 
    Sub Main()
 
        Dim Pin As New OutputPort(Pins.GPIO_PIN_D0, False)
 
    End Sub
 
End Module

This is probably something silly, but whatever I'm doing wrong I've managed to do it twice!

 

Any help gratefully received  :)

 

 

ClrInfo.clrVendorInfo:                  Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
ClrInfo.targetFrameworkVersion:         4.3.1.0
 
Netduino SDK v4.3.2 (May 2015) v4.3.2.1

 

 

 

 

Attached Files



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 13 July 2015 - 11:59 PM

Hi darky8,

Very interesting. If you run MFDeploy, select your device, and press Ctrl+Shift+C (Device Capabilities), what does it show?

Also, critically: what board are you using?

Chris

#3 darky8

darky8

    New Member

  • Members
  • Pip
  • 5 posts

Posted 15 July 2015 - 02:42 PM

Thank you for getting back to me.

I had a project I downloaded written in C# work fine. But when I write a solution from scratch, be it in VB or C# I get these errors.

 

It's a Netduino Plus 2

 

Here's my MFdeploy
 

HalSystemInfo.halVersion:               4.3.1.0
HalSystemInfo.halVendorInfo:            Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
HalSystemInfo.oemCode:                  34
HalSystemInfo.modelCode:                177
HalSystemInfo.skuCode:                  4102
HalSystemInfo.moduleSerialNumber:       00000000000000000000000000000000
HalSystemInfo.systemSerialNumber:       0000000000000000
ClrInfo.clrVersion:                     4.3.1.0
ClrInfo.clrVendorInfo:                  Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
ClrInfo.targetFrameworkVersion:         4.3.1.0
SolutionReleaseInfo.solutionVersion:    4.3.1.0
SolutionReleaseInfo.solutionVendorInfo: Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
SoftwareVersion.BuildDate:              Feb 25 2014
SoftwareVersion.CompilerVersion:        410894
FloatingPoint:                          True
SourceLevelDebugging:                   True
ThreadCreateEx:                         True
LCD.Width:                              0
LCD.Height:                             0
LCD.BitsPerPixel:                       0
AppDomains:                             True
ExceptionFilters:                       True
IncrementalDeployment:                  True
SoftReboot:                             False
Profiling:                              False
ProfilingAllocations:                   False
ProfilingCalls:                         False
IsUnknown:                              False


#4 darky8

darky8

    New Member

  • Members
  • Pip
  • 5 posts

Posted 31 July 2015 - 08:02 AM

Hi,

 

I got it working but the VB side of things seems really sketchy. So much so, I'm not quite sure how I did it!

 

Sometimes it works, other times it doesn't and debugging seems to quit Visual Studio altogether.

 

 Not great.



#5 cSharper

cSharper

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationOrlando, FL

Posted 31 July 2015 - 06:54 PM

I had this exact same issue, and I just uninstalled the SDK's, & .NetMF and followed his instructions here to reinstall-> http://forums.netdui...-v432-update-1/

 

I think I originally had the wrong firmware installed, because I just installed whatever was posted on the main website under downloads



#6 darky8

darky8

    New Member

  • Members
  • Pip
  • 5 posts

Posted 25 August 2015 - 06:01 PM

I did the upgrade and have reinstalled everything, but the errors are back!

 

Is there anything in my mfdeploy that looks wrong...??

 

Waiting for debug commands...
    Microsoft.SPOT.Net,4.3.1.0
    System,4.3.1.0
    Microsoft.SPOT.Hardware.SerialPort,4.3.1.0
    Microsoft.SPOT.IO,4.3.1.0
    System.IO,4.3.1.0
    Microsoft.SPOT.Hardware.PWM,4.3.1.0
    Microsoft.SPOT.Hardware.Usb,4.3.1.0
    SecretLabs.NETMF.Diagnostics,4.3.1.0
    SecretLabs.NETMF.Hardware.Netduino,4.3.1.0
    Microsoft.SPOT.Hardware.OneWire,4.3.1.0
    Microsoft.SPOT.Time,4.3.1.0
    Microsoft.VisualBasic,1.0.0.0
    SecretLabs.NETMF.Hardware.NetduinoPlus,4.3.1.0
    GoBus,1.5.0.0
    temp5,1.0.0.0
    SecretLabs.NETMF.Hardware,4.3.1.0

MFdeploy

 

HalSystemInfo.halVersion:               4.3.1.0
HalSystemInfo.halVendorInfo:            Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
HalSystemInfo.oemCode:                  34
HalSystemInfo.modelCode:                177
HalSystemInfo.skuCode:                  4102
HalSystemInfo.moduleSerialNumber:       00000000000000000000000000000000
HalSystemInfo.systemSerialNumber:       0000000000000000
ClrInfo.clrVersion:                     4.3.1.0
ClrInfo.clrVendorInfo:                  Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
ClrInfo.targetFrameworkVersion:         4.3.1.0
SolutionReleaseInfo.solutionVersion:    4.3.1.0
SolutionReleaseInfo.solutionVendorInfo: Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
SoftwareVersion.BuildDate:              Feb 25 2014
SoftwareVersion.CompilerVersion:        410894
FloatingPoint:                          True
SourceLevelDebugging:                   True
ThreadCreateEx:                         True
LCD.Width:                              0
LCD.Height:                             0
LCD.BitsPerPixel:                       0
AppDomains:                             True
ExceptionFilters:                       True
IncrementalDeployment:                  True
SoftReboot:                             False
Profiling:                              False
ProfilingAllocations:                   False
ProfilingCalls:                         False
IsUnknown:                              False

R



#7 cSharper

cSharper

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationOrlando, FL

Posted 26 August 2015 - 01:50 PM   Best Answer

I think you still may not have the correct firmware. Mine is 4.3.2.1 like the link I posted above.

HalSystemInfo.halVersion:               4.3.1.0
HalSystemInfo.halVendorInfo:            Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
HalSystemInfo.oemCode:                  34
HalSystemInfo.modelCode:                177
HalSystemInfo.skuCode:                  4102
HalSystemInfo.moduleSerialNumber:       00000000000000000000000000000000
HalSystemInfo.systemSerialNumber:       0000000000000000
ClrInfo.clrVersion:                     4.3.1.0
ClrInfo.clrVendorInfo:                  Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
ClrInfo.targetFrameworkVersion:         4.3.1.0
SolutionReleaseInfo.solutionVersion:    4.3.2.1
SolutionReleaseInfo.solutionVendorInfo: Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
SoftwareVersion.BuildDate:              May  7 2015
SoftwareVersion.CompilerVersion:        410894
FloatingPoint:                          True
SourceLevelDebugging:                   True
ThreadCreateEx:                         True
LCD.Width:                              0
LCD.Height:                             0
LCD.BitsPerPixel:                       0
AppDomains:                             True
ExceptionFilters:                       True
IncrementalDeployment:                  True
SoftReboot:                             False
Profiling:                              False
ProfilingAllocations:                   False
ProfilingCalls:                         False
IsUnknown:                              False


#8 darky8

darky8

    New Member

  • Members
  • Pip
  • 5 posts

Posted 29 August 2015 - 03:22 PM

Well I'm not sure what I did..! lol

Well done cShaper. I downloaded the firmware again and repeated the process, then compare the output with yours and I'm finally up and running. Visual studio even debugs now instead of just quitting, which is handy.

 

Many Thanks

 

R

 

:rolleyes:






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.