Good day, deleted and tried to add the axMsRdpClient COM object again (it worked before deletion), but already when I tried again to add an error to the form ...

Failed to create component 'AxHost'. The error message follows: 'System.Reflection.ReflectionTypeLoadException: Unable to load. Retreive the LoaderExceptions property for more information. System.Windows.Forms.Design.DocumentDesigner.AxToolboxItem.CreateComponentsCore (IDesignerHost host)

in System.Drawing.Design.ToolboxItem.CreateComponentsCore (IDesignerHost host, IDictionary defaultValues)

in System.Drawing.Design.ToolboxItem.CreateComponents (IDesignerHost host, IDictionary defaultValues)

in System.Windows.Forms.Design.OleDragDropHandler.CreateTool (ToolboxItem tool, Control parent, Int32 x, Int32 y, Int32 width, Int32 height, Boolean hasLocation, Boolean hasSize, ToolboxSnapDragDropEventArgs e) '

There are suggestions how to fix this glitch.

    1 answer 1

    I also came across it, I had to manually add both .dlls to the reference and add the control from the codebehind to the form. Or create a new project. This was noticed in VS 2013.

    • The problem was solved by your method thanks, not a big question yet, the axMsRdpClient7NotSafeForScripting1 component works fine when you first start, but when you reconnect, it displays the desktop that becomes inactive, that is, you can’t click on the remote desktop shortcuts, but when you click on axMsRdpClient7NotSafeForScripting, it doesn’t work. sound warning messages similar in sound to an attempt to change modal windows - SergD29
    • I did not work with 7, only with 9 - everything is normal there. In general, ActiveX control from MS is still a hodgepodge ... - Alexis
    • one
      oddly enough on win8.1 everything works on win7 no, and if i add focus to code then it stops working on win7 for the first time - SergD29