(UWP) System.InvalidOperationException: Cannot call Set on a null context
See original GitHub issueI’m implement MonoTorrent in UWP project. It’s work perfect in Debug mode, but in Release mode (only happen on Release) (submit to Store), an UnhandledException happen with this error message You can see in attached sample UWP project
System.InvalidOperationException: Cannot call Set on a null context
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, Object) + 0x3e
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.CallMoveNext() + 0x7f
at System.Action.Invoke() + 0x25
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action, Boolean, Task&) + 0x43
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Cannot call Set on a null context · Issue #5603 · dotnet/ ...
After I built the latest corert build, I started gettting this error when working with WebClient and httpClient.
Read more >InvalidOperationException Class (System)
Attempting to cast a Nullable<T> value that is null to its underlying type throws an InvalidOperationException exception and displays the error message, " ......
Read more >Handling 'Sequence has no elements' Exception [duplicate]
You are using LINQ's First() method, which as per the documentation throws an InvalidOperationException if you are calling it on an empty ......
Read more >InvalidOperationException Unable resolve service ... - YouTube
InvalidOperationException Unable resolve service Context attempt activate Controller ASP.NET Core · Comments11.
Read more >Page cannot be null. Please ensure that this operation is ...
But when I try to render, I am getting error. Page cannot be null. Please ensure that this operation is being performed in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry - this change is in 1.0.14!
I’ll merge similar changes into the library so it works out of box on UWP. Thanks for verifying the fix!