[GH-ISSUE #338] Error attempted to perform an unauthorized operation with enabled option Run automatic at OS startup #1256

Closed
opened 2026-02-28 12:03:21 +03:00 by kerem · 0 comments
Owner

Originally created by @VShawn on GitHub (Jan 10, 2023).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/338

Originally assigned to: @VShawn on GitHub.

attempted to perform an unauthorized operation was thrown when set Run automatic at OS startup on some user's PC(Windows10 Pro).

I guess it's a issue relate to UAC

Environment

| Component | Version |

|:------------------|:--------------------------------------|

|PRemoteM | 0.7.2.1(EXE Release)|

|.NET Framework | `` |

|CLR | 6.0.12 |

|OS | Windows 10 Pro 64-bits 10.0.18363.0 (1909) |

Error Info

Attempted to perform an unauthorized operation.

Stack Trace


   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196

   at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186

   at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250

   at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76

   at Stylet.BootstrapperBase.Start(String[] args)

   at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e)

   at System.Windows.Application.OnStartup(StartupEventArgs e)

   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20

   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:49:56.989]	`Debug`		SetSelfStartingHelper.SetSelfStartByRegistryKey(True, "PRemoteM")

[T:001][08:49:57.388]	`Fatal`		[Bootstrapper.cs(OnUnhandledException:153)]	

> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.

   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196

   at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186

   at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250

   at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76

   at Stylet.BootstrapperBase.Start(String[] args)

   at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e)

   at System.Windows.Application.OnStartup(StartupEventArgs e)

   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20

   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.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196

   at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186

   at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250

   at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76

   at Stylet.BootstrapperBase.Start(String[] args)

   at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e)

   at System.Windows.Application.OnStartup(StartupEventArgs e)

   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20

   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)

[T:001][09:22:14.091]	`Debug`		SetSelfStartingHelper.SetSelfStartByRegistryKey(True, "PRemoteM")

[T:001][09:22:14.230]	`Fatal`		[Bootstrapper.cs(OnUnhandledException:153)]	

> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.

   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196

   at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186

   at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250

   at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76

   at Stylet.BootstrapperBase.Start(String[] args)

   at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e)

   at System.Windows.Application.OnStartup(StartupEventArgs e)

   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20

   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.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196

   at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186

   at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250

   at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76

   at Stylet.BootstrapperBase.Start(String[] args)

   at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e)

   at System.Windows.Application.OnStartup(StartupEventArgs e)

   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20

   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)

[T:005][09:29:18.585]	`Debug`		NamedPipeServerStream get: ActivateMe

[T:001][09:29:24.633]	`Debug`		SetSelfStartingHelper.SetSelfStartByRegistryKey(True, "PRemoteM")

[T:001][09:29:24.778]	`Fatal`		[Bootstrapper.cs(OnUnhandledException:153)]	

> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.

   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196

   at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186

   at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250

   at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76

   at Stylet.BootstrapperBase.Start(String[] args)

   at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e)

   at System.Windows.Application.OnStartup(StartupEventArgs e)

   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20

   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.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196

   at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186

   at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250

   at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76

   at Stylet.BootstrapperBase.Start(String[] args)

   at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e)

   at System.Windows.Application.OnStartup(StartupEventArgs e)

   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20

   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)

[T:005][09:29:35.573]	`Debug`		NamedPipeServerStream get: ActivateMe

[T:001][09:30:40.442]	`Debug`		SetSelfStartingHelper.SetSelfStartByRegistryKey(True, "PRemoteM")

[T:001][09:30:40.588]	`Fatal`		[Bootstrapper.cs(OnUnhandledException:153)]	

> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.

   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196

   at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186

   at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250

   at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76

   at Stylet.BootstrapperBase.Start(String[] args)

   at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e)

   at System.Windows.Application.OnStartup(StartupEventArgs e)

   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20

   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.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196

   at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186

   at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250

   at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76

   at Stylet.BootstrapperBase.Start(String[] args)

   at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e)

   at System.Windows.Application.OnStartup(StartupEventArgs e)

   at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20

   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)



