Xamarin Studio Exception at open solution

HandelHandel BRMember
edited February 2013 in General

Hi,

I can't open or create any solution/project in the latest version of Xamarin Studio.
I always getting this exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.SourceEditor.DefaultSourceEditorOptions ---> System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.Projects.Policies.PolicyService ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Projects.Policies.PolicyService..cctor () [0x0008d] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs:69 
  --- End of inner exception stack trace ---
  at MonoDevelop.Projects.Policies.PolicyContainer.GetDefaultPolicy[DotNetNamingPolicy] () [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyContainer.cs:367 
  at MonoDevelop.Projects.Policies.PolicyContainer.Get[DotNetNamingPolicy] () [0x0004c] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyContainer.cs:65 
  at MonoDevelop.Projects.DotNetProject.get_ResourceHandler () [0x0000b] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:268 
  at MonoDevelop.Projects.DotNetProject.SetItemHandler (ISolutionItemHandler handler) [0x00013] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:1011 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load (IProgressMonitor monitor, MonoDevelop.Projects.Formats.MSBuild.MSBuildProject msproject) [0x00045] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:531 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat expectedFormat, System.String language, System.Type itemClass) [0x001eb] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:329 

Any idea what's going on?

Posts

  • mhutchmhutch USMember, Xamarin Team Xamurai

    This is a known issue, we're working on fixing it.

  • AsherAsher USMember

    Hi, I get this error too but in a different scenario
    In my project, I got a WebReference to a WCF Service which I'm using a webMetod that returns a bool and has a out DataSet parameter, the exception is thrown when I call a method async:

    WebMethod:

     [OperationContract]
     bool GetLocationDesc(int iID, out DataSet dsData);
    

    Xamarin Code:

    protected override void OnListItemClick(ListView l, View v, int position, long id)
       {
          Service1 ser = new Service1();
          ser.GetLocationDescAsync(5, true);
          ser.GetLocationDescCompleted += ser_GetLocationDescCompleted;
       }
    
       void ser_GetLocationDescCompleted(object sender, GetLocationDescCompletedEventArgs e)
       {
           Android.Widget.Toast.MakeText(this, e.dsData.Tables[0].Rows.Count.ToString(), Android.Widget.ToastLength.Short).Show();
       }
    

    it looks like there is a problem with the DataSet Object, because when I try to look on it, is thrown the exception

    Can you please help me to solve this?

    Thank you

Sign In or Register to comment.