OVH Cloud OVH Cloud

QueryInterface for interface xxx.yyy failed.

3 réponses
Avatar
jerome.dayer
Hi,

I've a big problem.

I've 2 server Windows 2003 (A & B)

A is WWW
B is composant

When I install a composant on B and install his proxy on A, I can
instanciate the object but when I call a method from the object I
receive the QueryInterface for interface LoadDistantFile._loadFile
failed.

My test :

loadFileClass l = new loadFileClass() ;
Label1.Text = l.GetString() ;

thanks for your help

3 réponses

Avatar
Delf
a écrit :

When I install a composant on B and install his proxy on A, I can
instanciate the object but when I call a method from the object I
receive the QueryInterface for interface LoadDistantFile._loadFile
failed.



What is the error message?

--
Delf
Avatar
jerome.dayer
the message error is:

System.InvalidCastException: QueryInterface for interface
LoadDistantFile._loadFile failed.
Avatar
jed
Now, it's ok...

On the server B, I install another dll names DispatcherLoadDistantFile.


This one connect to the proxy dll and call function that I need to use.

See this link :
http://www.dotnet247.com/247reference/msgs/25/128688.aspx

But now I would like to use only port 135 and one other (ex: 65535) to
connect between these 2 servers. Now when the server A connect to B, A
connect on the port 135 and after A connect on a random port.

Have you a solution to make safe my solution