[GH-ISSUE #635] unexpected error occured when start the application from win7 #516

Closed
opened 2026-02-26 11:58:35 +03:00 by kerem · 1 comment
Owner

Originally created by @ptcgh on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/635

Originally assigned to: @VShawn on GitHub.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. start the program

Expected behavior

Environment

Component Version
PRemoteM 0.7.2.8(EXE Release)
.NET Framework ``
CLR 6.0.28
OS Windows 7 Home Premium 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][08:27:52.911]	`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()
[T:001][08:28:47.100]	`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()

Screenshots

Desktop (please complete the following information):

  • OS:Windows 7 Home Premium 64-bits 6.1.7601.0 ()
  • PRemoteM Version 0.7.2.8

Additional context

Originally created by @ptcgh on GitHub (Mar 27, 2024). Original GitHub issue: https://github.com/1Remote/1Remote/issues/635 Originally assigned to: @VShawn on GitHub. **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. start the program **Expected behavior** <details> ## Environment | Component | Version | |:------------------|:--------------------------------------| |PRemoteM | `0.7.2.8`(EXE Release)| |.NET Framework | `` | |CLR | `6.0.28` | |OS | `Windows 7 Home Premium 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][08:27:52.911] `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() [T:001][08:28:47.100] `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> **Screenshots** **Desktop (please complete the following information):** - OS:Windows 7 Home Premium 64-bits 6.1.7601.0 () - PRemoteM Version 0.7.2.8 **Additional context**
kerem 2026-02-26 11:58:35 +03:00
Author
Owner

@VShawn commented on GitHub (Mar 27, 2024):

sorry, win7 is not supported now.

<!-- gh-comment-id:2022218717 --> @VShawn commented on GitHub (Mar 27, 2024): sorry, win7 is not supported now.
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#516
No description provided.