New FEZ Cobra Window Application = Build error

Hi Guys,

Juts put the new firmware on and if I create a new FEZ Cobra Window Application from the templates and then build I get this:


------ Build started: Project: FEZ Cobra Window Application1, Configuration: Debug Any CPU ------
Build started 22/10/2010 07:16:13.
CoreResGen:
  "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\resgen.exe" /useSourcePath /r:"C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.1 SDK\Assemblies\FEZCobra_GHIElectronics.NETMF.FEZ.dll" /r:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Graphics.dll" /r:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Hardware.dll" /r:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Native.dll" /r:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.TinyCore.dll" /r:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\mscorlib.dll" /compile Resources.resx,obj\Debug\FEZ_Cobra_Window_Application1.Resources.resources
  Processing resource file "Resources.resx" into "obj\Debug\FEZ_Cobra_Window_Application1.Resources.resources".
CoreCompile:
  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;MF_FRAMEWORK_VERSION_V4_1 /reference:"C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.1 SDK\Assemblies\FEZCobra_GHIElectronics.NETMF.FEZ.dll" /reference:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Graphics.dll" /reference:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Hardware.dll" /reference:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Native.dll" /reference:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.TinyCore.dll" /reference:"C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\mscorlib.dll" /debug+ /debug:full /nowin32manifest /optimize- /out:"obj\Debug\FEZ Cobra Window Application.exe" /resource:obj\Debug\FEZ_Cobra_Window_Application1.Resources.resources /target:exe GPIOButtonInputProvider.cs Program.cs Properties\AssemblyInfo.cs Resources.Designer.cs
EnsureEndianAwareDirectories:
  Creating directory "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\le".
  Creating directory "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\be".
  Creating directory "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\bin\Debug\le".
  Creating directory "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\bin\Debug\be".
CopyExeToEndian:
  Copying file from "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\FEZ Cobra Window Application.exe" to "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\bin\Debug\le\FEZ Cobra Window Application.exe".
  Copying file from "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\FEZ Cobra Window Application.exe" to "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\bin\Debug\be\FEZ Cobra Window Application.exe".
  Copying file from "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\FEZ Cobra Window Application.pdb" to "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\bin\Debug\le\FEZ Cobra Window Application.pdb".
  Copying file from "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\FEZ Cobra Window Application.pdb" to "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\bin\Debug\be\FEZ Cobra Window Application.pdb".
MetaDataProcessorBE:
  C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Tools\MetaDataProcessor.exe -loadHints FEZCobra_GHIElectronics.NETMF.FEZ "C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.1 SDK\Assemblies\FEZCobra_GHIElectronics.NETMF.FEZ.dll" -loadHints Microsoft.SPOT.Graphics "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Graphics.dll" -loadHints Microsoft.SPOT.Hardware "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Hardware.dll" -loadHints Microsoft.SPOT.Native "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Native.dll" -loadHints Microsoft.SPOT.TinyCore "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.TinyCore.dll" -loadHints mscorlib "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\mscorlib.dll" -endian be -parse "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\bin\Debug\be\FEZ Cobra Window Application.exe" -minimize -importResource obj\Debug\FEZ_Cobra_Window_Application1.Resources.tinyresources -compile "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\be\FEZ Cobra Window Application.pe" 
MetaDataProcessor:
  C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Tools\MetaDataProcessor.exe -loadHints FEZCobra_GHIElectronics.NETMF.FEZ "C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.1 SDK\Assemblies\FEZCobra_GHIElectronics.NETMF.FEZ.dll" -loadHints Microsoft.SPOT.Graphics "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Graphics.dll" -loadHints Microsoft.SPOT.Hardware "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Hardware.dll" -loadHints Microsoft.SPOT.Native "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Native.dll" -loadHints Microsoft.SPOT.TinyCore "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.TinyCore.dll" -loadHints mscorlib "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\mscorlib.dll" -endian le -parse "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\bin\Debug\le\FEZ Cobra Window Application.exe" -minimize -importResource obj\Debug\FEZ_Cobra_Window_Application1.Resources.tinyresources -compile "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\le\FEZ Cobra Window Application.pe" 
GenerateStubs:
  Creating directory "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\Stubs\".
  C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Tools\MetaDataProcessor.exe -load "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\le\FEZ Cobra Window Application.pe" -load "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Graphics.pe" -load "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Hardware.pe" -load "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Native.pe" -load "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.TinyCore.pe" -load "C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\mscorlib.pe" -load "C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.1 SDK\Assemblies\LE\FEZCobra_GHIElectronics.NETMF.FEZ.pe" -resolve -verbose -generate_skeleton "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\Stubs\FEZ Cobra Window Application" FEZ Cobra Window Application FEZ Cobra Window Application -refresh_assembly FEZ Cobra Window Application "C:\Users\Andrew Capon\AppData\Local\Temporary Projects\FEZ Cobra Window Application1\obj\Debug\le\FEZ Cobra Window Application.pe" 
MMP : error MMP0000: 0xfd000000

Build FAILED.

Time Elapsed 00:00:00.50
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

Anyone any ideas?

Cheers

Andy

Did you update the firmware and SDK to the latest? If yes, you probably should post a zip file of your project.

You might also try stripping out and reincluding the proper assemblies.

Hi,

Thanks for the reply.

This is just creating a new project from the FEZ windows template, no old code used at all!

Everything updated and old framework deleted before installing new one,

If you create new project from template and then set the micro framework transport to EMX_EMX and then build you get the error.

If you create a new project, then build it is ok, then you can change the transport for deploy and everything is ok.

Strange!

Andy

Just tested it out, and if I understand you correctly, you get this error while debugging a new program via the template?

Just did this, and no error at all?

To Replicate just create new project from FEZ Windows template, immediately set the transport to emx_emx, then build.

If I build before setting the transport then it builds fine.

Cheers

Andy

Works fine? :stuck_out_tongue:

mmm, weird.

It is doing it for me with the console template as well!

I did the following:

Uninstalled the old framework

Installed the new one

Put the firmware on.

Checked version was correct.

I just opened a new VS, selected the Fez Cobra windows application template, plugged in my Cobra, went to properties and selected USB and the EMX_EMX popped up, hit Build and it worked fine. Deployed and it worked fine.

Sorry I know it doesn’t help, but it does seem to be localised to you :frowning:

Can you uninstall and reinstall the NETMF SDK? NOT the GHI one.

Try this:

Create new project,but don’t use default name. See if it still happening.

Hi Guys,

I un-installed installed both the microsoft and ghi sdks still same problem, but I have worked out the issue :slight_smile:

It is to do with “Generate native stubs for internal methods”, if this is ticked then the GHI templates do not build if the deploy device is EMX_EMX.

Now got to work out why I was ticking this box, I’m sure I read that I should somewhere!

Alright! glad you figured it out :slight_smile: Thanks for posting the error ;D :wink: