Forum: Windows

Here is a forum space for SDK: Windows.

285. 401 error on Login in Visual Studio 2019

I'm using Visual Studio 2019 and programming in C#.
On debug mode in HelloPTT project,
Using Windows SDK default key:  retrieve 401 error

Aug 19 '22 at 12:46 (GMT0) created by 김범수

 
Visual Studio 2019 don't use vshost anymore.

#if DEBUG
       //For debugging
       //Please note when it is debug mode, the process name is helloptt.vshost.exe.
       //So license will be different.
       //private const string LICENSE = "S0000000-9110DFDEC86DE1ECE334DA7999228419-7A93289C";
       private const string LICENSE = "S0000000-41C4FB71FB433AE3A1E6FD9BC5606034-58A22507";
#else
       //The process name is helloptt.exe.
       private const string LICENSE = "S0000000-41C4FB71FB433AE3A1E6FD9BC5606034-58A22507";
#endif

Please change to 

private const string LICENSE = "S0000000-41C4FB71FB433AE3A1E6FD9BC5606034-58A22507";

Aug 19 '22 at 12:47 (GMT0) created by ProPTT2 dev