mbraceproject / MBrace.StarterKit

A collection of demos and tutorials for MBrace
http://mbrace.io
57 stars 34 forks source link

System.NullReferenceException from Config.ProvisionCluster() #100

Closed FedericoBinda closed 5 years ago

FedericoBinda commented 5 years ago

Hi I am new both to Azure and MBrace. I have created a free trial account on Azure, then I created an ASP.NET empty Web App. I downloaded the publish settings file and copied its path in the AzureCluster.fsx script. I also changed the clusterName to something that I assume is valid ("TautologicsClusterFTW"). Finally, when I called Config.ProvisionCluster(), I got the following error message:

System.NullReferenceException: Object reference not set to an instance of an object at MBrace.Azure.Management.PublishSettings.Parse (System.String xml) [0x00024] in <59f868b42a876b09a7450383b468f859>:0 at MBrace.Azure.Management.SubscriptionManager.FromPublishSettingsFile (System.String publishSettingsFile, MBrace.Azure.Management.Region defaultRegion, Microsoft.FSharp.Core.FSharpOption1[T] subscriptionId, Microsoft.FSharp.Core.FSharpOption1[T] logger, Microsoft.FSharp.Core.FSharpOption`1[T] logLevel) [0x00007] in <59f868b42a876b09a7450383b468f859>:0 at FSI_0003.Config.ProvisionCluster () [0x00000] in <5d8356778ea54f76b26595d60529f3b1>:0 at <StartupCode$FSI_0004>.$FSI_0004.main@ () [0x00000] in <5d8356778ea54f76b26595d60529f3b1>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <71f4e3d7d65e42b0a699d02e59766d3c>:0

What am I doing wrong?

FedericoBinda commented 5 years ago

I solved the problem. I was using an incorrect publish settings file. The way to get to the correct one was simply following this link http://go.microsoft.com/fwlink/?LinkID=294709

isaacabraham commented 5 years ago

@FedericoBinda Great. You could also consider using the ARM Template as a slightly more lightweight way to deploy MBrace clusters to Azure.