Visual Studio 2013 March 2014 Update - nullexception error on Screen Load RRS feed

  • Question

  • After upgrading my Lightswitch Silverlight client projects to the March 2014 (Lightswitch V4.5), upon load of every screen, I get the error:

    Error launching the screen. Error: Object reference not set to an instance of an object

    I have traced the error into the class 

    Microsoft.LightSwitch.Runtime.Shell.ViewModels.Implementation.Commands.CommandsViewModel class .

    Within the method: CollectShellCommands()

    On the following code line:

    using (IEnumerator<IShellCommandGroupProvider> enumerator3 = this.GetCommandProviders().GetEnumerator())
    The GetCommandProviders() method returns a null:

    private IEnumerable<IShellCommandGroupProvider> GetCommandProviders()
                IEnumerable<IShellCommandGroupProvider> enumerable;
                VsExportProviderService.TryGetExportedValues<IShellCommandGroupProvider>(Scopes.Local, VsExportSharingPolicy.IncludeExportsFromOthers, out enumerable);
                return enumerable;

    I have recreated this on two different development environments and 2 independently developed lightswitch projects.

    Any assistance would be appreciated.


    Friday, April 4, 2014 4:10 PM


  • This was caused by the extension "LightSwitch Extensions Made Easy" found on the VisualStudioGallery.msdn.microsoft.com

    Removing this from the project resolved the issue.

    Tuesday, April 8, 2014 2:52 PM