InvokeMember problem with remoting: method not found!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I use Type.InvokeMember from my remoting server object I get a
MissingMethodException: "Method '<name> not found.".

My code works when the code is called normally, but not when executed from
the remoting server object.

Yesterday I had it working but then I removed a security attribute from my
code because I didn't thing it was necessary (it came from an example I
found).
The attribute was set on both server and client main-method but I don't know
which one made it work. I also had it placed on the method creating the
server channel and in the client on the method that makes the conenction.

I was very stupid not to check it all in when it worked and I can't find the
example code again either.

Can anybody help me?

My code can be found in the post "Remoting beginner: Whats missing in this
code?"

PS. The debugger also acts strangely when hitting setting breakpoint in
server object now.
 
I think I found the attribute but I still can't get it to work.

I'm now using the attribute [SecurityPermission( SecurityAction.Demand )]
several places without any luck.

Any hints are welcome.

/Jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top