[Mono-dev] SVN based mono monodevelop install, but (new) moonlight project gives error

ted leslie tleslie at tcn.net
Wed Jul 7 21:41:39 EDT 2010


Now when I build a moonlight project
i get:

Unhandled Exception: System.ArgumentException: Path is empty
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0 
  at ResourcePacker.Pack (System.Collections.Generic.List`1 files) [0x00000] in <filename unknown>:0 
  at ResourcePacker.Main (System.String[] args) [0x00000] in <filename unknown>:0 
Build complete -- 1 error, 0 warnings

So this is probably related to the other error, in that some primary path isn't set.
I tried setting the MOONLIGHT_SDK_PATH but that didn't help.

I am a bit confused on what/where exactly is the moonlight SDK (and with respect to svn as well),
the  

"You just have to download and extract my Moonlight SDK, extract it somewhere, then tell MonoDevelop where it using the MOONLIGHT_2_SDK_PATH environment variable:"

http://mjhutchinson.com/journal/2009/05/08/moonlight_development_linux_monodevelop

seems dated? and I can't find any other newer info.

tl

On Wed, 7 Jul 2010 19:43:22 -0400
ted leslie <tleslie at tcn.net> wrote:

> 
> I have built mono, monodevelop (even moonlight) from svn.
> Everything works fine, even the generated moonlight plugins to firefox and chrome and
> monodevelop works great, 
> BUT 
> on start up of monodevelop (or  if one tries to make a new moonlight project)
>  I get the following (enclosed below).
> I must be missing something simple with respect to building monodevelop from svn to get moonlight support?
> Any hints would be appreciated.
> 
> 
> FATAL ERROR [2010-07-07 19:19:40Z]: Unhandled exception in SystemAssemblyService background initialisation thread.
> System.NullReferenceException: Object reference not set to an instance of an object
>   at MonoDevelop.Moonlight.MoonlightFrameworkBackend+<GetMoonDirectories>c__Iterator4.MoveNext () [0x0006b] in /home/sysadm/svn/monodevelop/main/src/addins/MonoDevelop.Moonlight/MonoDevelop.Moonlight/MoonlightFrameworkBackend.cs:115 
>   at MonoDevelop.Moonlight.MoonlightFrameworkBackend.Initialize (MonoDevelop.Core.Assemblies.TargetRuntime runtime, MonoDevelop.Core.Assemblies.TargetFramework framework) [0x000b7] in /home/sysadm/svn/monodevelop/main/src/addins/MonoDevelop.Moonlight/MonoDevelop.Moonlight/MoonlightFrameworkBackend.cs:47 
>   at MonoDevelop.Core.Assemblies.TargetRuntime.GetBackend (MonoDevelop.Core.Assemblies.TargetFramework fx) [0x00079] in /home/sysadm/svn/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:274 
>   at MonoDevelop.Core.Assemblies.TargetRuntime.IsInstalled (MonoDevelop.Core.Assemblies.TargetFramework fx) [0x00000] in /home/sysadm/svn/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:472 
>   at MonoDevelop.Core.Assemblies.TargetRuntime.CreateFrameworks () [0x0012a] in /home/sysadm/svn/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:497 
>   at MonoDevelop.Core.Assemblies.TargetRuntime.RunInitialization () [0x0001c] in /home/sysadm/svn/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:389 
>   at MonoDevelop.Core.Assemblies.TargetRuntime.BackgroundInitialize () [0x0002d] in /home/sysadm/svn/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:364 
> 
> 
> 
> 
> 
> -- 
> ted leslie <tleslie at tcn.net>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 


-- 
ted leslie <tleslie at tcn.net>


More information about the Mono-devel-list mailing list