Forum Visual Studio

Error while creating new Project

Hi guys,

I'm just trying to get into Xamarin and installed it on my mac.
After starting Xamarin studio, I wanted to create a tabbed Iphone project.

During project creation, the error below occured.
Any idea how to solve this?

System.ArgumentOutOfRangeException: Cannot be negative.
Parameter name: length
at System.String.Substring (Int32 startIndex, Int32 length) [0x0007c] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System/String.cs:445
at MonoDevelop.IPhone.Designer.IPhoneDesignerSdkManager+c__Iterator0.MoveNext () [0x000b0] in /Users/builder/data/lanes/1980/48d16bc4/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Designer/IPhoneDesignerSdkManager.cs:152
at MonoTouch.Design.Client.IPhoneDesignerService.AddKnownAttributes (IEnumerable`1 desiredConnections) [0x00033] in /Users/builder/data/lanes/1980/48d16bc4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerService.cs:106
at MonoDevelop.IPhone.Designer.IPhoneDesignerSdkManager.InitSdkConnection (Boolean reinit, System.Uri serverUri) [0x0004a] in /Users/builder/data/lanes/1980/48d16bc4/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Designer/IPhoneDesignerSdkManager.cs:63
at MonoDevelop.IPhone.Designer.IPhoneDesignerSdkManager.InitSdkConnection (Boolean reinit) [0x0002a] in /Users/builder/data/lanes/1980/48d16bc4/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Designer/IPhoneDesignerSdkManager.cs:52
at MonoDevelop.IPhone.Designer.IPhoneDesignerSdkManager.IncrementOpenProjectCount () [0x0003b] in /Users/builder/data/lanes/1980/48d16bc4/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Designer/IPhoneDesignerSdkManager.cs:85
at MonoDevelop.IPhone.IPhoneProject.Init () [0x00038] in /Users/builder/data/lanes/1980/48d16bc4/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneProject.cs:225
at MonoDevelop.IPhone.IPhoneProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x0000b] in /Users/builder/data/lanes/1980/48d16bc4/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneProject.cs:143
at MonoDevelop.IPhone.XamarinIOSProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00000] in /Users/builder/data/lanes/1980/48d16bc4/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/XamarinIOSProject.cs:33
at MonoDevelop.IPhone.XamarinIOSProjectBinding.CreateProject (MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00010] in /Users/builder/data/lanes/1980/48d16bc4/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/XamarinIOSProjectBinding.cs:21
at MonoDevelop.Projects.ProjectService.CreateProject (System.String type, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x0003f] in /Users/builder/data/lanes/1980/48d16bc4/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:491
at MonoDevelop.Ide.Templates.ProjectDescriptor.CreateItem (MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage) [0x00093] in /Users/builder/data/lanes/1980/48d16bc4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectDescriptor.cs:126
at MonoDevelop.Ide.Templates.SolutionDescriptor.CreateEntry (MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage) [0x00217] in /Users/builder/data/lanes/1980/48d16bc4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SolutionDescriptor.cs:160
at MonoDevelop.Ide.Templates.ProjectTemplate.CreateWorkspaceItem (MonoDevelop.Projects.ProjectCreateInformation cInfo) [0x0000e] in /Users/builder/data/lanes/1980/48d16bc4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectTemplate.cs:325
at MonoDevelop.Ide.Templates.ProjectTemplatingProvider.ProcessTemplate (MonoDevelop.Ide.Templates.DefaultSolutionTemplate template, MonoDevelop.Ide.Projects.NewProjectConfiguration config, MonoDevelop.Projects.SolutionFolder parentFolder) [0x0001a] in /Users/builder/data/lanes/1980/48d16bc4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectTemplatingProvider.cs:66
at MonoDevelop.Ide.Templates.ProjectTemplatingProvider.ProcessTemplate (MonoDevelop.Ide.Templates.SolutionTemplate template, MonoDevelop.Ide.Projects.NewProjectConfiguration config, MonoDevelop.Projects.SolutionFolder parentFolder) [0x0000a] in /Users/builder/data/lanes/1980/48d16bc4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectTemplatingProvider.cs:57
at MonoDevelop.Ide.Templates.TemplatingService.ProcessTemplate (MonoDevelop.Ide.Templates.SolutionTemplate template, MonoDevelop.Ide.Projects.NewProjectConfiguration config, MonoDevelop.Projects.SolutionFolder parentFolder) [0x00014] in /Users/builder/data/lanes/1980/48d16bc4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/TemplatingService.cs:112

Posts

  • AlanMcGovernAlanMcGovern USXamarin Team Xamurai

    Can you try the latest alpha? That issue should no longer exist there.

  • Thank you for the quick answer.

    How do I download the latest alpha?
    I went to your homepage -> Xamarin platform -> Download now

    There seems to be no way to decide which version to download. Where do I need to go?

  • You need to go to the "Xamarin Studio" menu in Xamarin Studio and choose "Check for Updates" then you have the option to choose the release channel. Change it to "Alpha" there.

Sign In or Register to comment.