Get this exception in Visual Studio designer only for version 8.1.8 (not 8.1.0) for Sdk projects (not NET-Framework until 4.8) when placing SyntaxEdit on a form.
Microsoft Visual Studio
Failed to create component ‘SyntaxEdit’. The error message follows:
'Microsoft.DotNet.DesignTools.Client.DesignToolsServerException: Method not found: ‘Void System.Security.Cryptography.AsymmetricAlgorithm.FromXmlString(System.String)’.
at Microsoft.DotNet.DesignTools.Client.DesignToolsClient.d__49`1.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()
at Microsoft.DotNet.DesignTools.Protocol.Endpoints.DesignToolsEndpoints.DesignerHostsImpl.CreateComponent(SessionId sessionId, TypeIdentity type, String name, NameValuePairs defaultValues)
at Microsoft.WinForms.DesignTools.Client.Toolbox.WinFormsToolboxItem.CreateComponentsCore(IDesignerHost host, IDictionary defaultValues)
at System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)