0

I am trying to debug with Rider a software created in C# that requires administrator privileges to start.
Pressing the debug button runs the build, which succeeds, but Rider does not try to attach to the process.

Here is a brief summary of what I did:

  • Run Rider with Administrator privileges(UAC)
  • Add AllowStrongNameBypass in registry
  • Add bypassTrustedAppStrongNames - enable:false in App.config

I expect the Rider debugger to work correctly and breakpoints etc. to work.

How can I fix this problem?

Thanks.


The same thing happens when Rider is started with administrator privileges.

I dumped the Rider logs and obtained the following stack trace:
(場所 => at, 厳格な名前の検証に失敗しました => Strong Name Validation Failed)

2022-07-07 18:57:13,758 [ 591328]   INFO - #c.j.r.d.e.DotNetHotReloadManager - Adding a debug hot reload process
2022-07-07 18:57:13,760 [ 591330]   WARN - #c.i.d.PerformanceWatcherImpl - UI was frozen for 1093ms, details saved to C:\Users\mikas\AppData\Local\JetBrains\Rider2022.1\log\threadDumps-freeze-20220707-185713-RD-221.5787.36-1sec
2022-07-07 18:57:13,813 [ 591383]   INFO - #c.i.u.WinFocusStealer - Foreground lock timeout set to 0
2022-07-07 18:57:13,820 [ 591390]   WARN - #c.i.o.a.i.ActionUpdater - 1154 ms to grab EDT for JsonPathExportEvaluateResultAction#update (com.intellij.jsonpath.ui.JsonPathExportEvaluateResultAction)
2022-07-07 18:57:13,860 [ 591430]   INFO - #c.i.u.WinFocusStealer - Foreground lock timeout set to 1700412
2022-07-07 18:57:14,157 [ 591727] SEVERE - #c.j.r.d.DebuggerWorkerProcessHandlerBase - Exception in debugger process: Unable to create debug session. Fire terminating. An exception was thrown while executing a resolve operation. See the InnerException for details. ---> ファイルまたはアセンブリ 'Microsoft.DiaSymReader.PortablePdb, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35'、またはその依存関係の 1 つが読み込めませんでした。厳密な名前の検証に失敗しました。 (HRESULT からの例外:0x8013141A) (See inner exception for details.)

--- EXCEPTION #1/4 [SecurityException]
Message = “厳密な名前の検証に失敗しました。 (HRESULT からの例外:0x8013141A)”
ExceptionPath = Root.InnerException.InnerException.InnerException
ClassName = System.Security.SecurityException
HResult = CORSEC_E_INVALID_STRONGNAME=8013141A
Action = “<ERROR> 値 '0' は enum 'SecurityAction' の有効な値ではありません。”
Zone = MyComputer

--- Outer ---

