[SOLVED] Cannot deploy mscorlib

Hi,

I have installed everything according to your tutorials. I also upgraded the firmware on my Mountaineer Ethernet Mainboard to the latest beta (4.3.1).

After successful compile of my code, I want to debug it on the device and receive this error message:

Cannot deploy the base assembly ‘mscorlib’, or any of his satellite assemblies, to device - USB:a7e70ea2 twice. Assembly ‘mscorlib’ on the device has version 4.3.1.0, while the program is trying to deploy version 4.3.0.0

I have no idea of how to fix this. I started the project with netmf version 4.3 but this seems to be not sufficient to fit on a 4.3.1 device.

The complete output:

Looking for a device on transport ‘USB’
Starting device deployment…
Iteration 0
Opening port \?\usb#vid_0483&pid_a089#6&3c8adf&0&7#{d32d1d64-963d-463e-874a-8ec8c8082cbf}
Attaching debugger engine…
… debugger engine attached!
Querying device assemblies…
Found Assembly mscorlib 4.3.1.0
Found Assembly Microsoft.SPOT.Native 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.SerialPort 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.Usb 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.PWM 4.3.1.0
Found Assembly Microsoft.SPOT.Time 4.3.1.0
Found Assembly Microsoft.SPOT.Net 4.3.1.0
Found Assembly System 4.3.1.0
Found Assembly System.Xml 4.3.1.0
Found Assembly Microsoft.SPOT.Graphics 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.OneWire 4.3.1.0
Found Assembly Microsoft.SPOT.Update 4.3.1.0
Found Assembly MFUpdate 4.3.1.0
Found Assembly NetworkInformation 4.3.1.0
Found Assembly Oberon.NaCl.Netmf 1.0.0.0
Found Assembly System.Security.Cryptography.Netmf 4.3.1.0
Adding pe file D:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Graphics.pe to deployment bundle
Adding pe file D:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.IO.pe to deployment bundle
Adding pe file d:\users\jochen.schoenfeld\documents\visual studio 2012\Projects\GadgeteerApp3\GadgeteerApp3\bin\Debug\le\GadgeteerApp3.pe to deployment bundle
Adding pe file D:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.TinyCore.pe to deployment bundle
Adding pe file D:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.IO.pe to deployment bundle

Any ideas?

Sincerely,

Jochen

I just realized that I have indeed installed the 4.3 SDK. After having it uninstalled and installed the 4.3 RTM (QFE1), the error disappears and I can deploy the app.

But it still does not run as expected. Here is the output:

Found debugger!

Create TS.

Loading start at 8079ef0, end 8094770

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.Hardware.SerialPort (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.Usb (4.3.1.0)
Assembly: Microsoft.SPOT.Hardware.PWM (4.3.1.0) Assembly: Microsoft.SPOT.Time (4.3.1.0)
Assembly: Microsoft.SPOT.Net (4.3.1.0) Assembly: System (4.3.1.0) Assembly: System.Xml (4.3.1.0)
Assembly: Microsoft.SPOT.Graphics (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.OneWire (4.3.1.0)
Assembly: Microsoft.SPOT.Update (4.3.1.0) Assembly: MFUpdate (4.3.1.0) Assembly: NetworkInformation (4.3.1.0)
Assembly: Oberon.NaCl.Netmf (1.0.0.0) Assembly: System.Security.Cryptography.Netmf (4.3.1.0)
Loading Deployment Assemblies.

Attaching deployed file.

Assembly: GadgeteerApp2 (1.0.0.0) Attaching deployed file.

Assembly: System.IO (4.3.1.0) Attaching deployed file.

Assembly: Microsoft.SPOT.TinyCore (4.3.1.0) Attaching deployed file.

Assembly: Microsoft.SPOT.IO (4.3.1.0) Attaching deployed file.

Assembly: Mountaineer.Gadgeteer.MountaineerEth (4.2.2.0) Attaching deployed file.

Assembly: Gadgeteer (2.42.0.0) Attaching deployed file.

Assembly: GTM.Mountaineer.ButtonForMountaineer (4.2.2.0) Resolving.

Link failure: some assembly references cannot be resolved!!

Assembly: GadgeteerApp2 (1.0.0.0) needs assembly ‘Gadgeteer’ (2.42.0.0)

Assembly: GadgeteerApp2 (1.0.0.0) needs assembly ‘GTM.Mountaineer.ButtonForMountaineer’ (4.2.2.0)

Assembly: GadgeteerApp2 (1.0.0.0) needs assembly ‘Mountaineer.Gadgeteer.MountaineerEth’ (4.2.2.0)

Assembly: Mountaineer.Gadgeteer.MountaineerEth (4.2.2.0) needs assembly ‘Gadgeteer’ (2.42.0.0)

Assembly: Mountaineer.Gadgeteer.MountaineerEth (4.2.2.0) needs assembly ‘mscorlib’ (4.2.0.0)

Assembly: Mountaineer.Gadgeteer.MountaineerEth (4.2.2.0) needs assembly ‘Microsoft.SPOT.Hardware’ (4.2.0.0)

Assembly: Gadgeteer (2.42.0.0) needs assembly ‘mscorlib’ (4.2.0.0)

Assembly: Gadgeteer (2.42.0.0) needs assembly ‘Microsoft.SPOT.Hardware’ (4.2.0.0)

Assembly: Gadgeteer (2.42.0.0) needs assembly ‘Microsoft.SPOT.Hardware.PWM’ (4.2.0.1)

Assembly: Gadgeteer (2.42.0.0) needs assembly ‘Microsoft.SPOT.TinyCore’ (4.2.0.0)

Assembly: Gadgeteer (2.42.0.0) needs assembly ‘Microsoft.SPOT.Graphics’ (4.2.0.0)

Assembly: Gadgeteer (2.42.0.0) needs assembly ‘Microsoft.SPOT.Net’ (4.2.0.0)

Assembly: Gadgeteer (2.42.0.0) needs assembly ‘Microsoft.SPOT.Native’ (4.2.0.0)

Assembly: Gadgeteer (2.42.0.0) needs assembly ‘Microsoft.SPOT.IO’ (4.2.0.0)

Assembly: Gadgeteer (2.42.0.0) needs assembly ‘System.IO’ (4.2.0.0)

Assembly: GTM.Mountaineer.ButtonForMountaineer (4.2.2.0) needs assembly ‘Gadgeteer’ (2.42.0.0)

Assembly: GTM.Mountaineer.ButtonForMountaineer (4.2.2.0) needs assembly ‘mscorlib’ (4.2.0.0)

Assembly: GTM.Mountaineer.ButtonForMountaineer (4.2.2.0) needs assembly ‘Microsoft.SPOT.Hardware’ (4.2.0.0)

Error: a3000000

Waiting for debug commands…

Das Programm “[3] Micro Framework application: Verwaltet” wurde mit Code 0 (0x0) beendet.

Hi!

I uninstalled and reinstalled the Mountaineer, Gadgeteer and NETMF SDKs and reinstalled them in the correct order in your tutorial, now everything is fine.

Greetings,

Jochen

great to hear you sorted your problem out. But I would say you might have a legacy application and you may need to create your project again or completely rip and replace all references in the project to be totally safe. I say that because your project deployment starts with:

[quote]mscorlib (4.3.1.0)
[/quote]
and gets to

[quote]Assembly: GadgeteerApp2 (1.0.0.0) needs assembly ‘GTM.Mountaineer.ButtonForMountaineer’ (4.2.2.0)
[/quote]
so the Gadgeteer code is from a project built with 4.2…