473,624 Members | 2,561 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

InvokeMember problem with remoting: method not found!

Jan
When I use Type.InvokeMemb er from my remoting server object I get a
MissingMethodEx ception: "Method '<namenot 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.
Sep 28 '06 #1
1 3115
Jan
I think I found the attribute but I still can't get it to work.

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

Any hints are welcome.

/Jan

Sep 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14437
by: Robert May | last post by:
We have a VB6 COM component that I don't have control over. All of the values are returned from method calls using byref parameters. They frequently break binary compatibility, in fact, there are three different versions of the component, one for dev, one for test, and one for production, all of which are broken with each re-compile, which means I can't use early binding and COM interop. Ugh. Using InvokeMember, how do I get values...
0
2010
by: Stephane D. | last post by:
I have currently an issue with the following piece of code. The assembly is to run under com+ (as Library) and the class derives from ServicedComponent. Code: C# - .NET framework V1.1.4322 // Prepare fully qualified class name fullyQualifiedNetClassTypeName = Namespace + "." + ClassName + ", " + AssemblyName + ", " + "Version=" + AssemblyVersion + ", " + "Culture=" + AssemblyCulture + ", " + "PublicKeyToken=" + PublicKeyToken;
0
421
by: Jared Hagel | last post by:
I can't use Type.InvokeMember(...) on a remote object. But when I use Type.InvokeMember(...) on a non-remote object in the exact same way, I don't have a problem. Does someone know what I'm doing wrong? Or if using InvokeMember on a remote object is just a bad idea? The reason I wish to use InvokeMember rather than to call the method directly is because I don't want to install the assembly describing
7
12022
by: hazz | last post by:
this is a repost with more concise code (well, for me) and better questions (I hope....) . given the following two classes, my intent is to use either Activator.CreateInstance or InvokeMember pass a token into the instantiated class DBPassword and return a string; ************************************** namespace DBPasswordProvider public class DBPassword {
0
3081
by: Alex Zhitlenok | last post by:
Hi, On Google, one can find a lot of statements that Invoke and InvokeMemeber work alike. However, my own experience contradicts this statement. 1. Surprisingly, Invoke and InvokeMember methods work differently! I'm working with some legacy COM. The COM object (CMyCOM) implements an interface that is not dual. The interface has a method, let say, HRESULT Foo(); The corresponded coclass defines an interface
3
3766
by: Laurent | last post by:
Hello, I'm having a problem trying to call a DLL assembly from a C# code with some special parameters. I have a global class used to store some parameters and work with them: public class GlobalClass { public int parameter1;
0
1306
by: Pat Ireland | last post by:
I continue to investigate issues with making explicit InvokeMember calls (necessary when dynamically loading classes). My quest lets me use a simple class to invoke another class's member method by normal means and by using the InvokeMember. By examining the underlying il code with ildasm, when attempting to pass by reference, the il code generates a box command so that a pointer to the actual data is passed. This is clearly seen with...
3
2321
by: Patrick Ireland | last post by:
I am dynamically loading a class. One of the methods of the class takes a short * (by reference) argument. However, the InvokeMember call used to invoke the method of the class passings arguments in and object . Since this is a pointer reference being passed it must be invoked in a unsafe {} even thought the dynamically loaded class is a .Net entity. The following is the test code that I am using to try and load a short * into an object:...
1
4751
by: hazz | last post by:
this is a repost with a hopefully more clearly stated scenario and more concise questions at the end. given the following two classes, my intent is to use pass a token into the instantiated class DBPassword and return a string; ************************************** public class DBPassword { public DBPassword() { //Empty constructor
0
8231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8330
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7153
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6107
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2603
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1474
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.