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

"An unhandled exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.dll" Error with N3 on VS2015CE RC

Visual Studio VS2015 System.Exception

  • Please log in to reply
3 replies to this topic

#1 ishotjr

ishotjr

    New Member

  • Members
  • Pip
  • 7 posts
  • LocationAnn Arbor, MI

Posted 05 July 2015 - 09:58 PM

I am attempting my first N3 program (a simple "Hello World" - source here), but I get:

An unhandled exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.dll

during debugging; if I continue, I do eventually get the expected output, but...any idea what's going on?  I have a fairly absurd setup and spent a LOT of time getting this far; I'm running VS2015 Community RC on an HP Stream 7 tablet, which took a few tries to get working, and the first time I attempted to flash my N3, I got "An error has occurred: please check your hardware." and used Netduino Update's Erase App tool per forum thread to get as far as I have been able to now.  I'm not sure how big of a deal this exception is, since it is working after that break, but I'm worried that as I get in deeper, I may experience further/similar issues - any thoughts?  Thanks!!!

Found debugger!

Found debugger!

Found debugger!

Create TS.

 Loading start at 8065cf4, end 808cf14

Assembly: mscorlib (4.3.1.0)

Assembly: Microsoft.SPOT.Native (4.3.1.0)

Assembly: Microsoft.SPOT.Hardware (4.3.1.0)

Assembly: Microsoft.SPOT.Net (4.3.1.0)

Assembly: Microsoft.SPOT.Net.Security (4.3.1.0)

Assembly: System (4.3.1.0)

Assembly: System.Net.Security (4.3.1.0)

Assembly: Microsoft.SPOT.Hardware.SerialPort (4.3.1.0)

Assembly: Microsoft.SPOT.IO (4.3.1.0)

Assembly: System.IO (4.3.1.0)

Assembly: Microsoft.SPOT.Hardware.PWM (4.3.1.0)

Assembly: Microsoft.SPOT.Hardware.Usb (4.3.1.0)

Assembly: Netduino.IP (1.0.0.0)

Assembly: Netduino.IP.Interop (1.0.0.0)

Assembly: Netduino.IP.LinkLayers.CC3100 (1.0.0.0)

Assembly: SecretLabs.NETMF.Diagnostics (4.3.1.0)

Assembly: GoBus (1.5.0.1)

Assembly: SecretLabs.NETMF.Hardware.Netduino (4.3.1.0)

Assembly: Microsoft.SPOT.Hardware.OneWire (4.3.1.0)

Loading Deployment Assemblies.

Attaching deployed file.

Assembly: SecretLabs.NETMF.Hardware (4.3.1.0)

Attaching deployed file.

Assembly: GoBus (1.5.0.0)

Attaching deployed file.

Assembly: HelloNetduino (1.0.0.0)

Resolving.

The debugging target runtime is loading the application assemblies and starting execution.
Ready.

'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Native.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Net.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Net.Security.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.Net.Security.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.SerialPort.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.IO.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.IO.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.PWM.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
 Invalid address 0 and range 40 Ram Start 20000000, Ram end 20030000

 Invalid address 1000fbb4 and range 4 Ram Start 20000000, Ram end 20030000

'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.Usb.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'Netduino.IP'
 Invalid address 0 and range 40 Ram Start 20000000, Ram end 20030000

 Invalid address 1000fbb4 and range 4 Ram Start 20000000, Ram end 20030000

'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'Netduino.IP.Interop'
 Invalid address 0 and range 40 Ram Start 20000000, Ram end 20030000

 Invalid address 1000fbb4 and range 4 Ram Start 20000000, Ram end 20030000

'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'Netduino.IP.LinkLayers.CC3100'
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Secret Labs\Netduino SDK\Assemblies\v4.3\le\SecretLabs.NETMF.Diagnostics.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Secret Labs\Netduino SDK\Assemblies\v4.3\le\GoBus.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Secret Labs\Netduino SDK\Assemblies\v4.3\le\SecretLabs.NETMF.Hardware.Netduino.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.OneWire.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Program Files\Secret Labs\Netduino SDK\Assemblies\v4.3\le\SecretLabs.NETMF.Hardware.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Microsoft.SPOT.Debugger.CorDebug.14.dll' (Managed): Loaded 'C:\Users\David\Documents\Visual Studio 2015\Projects\HelloNetduino\HelloNetduino\bin\Debug\le\HelloNetduino.exe', Symbols loaded.
An unhandled exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.dll

 Uncaught exception 
The thread '<No Name>' (0x2) has exited with code 0 (0x0).
Hello World
The thread '<No Name>' (0x1) has exited with code 0 (0x0).
The thread '<No Name>' (0x4) has exited with code 0 (0x0).
Done.
Waiting for debug commands...
The program '[4] Micro Framework application: Managed' has exited with code 0 (0x0).



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 06 July 2015 - 02:02 AM

Hi ishotjr,

It looks like the exception is happening on a background thread; in this particular case you're probably fine.

Really quickly: are you running the latest Netduino 3 Wi-Fi firmware release?

Chris

#3 ishotjr

ishotjr

    New Member

  • Members
  • Pip
  • 7 posts
  • LocationAnn Arbor, MI

Posted 12 July 2015 - 12:15 AM

Chris, first of all, thanks as always for the quick response!  :)  I'm running 4.3.2.2, which I believe is the latest, right?



#4 onedumbtrucker

onedumbtrucker

    Member

  • Members
  • PipPip
  • 13 posts

Posted 14 June 2016 - 03:25 PM

I have the exact same issue with the NetDuino3 Ethernet. Did we get anywhere with this?







Also tagged with one or more of these keywords: Visual Studio, VS2015, System.Exception

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.