I'm converting my app from VB to C# and almost everything goes well except one thing:
namespace Recipe4share
{
public sealed partial class App : Application
{
protected override void OnActivated(ProtocolActivatedEventArgs args)
{
...
}
protected override void OnLaunched(Windows.ApplicationModel.Activation.LaunchActivatedEventArgs args)
{
...
}
...
}
}
I get the error as stated in the title of this thread. I can't find out what went wrong, especially with OnLaunched not causing the same error.
I compared I think almost everything with a C# app which works fine, and copy-pasted the OnActivated method in that app's app.xaml.cs and there was no error.