ms-iot / samples

Windows 10 IoT Core Samples
MIT License
1.2k stars 1.33k forks source link

AllJoyn ZigBeeAdapter crashes with System.ArgumentException #530

Closed MtotheKay closed 6 years ago

MtotheKay commented 6 years ago

Hello,

I'm trying to do this tutorial https://developer.microsoft.com/en-us/windows/iot/samples/zigbeeadapter

But when I start the Headed- or Headless-AdapterApp the App crashes with this:

Exception thrown: 'System.ArgumentException' in HeadedAdapterApp.exe WinRT information: dp An exception of type 'System.ArgumentException' occurred in HeadedAdapterApp.exe but was not handled in user code WinRT information: dp The parameter is incorrect.

dp

It gets stuck on Line 38 of the HeadedAdapter App: _applicationImplementation.OnLaunched(e);

` using System; using AdapterLib; using BackgroundHost.Headed; using BackgroundHost.Headed.Models; using Windows.ApplicationModel.Activation; using Windows.ApplicationModel.Background; using Windows.ApplicationModel.Core; using Windows.UI.Xaml;

namespace HeadedAdapterApp {

sealed partial class App : Application
{
    public App()
    {
        string bgTaskEntryPoint = typeof(HeadedBackgroundTask).FullName;
        _applicationImplementation = new ApplicationImplementation(bgTaskEntryPoint);
    }

    protected override void OnLaunched(LaunchActivatedEventArgs e)
    {
        _applicationImplementation.OnLaunched(e);
    }       

    private ApplicationImplementation _applicationImplementation;
}

} `

Do you have a fix for this?

Reagards

MtotheKay commented 6 years ago

Reinstalling Windows IoT did the job.