Best Answer dorathoto, 26 March 2014 - 12:07 PM
  | ||||||||||||||
My first project - error mscorlib version
Started by dorathoto, Mar 26 2014 11:27 AM
Best Answer dorathoto, 26 March 2014 - 12:07 PM
Pinging... TinyCLR
Connecting to NetduinoPlus2_Netduino...Connected
DeviceInfo:
HAL build info: 4.3.1.0, Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
OEM Product codes (vendor, model, SKU): 34, 177, 4102
Serial Numbers (module, system):
00000000000000000000000000000000
0000000000000000
Solution Build Info: 4.3.1.0, Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
AppDomains:
default, id=1
Assemblies:
mscorlib,4.3.1.0
Microsoft.SPOT.Native,4.3.1.0
Microsoft.SPOT.Hardware,4.3.1.0
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
SecretLabs.NETMF.Hardware.Netduino,4.2.1.0
LED01,1.0.0.0
SecretLabs.NETMF.Hardware,4.2.0.0
Go to the full post
4 replies to this topic
#1Posted 26 March 2014 - 11:27 AM My First project and:
Error 1 Cannot deploy the base assembly 'mscorlib', or any of his satellite assemblies, to device - USB:Netduino twice. Assembly 'mscorlib' on the device has version 4.3.1.0, while the program is trying to deploy version 4.3.0.0
in my visual studio does not appear 4.3.1 only 4.3 framework
Visual studio 2012.
instaled: Netduino SDK v4.3.1 (feb 2014)
#2Posted 26 March 2014 - 12:01 PM uninstalled everything and installed everything from scratch now .. it worked ..
or almost!
compiles perfectly.
But of this output:
Found debugger!
Found debugger!
Assembly: SecretLabs.NETMF.Hardware.Netduino (4.2.1.0) needs assembly 'Microsoft.SPOT.Hardware' (4.2.0.0)
Assembly: SecretLabs.NETMF.Hardware.Netduino (4.2.1.0) needs assembly 'mscorlib' (4.2.0.0)
Assembly: LED01 (1.0.0.0) needs assembly 'SecretLabs.NETMF.Hardware.Netduino' (4.2.1.0)
Assembly: LED01 (1.0.0.0) needs assembly 'Microsoft.SPOT.Hardware' (4.2.0.0)
Error: a3000000
Waiting for debug commands ...
The program '[4] Micro Framework application: Managed' has exited with code 0 (0x0).
#3Posted 26 March 2014 - 12:07 PM Best Answer Pinging... TinyCLR
Connecting to NetduinoPlus2_Netduino...Connected
DeviceInfo:
HAL build info: 4.3.1.0, Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
OEM Product codes (vendor, model, SKU): 34, 177, 4102
Serial Numbers (module, system):
00000000000000000000000000000000
0000000000000000
Solution Build Info: 4.3.1.0, Netduino Plus 2 (v4.3.1.0) by Secret Labs LLC
AppDomains:
default, id=1
Assemblies:
mscorlib,4.3.1.0
Microsoft.SPOT.Native,4.3.1.0
Microsoft.SPOT.Hardware,4.3.1.0
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
SecretLabs.NETMF.Hardware.Netduino,4.2.1.0
LED01,1.0.0.0
SecretLabs.NETMF.Hardware,4.2.0.0
#4Posted 24 January 2015 - 12:18 PM This is basically due to the fact the project's target .net framework version is 4.3 where as the firmware matches 4.2
Select your project in the solution explorer
Go to properties
Under application change the "Target framework to 4.2 instead of 4.3"
#5Posted 27 June 2015 - 03:51 PM I ran into this one also. I'm brand new to Netduino, but am a .Net professional, so I am familiar with problems with project references.
Investigating, I noticed that for some reason, the getting started project I had created (using Visual Studio 2013) with all of the references set to v4.3, but the version of the mscorlib that was referrenced by the project was still v4.2.
Running the MF Deployment tool, I did a Plug-N | Debug | Show Device Info command and saw that my Netduino had v4.3 in its firmware (I had run the firmware update process on my Netduino to bring it up to v4.3).
So in the VS Solutions Explorer window I expanded the References node of my blinky project and clicked on the mscorlib entry (the 4.2 version, as you can see in the Properties window when you click on mscorlib). I removed that reference.
Then I did an Add Reference. In the .Net tab of the Add Reference dialog, I found the mscorlib entry. But I noticed that it was v4.2 and that there was no entry for a version 4.3. So this told me I'd have to add the reference "by hand".
So I clicked on the Browse tab, and navigated over to the v4.3 install directory and selected the mscorlib.dll. It was located in the C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le folder on my computer.
This fixed that problem.
This procedure of manually referencing the v4.3 mscorlib also seems to have fixed the problem of the v4.3 version not showing up in the .Net tab of the Add Reference dialog in VS. Now it does.
Hope this helps someone! DiverBW - Rookie Netduino developer and hobbiest (since June of 2015) - Professional software architect and developer (since mid 1970's). 0 user(s) are reading this topic0 members, 0 guests, 0 anonymous users | ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||