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

Strangeness with System.Security


  • Please log in to reply
1 reply to this topic

#1 DevBiker

DevBiker

    New Member

  • Members
  • Pip
  • 7 posts

Posted 28 May 2015 - 02:33 AM

It seems that if System.Security (from .NET MF) is added to a project and then deployed to my Netduino 3, the entire device crashes and burns. It becomes completely unresponsive and I am left with no option but to flash the device. It doesn't matter if you are actually using the assembly; just having it in the references will crash the Netduino, even if nothing from the assembly is even used. Once the reference is removed, everything is fine.

 

When deploying/debugging with Visual Studio, the debugger halts as it tries to load the symbols for System.Security. But even if the debugger is not attached, the Netduino just dies.

 

I have reproduced this with a very simple project that simply flashes the LED.

 

I have noticed that System.Security does not appear to be in the firmware for 4.2.2.2, even though Visual Studio marks "Copy Local" as false. Setting "Copy Local" to true doesn't help because then VS says that it can't find %ProgramFiles(x86)%\Microsoft .NET Micros Framework\v4.3\Assemblies\le\LE\System.Security.pe ... which doesn't exist at that location although it is in the Assemblies\le folder. Creating this folder and moving the files there so VS will happily try to deploy does not fix anything.

 

Any ideas on why this is happening?

 

Right now, there's nothing that I really need in this assembly but since it kept me up until the wee hours of the morning last night, I'm really curious if anyone has any ideas on what's going on.



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 28 May 2015 - 03:22 AM

Hi DevBiker,

Netduino 3 Wi-Fi doesn't have support client authentication, although we could support that in the future if it's a popularly-requested feature.

What were you trying to do with System.Security.dll in particular?

BTW, some of the NETMF DLLs rely on native code being already-deployed to a mainboard...but there's not necessarily a good way to know that in advance. I'm not sure about System.Security.dll--but that sounds like it could be the case here. The NETMF runtime just tends to stop during boot if it gets unhappy over a mismatch.

Chris




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.