Originally created by @VShawn on GitHub (Jan 10, 2023). Original GitHub issue: https://github.com/1Remote/1Remote/issues/338 Originally assigned to: @VShawn on GitHub. `attempted to perform an unauthorized operation` was thrown when set `Run automatic at OS startup` on some user's PC(Windows10 Pro). I guess it's a issue relate to UAC <details> ## Environment | Component | Version | |:------------------|:--------------------------------------| |PRemoteM | `0.7.2.1`(EXE Release)| |.NET Framework | `` | |CLR | `6.0.12` | |OS | `Windows 10 Pro 64-bits 10.0.18363.0 (1909)` | ## Error Info Attempted to perform an unauthorized operation. ## Stack Trace ``` at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196 at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186 at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250 at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76 at Stylet.BootstrapperBase.Start(String[] args) at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20 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:49:56.989] `Debug` SetSelfStartingHelper.SetSelfStartByRegistryKey(True, "PRemoteM") [T:001][08:49:57.388] `Fatal` [Bootstrapper.cs(OnUnhandledException:153)] > System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196 at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186 at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250 at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76 at Stylet.BootstrapperBase.Start(String[] args) at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20 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.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196 at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186 at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250 at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76 at Stylet.BootstrapperBase.Start(String[] args) at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20 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) [T:001][09:22:14.091] `Debug` SetSelfStartingHelper.SetSelfStartByRegistryKey(True, "PRemoteM") [T:001][09:22:14.230] `Fatal` [Bootstrapper.cs(OnUnhandledException:153)] > System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196 at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186 at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250 at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76 at Stylet.BootstrapperBase.Start(String[] args) at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20 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.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196 at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186 at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250 at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76 at Stylet.BootstrapperBase.Start(String[] args) at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20 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) [T:005][09:29:18.585] `Debug` NamedPipeServerStream get: ActivateMe [T:001][09:29:24.633] `Debug` SetSelfStartingHelper.SetSelfStartByRegistryKey(True, "PRemoteM") [T:001][09:29:24.778] `Fatal` [Bootstrapper.cs(OnUnhandledException:153)] > System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196 at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186 at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250 at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76 at Stylet.BootstrapperBase.Start(String[] args) at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20 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.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196 at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186 at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250 at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76 at Stylet.BootstrapperBase.Start(String[] args) at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20 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) [T:005][09:29:35.573] `Debug` NamedPipeServerStream get: ActivateMe [T:001][09:30:40.442] `Debug` SetSelfStartingHelper.SetSelfStartByRegistryKey(True, "PRemoteM") [T:001][09:30:40.588] `Fatal` [Bootstrapper.cs(OnUnhandledException:153)] > System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196 at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186 at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250 at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76 at Stylet.BootstrapperBase.Start(String[] args) at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20 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.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.SetValueCore(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind) at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) at PRM.Utils.SetSelfStartingHelper.SetSelfStartByRegistryKey(Boolean isSetSelfStart, String appName) in D:\a\PRemoteM\PRemoteM\Ui\Utils\SetSelfStartingHelper.cs:line 196 at PRM.Service.ConfigurationService..ctor(Configuration cfg, KeywordMatchService keywordMatchService) in D:\a\PRemoteM\PRemoteM\Ui\Service\ConfigurationService.cs:line 186 at PRM.AppInit.InitOnStart() in D:\a\PRemoteM\PRemoteM\Ui\AppInit.cs:line 250 at PRM.Bootstrapper.OnStart() in D:\a\PRemoteM\PRemoteM\Ui\Bootstrapper.cs:line 76 at Stylet.BootstrapperBase.Start(String[] args) at Stylet.BootstrapperBase.<Setup>b__9_0(Object o, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at Ui.App.OnStartup(StartupEventArgs e) in D:\a\PRemoteM\PRemoteM\Ui\App.xaml.cs:line 20 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) ``` </details>
kerem 2026-02-28 12:03:21 +03:00
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#1256
No description provided.