Skip to content

Exception when creating new game #11

@tewarid

Description

@tewarid

I cloned this repo, and updated the Windows 10 target version to 2004 (build 19041) when prompted by Visual Studio. Running the app and trying to create a new game results in the following exception

System.Runtime.InteropServices.COMException
  HResult=0x8007271D
  Message=An attempt was made to access a socket in a way forbidden by its access permissions.

An attempt was made to access a socket in a way forbidden by its access permissions.

  Source=System.Private.CoreLib
  StackTrace:
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  This exception was originally thrown at this call stack:
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)

Here's the call stack

 	System.Private.CoreLib.ni.dll!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task task)	Unknown
 	System.Private.CoreLib.ni.dll!System.Runtime.CompilerServices.TaskAwaiter.GetResult()	Unknown
 	[Waiting on Async Operation, double-click or press enter to view Async Call Stacks]	
>	NetworkHelper.dll!NetworkHelper.UdpManager.StartAdvertisingAsync() Line 99	C#
 	QuizGame.exe!QuizGame.ViewModel.GameViewModel.StartAdvertisingGameAsync(string name) Line 549	C#
 	QuizGame.exe!QuizGame.ViewModel.GameViewModel.get_CreateGameCommand.AnonymousMethod__20_0() Line 190	C#
 	QuizGame.exe!QuizGame.Common.DelegateCommand..ctor.AnonymousMethod__0(object o) Line 160	C#
 	QuizGame.exe!QuizGame.Common.DelegateCommandBase..ctor.AnonymousMethod__0(object arg) Line 235	C#
 	QuizGame.exe!QuizGame.Common.DelegateCommandBase.Execute(object parameter) Line 294	C#
 	QuizGame.exe!QuizGame.Common.DelegateCommandBase.System.Windows.Input.ICommand.Execute(object parameter) Line 280	C#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions