'Hosted HWND must be a child window of the specified parent

Window contains Webbrowser control that has TopMost=true set. In code or XAML, program has uiAccess="true" flag in manifest file. C# WPF ppplication is digitally signed and placed in protected folder like C:\program files'. Error as mentioned in title is thrown on launching application and webbrowser control fails to load Can anyone suggest solution for the same ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source