Permission denied: cannot call non-public or static methods remotely.

Posted by rstat1 on Stack Overflow See other posts from Stack Overflow or by rstat1
Published on 2010-05-17T05:30:12Z Indexed on 2010/05/17 5:40 UTC
Read the original article Hit count: 563

Filed under:
|
|

Ok I've found a solution to this particular error message on here already. But my case is slightly different. There are no "non-public" or "static" methods in my code. All are public. What I'm trying to do is pass a FrameworkElement (more specifically a web browser control) that was created in one process over to another process for display and use. Also I'm not using (and would to avoid using) any of the framework 3.5 addin stuff.

Fails at the following line everytime.

fe = FrameworkElementAdapters.ContractToViewAdapter(tab.ReturnBrowserObject)

tab.ReturnBrowserObject returns an INativeHandleContract which the above line is suppose to convert to a FrameworkElement.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about vb.net