[GH-ISSUE #461] Crash when running under Windows Server 2008 R2 #3282

Closed
opened 2026-03-13 08:44:37 +03:00 by kerem · 3 comments
Owner

Originally created by @shamork on GitHub (Jul 27, 2023).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/461

Originally assigned to: @VShawn on GitHub.

Crash when running under Windows Server 2008 R2

To Reproduce
Steps to reproduce the behavior:
just run the PRemoteM.exe

Expected behavior
works

Screenshots
(None)

Desktop (please complete the following information):

  • OS: [e.g. Win10 Pro 2004]
  • PRemoteM Version [e.g. 0.7.2.8]

Additional context

Environment

Component Version
PRemoteM 0.7.2.8(EXE Release)
.NET Framework ``
CLR 6.0.11
OS Windows Server 2008 R2 Enterprise 64-bits 6.1.7601.0 ()

InnerException Info

The type initializer for 'Microsoft.AppCenter.Utils.WindowsHelper' threw an exception.

InnerException Stack Trace

   at Microsoft.AppCenter.Utils.WindowsHelper.add_OnMinimized(WinEventDelegate value)
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..cctor()

Error Info

The type initializer for 'Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop' threw an exception.

Stack Trace

   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..ctor()
   at Microsoft.AppCenter.ApplicationLifecycleHelper.get_Instance()
   at Microsoft.AppCenter.AppCenter..ctor()
   at Microsoft.AppCenter.AppCenter.get_Instance()
   at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services)
   at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services)
   at PRM.Utils.MsAppCenterHelper.Init(String secret) in D:\a\1Remote\1Remote\Ui\Utils\MsAppCenterHelper.cs:line 39
   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\1Remote\1Remote\Ui\App.xaml.cs:line 19
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Recent Log

[T:001][13:15:15.764]	`Fatal`		[Bootstrapper.cs(OnUnhandledException:164)]	
> System.TypeInitializationException: The type initializer for 'Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Microsoft.AppCenter.Utils.WindowsHelper' threw an exception.
 ---> System.EntryPointNotFoundException: Unable to find an entry point named 'GetCurrentPackageFullName' in DLL 'kernel32.dll'.
   at Microsoft.AppCenter.Utils.WindowsHelper.GetCurrentPackageFullName(Int32& packageFullNameLength, StringBuilder packageFullName)
   at Microsoft.AppCenter.Utils.WindowsHelper._IsRunningAsUwp()
   at Microsoft.AppCenter.Utils.WindowsHelper..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.AppCenter.Utils.WindowsHelper.add_OnMinimized(WinEventDelegate value)
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..ctor()
   at Microsoft.AppCenter.ApplicationLifecycleHelper.get_Instance()
   at Microsoft.AppCenter.AppCenter..ctor()
   at Microsoft.AppCenter.AppCenter.get_Instance()
   at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services)
   at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services)
   at PRM.Utils.MsAppCenterHelper.Init(String secret) in D:\a\1Remote\1Remote\Ui\Utils\MsAppCenterHelper.cs:line 39
   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\1Remote\1Remote\Ui\App.xaml.cs:line 19
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
> StackTrace:    at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..ctor()
   at Microsoft.AppCenter.ApplicationLifecycleHelper.get_Instance()
   at Microsoft.AppCenter.AppCenter..ctor()
   at Microsoft.AppCenter.AppCenter.get_Instance()
   at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services)
   at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services)
   at PRM.Utils.MsAppCenterHelper.Init(String secret) in D:\a\1Remote\1Remote\Ui\Utils\MsAppCenterHelper.cs:line 39
   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\1Remote\1Remote\Ui\App.xaml.cs:line 19
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
> InnerException: The type initializer for 'Microsoft.AppCenter.Utils.WindowsHelper' threw an exception.
> Inner StackTrace:    at Microsoft.AppCenter.Utils.WindowsHelper.add_OnMinimized(WinEventDelegate value)
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..cctor()

