Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
GeneralInstalling my program on other computers... Pin
Moochie57-Dec-04 13:14
Moochie57-Dec-04 13:14 
QuestionCombobox in C# : how to add for each Item a Tag ? Pin
youssef7-Dec-04 12:42
youssef7-Dec-04 12:42 
AnswerRe: Combobox in C# : how to add for each Item a Tag ? Pin
Skynyrd7-Dec-04 13:29
Skynyrd7-Dec-04 13:29 
AnswerRe: Combobox in C# : how to add for each Item a Tag ? Pin
Heath Stewart7-Dec-04 14:47
protectorHeath Stewart7-Dec-04 14:47 
AnswerRe: Combobox in C# : how to add for each Item a Tag ? Pin
Luis Alonso Ramos8-Dec-04 21:24
Luis Alonso Ramos8-Dec-04 21:24 
GeneralDynamicInvoke a remote object Pin
Skynyrd7-Dec-04 12:21
Skynyrd7-Dec-04 12:21 
GeneralRe: DynamicInvoke a remote object Pin
Heath Stewart7-Dec-04 14:48
protectorHeath Stewart7-Dec-04 14:48 
GeneralRe: DynamicInvoke a remote object Pin
Skynyrd8-Dec-04 0:57
Skynyrd8-Dec-04 0:57 
Hi Heath,

Sorry, i'm running VS in spanish so I'm not sure how to exactly translate any exception messages without confusing things any more :p

The calling code is as follows:

public delegate string TestMethod();
...
SingleCallManager manager=new SingleCallManager(typeof(IDataLayerTool),"tcp://localhost:8086/DataLayerTool.rem");
manager.RunMethod(typeof(TestMethod),"GetAssetsMenuLayout",null);
...

Complete info on exception is the following: The message would translate to "Error linking to target method." more or less.

[System.ArgumentException]: {"Error al enlazar con el método de destino." }
System.Object: {System.ArgumentException}
_className: null
_COMPlusExceptionCode: -532459699
_exceptionMethod:
_exceptionMethodString: null
_helpURL: null
_HResult: -2147024809
_innerException: { }
_message: "Error al enlazar con el método de destino."
_remoteStackIndex: 0
_remoteStackTraceString: null
_source: null
_stackTrace: {System.Array}
_stackTraceString: " at System.Delegate.InternalCreate(Object target, String method, Boolean ignoreCase)\r\n at System.Delegate.CreateDelegate(Type type, Object target, String method)\r\n at Vigila.Objects.SingleCallManager.RunMethod(Type methodType, String methodName, Object[] arguments) in d:\\proyectos .net\\código aplicaciones\\vigila 2\\vigila objects\\singlecallmanager.cs:line 128\r\n at Vigila.Client.VigilaStartUp.loadUpIniData() in d:\\proyectos .net\\código aplicaciones\\vigila 2\\vigila client\\vigilastartup.cs:line 63\r\n at Vigila.Objects.ThreadWorker.workingEnvelope() in D:\\Proyectos .NET\\Código Aplicaciones\\Vigila 2\\Vigila objects\\ThreadWorker.cs:line 153"
_xcode: -532459699
_xptrs: 0
HelpLink: null
HResult: -2147024809
InnerException: { }
Message: "Error al enlazar con el método de destino."
Source: "mscorlib"
StackTrace: " at System.Delegate.InternalCreate(Object target, String method, Boolean ignoreCase)\r\n at System.Delegate.CreateDelegate(Type type, Object target, String method)\r\n at Vigila.Objects.SingleCallManager.RunMethod(Type methodType, String methodName, Object[] arguments) in d:\\proyectos .net\\código aplicaciones\\vigila 2\\vigila objects\\singlecallmanager.cs:line 128\r\n at Vigila.Client.VigilaStartUp.loadUpIniData() in d:\\proyectos .net\\código aplicaciones\\vigila 2\\vigila client\\vigilastartup.cs:line 63\r\n at Vigila.Objects.ThreadWorker.workingEnvelope() in D:\\Proyectos .NET\\Código Aplicaciones\\Vigila 2\\Vigila objects\\ThreadWorker.cs:line 153"
TargetSite: {System.Reflection.RuntimeMethodInfo}

I repeat, if I implement a non-remote object and try the code, it works perfectly:

public class DummyTest
{
public DummyTest()
{
}

public string GetAssetsMenuLayout()
{
return "Succesful";
}
}

The GetAssetsMenuLayout of the IDataLayerTool has the exact same signature as the dummy class written above but I still cant link to it, and of course the remote object DataLayerTool implements the IDataLayerTool interface. (The transparent proxy getter would fail anyway if that weren't the case)

public interface IDataLayerTool
{
...
string GetAssetsMenuLayout();
...
}


GeneralRe: DynamicInvoke a remote object Pin
Javier Lozano7-Dec-04 15:02
Javier Lozano7-Dec-04 15:02 
GeneralRe: DynamicInvoke a remote object Pin
Skynyrd8-Dec-04 1:08
Skynyrd8-Dec-04 1:08 
GeneralRe: DynamicInvoke a remote object Pin
Javier Lozano8-Dec-04 5:07
Javier Lozano8-Dec-04 5:07 
GeneralRe: DynamicInvoke a remote object Pin
Heath Stewart8-Dec-04 5:58
protectorHeath Stewart8-Dec-04 5:58 
GeneralRe: DynamicInvoke a remote object Pin
Javier Lozano8-Dec-04 6:03
Javier Lozano8-Dec-04 6:03 
GeneralRe: DynamicInvoke a remote object Pin
Skynyrd8-Dec-04 11:26
Skynyrd8-Dec-04 11:26 
GeneralRe: DynamicInvoke a remote object Pin
Skynyrd8-Dec-04 11:43
Skynyrd8-Dec-04 11:43 
GeneralRe: DynamicInvoke a remote object Pin
Javier Lozano8-Dec-04 12:06
Javier Lozano8-Dec-04 12:06 
GeneralRe: DynamicInvoke a remote object Pin
Skynyrd8-Dec-04 13:18
Skynyrd8-Dec-04 13:18 
GeneralHTML style RichTextBox control Pin
Beringer7-Dec-04 12:06
Beringer7-Dec-04 12:06 
GeneralRe: HTML style RichTextBox control Pin
Beringer7-Dec-04 12:08
Beringer7-Dec-04 12:08 
GeneralRe: HTML style RichTextBox control Pin
Heath Stewart7-Dec-04 14:44
protectorHeath Stewart7-Dec-04 14:44 
GeneralSockets and Win2k Issues Pin
Tristan Rhodes7-Dec-04 11:34
Tristan Rhodes7-Dec-04 11:34 
GeneralRe: Sockets and Win2k Issues Pin
Heath Stewart7-Dec-04 14:27
protectorHeath Stewart7-Dec-04 14:27 
GeneralRe: Sockets and Win2k Issues Pin
Tristan Rhodes8-Dec-04 0:25
Tristan Rhodes8-Dec-04 0:25 
GeneralRe: Sockets and Win2k Issues Pin
Daniel Turini7-Dec-04 20:12
Daniel Turini7-Dec-04 20:12 
GeneralRe: Sockets and Win2k Issues Pin
Tristan Rhodes8-Dec-04 0:26
Tristan Rhodes8-Dec-04 0:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.