[mono-android] Monodroid wierd error

Jonathan Pryor jonp at xamarin.com
Tue Oct 2 20:00:50 UTC 2012


On Oct 1, 2012, at 6:54 AM, mihaivader <mihaihui at yahoo.com> wrote:
> I'm getting this weird error when I try to deploy my app to the device. Any ideas ?
> 
> Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.Build.CommandLine.MSBuildApp' threw an exception.
> ---> System.InvalidOperationException: This operation is not supported for a relative URI.
>   at System.Uri.get_IsUnc()
>   at Microsoft.Build.CommandLine.MSBuildApp..cctor()
>   --- End of inner exception stack trace ---
>   at Microsoft.Build.CommandLine.MSBuildApp.Main()

Based on that stack trace, I think MSBuild itself is dying at startup.

I would suggest launching the "VS20xx Native Tools Command Line" app, then run:

	msbuild.exe

Just to see if it runs "stand-alone" or not. If it doesn't, reinstall Visual Studio; something is way wrong.

 - Jon



More information about the Monodroid mailing list