Originally created by @shamork on GitHub (Jul 27, 2023). Original GitHub issue: https://github.com/1Remote/1Remote/issues/461 Originally assigned to: @VShawn on GitHub. Crash when running under Windows Server 2008 R2 **To Reproduce** Steps to reproduce the behavior: just run the PRemoteM.exe **Expected behavior** works **Screenshots** (None) **Desktop (please complete the following information):** - OS: [e.g. Win10 Pro 2004] - PRemoteM Version [e.g. 0.7.2.8] **Additional context** ## Environment | Component | Version | |:------------------|:--------------------------------------| |PRemoteM | `0.7.2.8`(EXE Release)| |.NET Framework | `` | |CLR | `6.0.11` | |OS | `Windows Server 2008 R2 Enterprise 64-bits 6.1.7601.0 ()` | ## InnerException Info The type initializer for 'Microsoft.AppCenter.Utils.WindowsHelper' threw an exception. ## InnerException Stack Trace ``` at Microsoft.AppCenter.Utils.WindowsHelper.add_OnMinimized(WinEventDelegate value) at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..cctor() ``` ## Error Info The type initializer for 'Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop' threw an exception. ## Stack Trace ``` at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..ctor() at Microsoft.AppCenter.ApplicationLifecycleHelper.get_Instance() at Microsoft.AppCenter.AppCenter..ctor() at Microsoft.AppCenter.AppCenter.get_Instance() at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services) at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services) at PRM.Utils.MsAppCenterHelper.Init(String secret) in D:\a\1Remote\1Remote\Ui\Utils\MsAppCenterHelper.cs:line 39 at Ui.App.OnStartup(StartupEventArgs e) in D:\a\1Remote\1Remote\Ui\App.xaml.cs:line 19 at System.Windows.Application.<.ctor>b__1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ``` ## Recent Log ``` [T:001][13:15:15.764] `Fatal` [Bootstrapper.cs(OnUnhandledException:164)] > System.TypeInitializationException: The type initializer for 'Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.AppCenter.Utils.WindowsHelper' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'GetCurrentPackageFullName' in DLL 'kernel32.dll'. at Microsoft.AppCenter.Utils.WindowsHelper.GetCurrentPackageFullName(Int32& packageFullNameLength, StringBuilder packageFullName) at Microsoft.AppCenter.Utils.WindowsHelper._IsRunningAsUwp() at Microsoft.AppCenter.Utils.WindowsHelper..cctor() --- End of inner exception stack trace --- at Microsoft.AppCenter.Utils.WindowsHelper.add_OnMinimized(WinEventDelegate value) at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..cctor() --- End of inner exception stack trace --- at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..ctor() at Microsoft.AppCenter.ApplicationLifecycleHelper.get_Instance() at Microsoft.AppCenter.AppCenter..ctor() at Microsoft.AppCenter.AppCenter.get_Instance() at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services) at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services) at PRM.Utils.MsAppCenterHelper.Init(String secret) in D:\a\1Remote\1Remote\Ui\Utils\MsAppCenterHelper.cs:line 39 at Ui.App.OnStartup(StartupEventArgs e) in D:\a\1Remote\1Remote\Ui\App.xaml.cs:line 19 at System.Windows.Application.<.ctor>b__1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) > StackTrace: at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..ctor() at Microsoft.AppCenter.ApplicationLifecycleHelper.get_Instance() at Microsoft.AppCenter.AppCenter..ctor() at Microsoft.AppCenter.AppCenter.get_Instance() at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services) at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services) at PRM.Utils.MsAppCenterHelper.Init(String secret) in D:\a\1Remote\1Remote\Ui\Utils\MsAppCenterHelper.cs:line 39 at Ui.App.OnStartup(StartupEventArgs e) in D:\a\1Remote\1Remote\Ui\App.xaml.cs:line 19 at System.Windows.Application.<.ctor>b__1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) > InnerException: The type initializer for 'Microsoft.AppCenter.Utils.WindowsHelper' threw an exception. > Inner StackTrace: at Microsoft.AppCenter.Utils.WindowsHelper.add_OnMinimized(WinEventDelegate value) at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop..cctor() ``` </details>
kerem 2026-03-13 08:44:37 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@VShawn commented on GitHub (Jul 27, 2023):

the package Microsoft.AppCenter do not support OS < Win10, that's why it crash.

I'm working on the package now, and it is currently unclear whether it can be fixed or not.

<!-- gh-comment-id:1653002421 --> @VShawn commented on GitHub (Jul 27, 2023): the package Microsoft.AppCenter do not support OS < Win10, that's why it crash. I'm working on the package now, and it is currently unclear whether it can be fixed or not.
Author
Owner

@VShawn commented on GitHub (Jul 28, 2023):

@shamork Hey could you help test the latest net48 version on win2008? I can't test it because I dont have a win2008.

you can get net48 artifact here:

https://github.com/1Remote/1Remote/actions/runs/5689079638

<!-- gh-comment-id:1655714748 --> @VShawn commented on GitHub (Jul 28, 2023): @shamork Hey could you help test the latest net48 version on win2008? I can't test it because I dont have a win2008. you can get net48 artifact here: https://github.com/1Remote/1Remote/actions/runs/5689079638
Author
Owner

@VShawn commented on GitHub (Jul 30, 2023):

I think we are not able to make a exe can runing on both win7 win2008 win10 win11. Since our requirement is Win10 and above, I will not spend any more time on this ticket.

<!-- gh-comment-id:1657054257 --> @VShawn commented on GitHub (Jul 30, 2023): I think we are not able to make a exe can runing on both win7 win2008 win10 win11. Since our requirement is Win10 and above, I will not spend any more time on this ticket.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#3282
No description provided.