--- EXCEPTION #2/4 [FileLoadException]
Message = “ファイルまたはアセンブリ 'Microsoft.DiaSymReader.PortablePdb, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35'、またはその依存関係の 1 つが読み込めませんでした。厳密な名前の検証に失敗しました。 (HRESULT からの例外:0x8013141A)”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.IO.FileLoadException
Data.ThreadLocalDebugInfo = “property `DebuggerWorkerToFrontend.DebuggerWorkerModel.activeSession` (3931930616629755148)”
InnerException = “Exception #1 at Root.InnerException.InnerException.InnerException”
HResult = CORSEC_E_INVALID_STRONGNAME=8013141A
Source = mscorlib
FileLoad_FileName = “Microsoft.DiaSymReader.PortablePdb, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35”
StackTraceString = “
  場所 System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
     場所 System.Reflection.RuntimePropertyInfo.get_Signature()
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateProperties(Filter filter, RuntimeType declaringType, Dictionary`2 csPropertyInfos, Boolean[] usedSlots, ListBuilder`1& list)
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateProperties(Filter filter)
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.GetListByName(Char* pName, Int32 cNameLen, Byte* pUtf8Name, Int32 cUtf8Name, MemberListType listType, CacheType cacheType)
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.Populate(String name, MemberListType listType, CacheType cacheType)
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.GetMemberList(MemberListType listType, String name, CacheType cacheType)
     場所 System.RuntimeType.GetPropertyCandidates(String name, BindingFlags bindingAttr, Type[] types, Boolean allowPrefixLookup)
     場所 System.RuntimeType.GetProperties(BindingFlags bindingAttr)
     場所 Autofac.Core.Activators.Reflection.AutowiringPropertyInjector.InjectProperties(IComponentContext context, Object instance, IPropertySelector propertySelector, IEnumerable`1 parameters)
     場所 Autofac.Builder.RegistrationBuilder`3.<>c__DisplayClass32_0.<PropertiesAutowired>b__0(Object s, ActivatedEventArgs`1 e)
     場所 System.EventHandler`1.Invoke(Object sender, TEventArgs e)
     場所 Autofac.Core.Registration.ComponentRegistration.RaiseActivated(IComponentContext context, IEnumerable`1 parameters, Object instance)
     場所 Autofac.Core.Registration.ComponentRegistrationLifetimeDecorator.RaiseActivated(IComponentContext context, IEnumerable`1 parameters, Object instance)
     場所 Autofac.Core.Resolving.InstanceLookup.Complete()
     場所 Autofac.Core.Resolving.ResolveOperation.CompleteActivations()
     場所 Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
     場所 Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
”

--- Outer ---

--- EXCEPTION #3/4 [DependencyResolutionException]
Message = “An exception was thrown while executing a resolve operation. See the InnerException for details.”
ExceptionPath = Root.InnerException
ClassName = Autofac.Core.DependencyResolutionException
Data.ThreadLocalDebugInfo = “property `DebuggerWorkerToFrontend.DebuggerWorkerModel.activeSession` (3931930616629755148)”
InnerException = “Exception #2 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = Autofac
StackTraceString = “
  場所 Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
     場所 Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
     場所 Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
     場所 Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
     場所 Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
     場所 JetBrains.Debugger.Worker.DebuggerWorker.OnSessionCreated(Lifetime sessionLifetime, DotNetDebuggerSessionModel sessionModel)
”

--- Outer ---

--- EXCEPTION #4/4 [LoggerException]
Message = “Unable to create debug session. Fire terminating. An exception was thrown while executing a resolve operation. See the InnerException for details. ---> ファイルまたはアセンブリ 'Microsoft.DiaSymReader.PortablePdb, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35'、またはその依存関係の 1 つが読み込めませんでした。厳密な名前の検証に失敗しました。 (HRESULT からの例外:0x8013141A) (See inner exception for details.)”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #3 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  場所 JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
     場所 JetBrains.Util.ILoggerEx.Error(ILogger this, Exception ex, String message)
     場所 JetBrains.Debugger.Worker.DebuggerWorker.OnSessionCreated(Lifetime sessionLifetime, DotNetDebuggerSessionModel sessionModel)
     場所 JetBrains.Collections.Viewable.ReactiveEx.<>c__DisplayClass8_0`1.<ViewNotNull>b__0(Lifetime lf, T v)
     場所 JetBrains.Collections.Viewable.ReactiveEx.<>c__DisplayClass7_0`1.<View>b__0(T v)
     場所 JetBrains.Collections.Viewable.SignalBase`1.Fire(T value)
     場所 JetBrains.Collections.Viewable.ViewableProperty`1.set_Value(T value)
     場所 JetBrains.Rd.Impl.RdProperty`1.OnWireReceived(UnsafeReader reader)
     場所 JetBrains.Rd.Impl.MessageBroker.Execute(IRdWireable reactive, Byte[] msg)
     場所 JetBrains.Rd.Impl.MessageBroker.<>c__DisplayClass10_0.<Invoke>b__0()
     場所 Threading.QueuedTasks.ProcessDebuggerTask(QueuedDebuggerTask& item)
     場所 Threading.QueuedTasks.Pump(Func`1 condition, TimeSpan timeout, QueuedDebuggerTaskType type)
     場所 Threading.QueuedTasks.Pump(Func`1 condition)
     場所 Threading.DebuggerDispatcher.Run()
     場所 JetBrains.Debugger.Worker.DebuggerWorkerMain.<>c.<Main>b__3_0()
     場所 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
     場所 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     場所 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     場所 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
     場所 System.Threading.ThreadHelper.ThreadStart()
”

java.lang.Throwable: Exception in debugger process: Unable to create debug session. Fire terminating. An exception was thrown while executing a resolve operation. See the InnerException for details. ---> ファイルまたはアセンブリ 'Microsoft.DiaSymReader.PortablePdb, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35'、またはその依存関係の 1 つが読み込めませんでした。厳密な名前の検証に失敗しました。 (HRESULT からの例外:0x8013141A) (See inner exception for details.)

--- EXCEPTION #1/4 [SecurityException]
Message = “厳密な名前の検証に失敗しました。 (HRESULT からの例外:0x8013141A)”
ExceptionPath = Root.InnerException.InnerException.InnerException
ClassName = System.Security.SecurityException
HResult = CORSEC_E_INVALID_STRONGNAME=8013141A
Action = “<ERROR> 値 '0' は enum 'SecurityAction' の有効な値ではありません。”
Zone = MyComputer

--- Outer ---

--- EXCEPTION #2/4 [FileLoadException]
Message = “ファイルまたはアセンブリ 'Microsoft.DiaSymReader.PortablePdb, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35'、またはその依存関係の 1 つが読み込めませんでした。厳密な名前の検証に失敗しました。 (HRESULT からの例外:0x8013141A)”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.IO.FileLoadException
Data.ThreadLocalDebugInfo = “property `DebuggerWorkerToFrontend.DebuggerWorkerModel.activeSession` (3931930616629755148)”
InnerException = “Exception #1 at Root.InnerException.InnerException.InnerException”
HResult = CORSEC_E_INVALID_STRONGNAME=8013141A
Source = mscorlib
FileLoad_FileName = “Microsoft.DiaSymReader.PortablePdb, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35”
StackTraceString = “
  場所 System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
     場所 System.Reflection.RuntimePropertyInfo.get_Signature()
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateProperties(Filter filter, RuntimeType declaringType, Dictionary`2 csPropertyInfos, Boolean[] usedSlots, ListBuilder`1& list)
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateProperties(Filter filter)
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.GetListByName(Char* pName, Int32 cNameLen, Byte* pUtf8Name, Int32 cUtf8Name, MemberListType listType, CacheType cacheType)
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.Populate(String name, MemberListType listType, CacheType cacheType)
     場所 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.GetMemberList(MemberListType listType, String name, CacheType cacheType)
     場所 System.RuntimeType.GetPropertyCandidates(String name, BindingFlags bindingAttr, Type[] types, Boolean allowPrefixLookup)
     場所 System.RuntimeType.GetProperties(BindingFlags bindingAttr)
     場所 Autofac.Core.Activators.Reflection.AutowiringPropertyInjector.InjectProperties(IComponentContext context, Object instance, IPropertySelector propertySelector, IEnumerable`1 parameters)
     場所 Autofac.Builder.RegistrationBuilder`3.<>c__DisplayClass32_0.<PropertiesAutowired>b__0(Object s, ActivatedEventArgs`1 e)
     場所 System.EventHandler`1.Invoke(Object sender, TEventArgs e)
     場所 Autofac.Core.Registration.ComponentRegistration.RaiseActivated(IComponentContext context, IEnumerable`1 parameters, Object instance)
     場所 Autofac.Core.Registration.ComponentRegistrationLifetimeDecorator.RaiseActivated(IComponentContext context, IEnumerable`1 parameters, Object instance)
     場所 Autofac.Core.Resolving.InstanceLookup.Complete()
     場所 Autofac.Core.Resolving.ResolveOperation.CompleteActivations()
     場所 Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
     場所 Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
”

--- Outer ---

--- EXCEPTION #3/4 [DependencyResolutionException]
Message = “An exception was thrown while executing a resolve operation. See the InnerException for details.”
ExceptionPath = Root.InnerException
ClassName = Autofac.Core.DependencyResolutionException
Data.ThreadLocalDebugInfo = “property `DebuggerWorkerToFrontend.DebuggerWorkerModel.activeSession` (3931930616629755148)”
InnerException = “Exception #2 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = Autofac
StackTraceString = “
  場所 Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
     場所 Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
     場所 Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
     場所 Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
     場所 Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
     場所 JetBrains.Debugger.Worker.DebuggerWorker.OnSessionCreated(Lifetime sessionLifetime, DotNetDebuggerSessionModel sessionModel)
”

--- Outer ---

--- EXCEPTION #4/4 [LoggerException]
Message = “Unable to create debug session. Fire terminating. An exception was thrown while executing a resolve operation. See the InnerException for details. ---> ファイルまたはアセンブリ 'Microsoft.DiaSymReader.PortablePdb, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35'、またはその依存関係の 1 つが読み込めませんでした。厳密な名前の検証に失敗しました。 (HRESULT からの例外:0x8013141A) (See inner exception for details.)”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #3 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  場所 JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
     場所 JetBrains.Util.ILoggerEx.Error(ILogger this, Exception ex, String message)
     場所 JetBrains.Debugger.Worker.DebuggerWorker.OnSessionCreated(Lifetime sessionLifetime, DotNetDebuggerSessionModel sessionModel)
     場所 JetBrains.Collections.Viewable.ReactiveEx.<>c__DisplayClass8_0`1.<ViewNotNull>b__0(Lifetime lf, T v)
     場所 JetBrains.Collections.Viewable.ReactiveEx.<>c__DisplayClass7_0`1.<View>b__0(T v)
     場所 JetBrains.Collections.Viewable.SignalBase`1.Fire(T value)
     場所 JetBrains.Collections.Viewable.ViewableProperty`1.set_Value(T value)
     場所 JetBrains.Rd.Impl.RdProperty`1.OnWireReceived(UnsafeReader reader)
     場所 JetBrains.Rd.Impl.MessageBroker.Execute(IRdWireable reactive, Byte[] msg)
     場所 JetBrains.Rd.Impl.MessageBroker.<>c__DisplayClass10_0.<Invoke>b__0()
     場所 Threading.QueuedTasks.ProcessDebuggerTask(QueuedDebuggerTask& item)
     場所 Threading.QueuedTasks.Pump(Func`1 condition, TimeSpan timeout, QueuedDebuggerTaskType type)
     場所 Threading.QueuedTasks.Pump(Func`1 condition)
     場所 Threading.DebuggerDispatcher.Run()
     場所 JetBrains.Debugger.Worker.DebuggerWorkerMain.<>c.<Main>b__3_0()
     場所 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
     場所 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     場所 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     場所 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
     場所 System.Threading.ThreadHelper.ThreadStart()
”

    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:182)
    at com.jetbrains.rider.debugger.DebuggerWorkerProcessHandlerBase$1.invoke(DebuggerWorkerProcessHandlerBase.kt:22)
    at com.jetbrains.rider.debugger.DebuggerWorkerProcessHandlerBase$1.invoke(DebuggerWorkerProcessHandlerBase.kt:9)
    at com.jetbrains.rd.util.reactive.Signal.fire(Signal.kt:32)
    at com.jetbrains.rd.framework.impl.RdSignal.onWireReceived(RdSignal.kt:42)
    at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:57)
    at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:12)
    at com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:151)
    at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:56)
    at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:12)
    at com.jetbrains.rdclient.protocol.RdDispatcher.flushAll(RdDispatcher.kt:97)
    at com.jetbrains.rdclient.protocol.RdDispatcher.access$flushAll(RdDispatcher.kt:18)
    at com.jetbrains.rdclient.protocol.RdDispatcher$flushAllRunnable$1.run(RdDispatcher.kt:23)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:215)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:197)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
    at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:511)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:69)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:112)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
    at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

When I started Rider, I remembered the following error message in the lower right corner, and followed Microsoft's procedure.

Running Roslyn Analyzers requires loading opensource-signed .NET assemblies which is disabled on this machine. Consider disabling Strong Name validation.

I created DWORD entry with a value of 0 named AllowStrongNameBypass under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework keys.

I restarted the computer and Rider, but this did not work, so I edited app.config as follows:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
    </startup>
    <!-- I inserted begin -->
    <runtime>
        <bypassTrustedAppStrongNames enabled="false" />
    </runtime>
    <!-- I inserted end -->
</configuration>

I restarted Rider with this, but it did not cure my problem.

Thanks.

Peyang
  • 77
  • 8
  • 2
    That seems to be an internal Rider error - maybe you better contact the [support](https://rider-support.jetbrains.com/hc/en-us/requests/new?ticket_form_id=97145) – mu88 Jul 07 '22 at 11:31

0 Answers0