Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
AnswerRe: is their any way to ..................? Pin
13-Feb-04 6:39
suss13-Feb-04 6:39 
GeneralIncrementally create user controls Pin
Andrlage6-Feb-04 12:16
Andrlage6-Feb-04 12:16 
GeneralRe: Incrementally create user controls Pin
Colin Angus Mackay7-Feb-04 3:13
Colin Angus Mackay7-Feb-04 3:13 
GeneralRe: Incrementally create user controls Pin
Andres Coder7-Feb-04 7:41
Andres Coder7-Feb-04 7:41 
GeneralRe: Incrementally create user controls Pin
Andres Coder7-Feb-04 7:42
Andres Coder7-Feb-04 7:42 
Generalenter Pin
heba_zien6-Feb-04 11:14
heba_zien6-Feb-04 11:14 
GeneralRe: enter Pin
Bill Dean6-Feb-04 17:01
Bill Dean6-Feb-04 17:01 
QuestionIs implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Anonymous6-Feb-04 10:34
Anonymous6-Feb-04 10:34 
AnswerRe: Is implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Heath Stewart7-Feb-04 19:32
protectorHeath Stewart7-Feb-04 19:32 
GeneralRe: Is implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Anonymous7-Feb-04 22:38
Anonymous7-Feb-04 22:38 
GeneralRe: Is implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Heath Stewart8-Feb-04 5:41
protectorHeath Stewart8-Feb-04 5:41 
QuestionAny Articles on Delta values (saving only what has changed)? Pin
Grav-Vt6-Feb-04 9:49
Grav-Vt6-Feb-04 9:49 
AnswerRe: Any Articles on Delta values (saving only what has changed)? Pin
Daniel Turini6-Feb-04 10:20
Daniel Turini6-Feb-04 10:20 
GeneralRe: Any Articles on Delta values (saving only what has changed)? Pin
Kentamanos6-Feb-04 11:05
Kentamanos6-Feb-04 11:05 
GeneralConsume a Web Service Pin
hxxbin6-Feb-04 8:44
hxxbin6-Feb-04 8:44 
GeneralRe: Consume a Web Service Pin
Mazdak6-Feb-04 8:54
Mazdak6-Feb-04 8:54 
GeneralMarshaling Type of Unknown Size (SHItemID) Pin
Tristan Rhodes6-Feb-04 7:56
Tristan Rhodes6-Feb-04 7:56 
GeneralRe: Marshaling Type of Unknown Size (SHItemID) Pin
Nick Parker7-Feb-04 8:23
protectorNick Parker7-Feb-04 8:23 
Questionhow do I map a network drive in C# Pin
laptop_016-Feb-04 6:59
laptop_016-Feb-04 6:59 
AnswerRe: how do I map a network drive in C# Pin
Bill Dean6-Feb-04 7:13
Bill Dean6-Feb-04 7:13 
GeneralRe: how do I map a network drive in C# Pin
laptop_016-Feb-04 7:24
laptop_016-Feb-04 7:24 
GeneralProblem setting enum field value using Remoting Pin
claughlin6-Feb-04 6:18
claughlin6-Feb-04 6:18 
I am experiencing a very strange problem while trying to set the value of a public field in a class that is being accessed using .NET remoting. Assuming the following definitions:

public enum BuildMethod {
DropBox,
CVS,
}

public class BuildInfo : System.MarshalByRefObject {

/// <remarks>
public BuildMethod Method;

...
}


The problem occurs in my client when I am trying to set the value of the Method field of BuildInfo, i.e.:

xxxx.Method = BuildMethod.DropBox;

There does not appear to be a problem retrieving the value of the Method field, but only when I try to set it.


Exception Details:

System.Runtime.Remoting.RemotingException: The argument type 1 cannot be converted into parameter type Matrix.Definitions.Schema.BuildMethod.


Stack Trace:

[RemotingException: The argument type 1 cannot be converted into parameter type Matrix.Definitions.Schema.BuildMethod.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +264
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +877
System.Object.FieldSetter(String typeName, String fieldName, Object val) +0
Matrix.ProductMgmt.DeliveryMethodEditor.Save_Click(Object sender, EventArgs e) in D:\Matrix\WebApp\Application\ProductMgmt\DeliveryMethodEditor.ascx.cs:116
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1277



I am setting up the channel on the server side like this:

System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider SinkProvider =
new BinaryServerFormatterSinkProvider();
SinkProvider.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
IDictionary props = new Hashtable();
props["port"] = 10782;
this.ServiceChannel = new TcpChannel(props, null, SinkProvider);
ChannelServices.RegisterChannel(this.ServiceChannel);


I am making the object available on the server side using RemotingServices.Marshal().


I would appreciate any help or suggestions that anyone can provide. Thank you,
Clark Laughlin
GeneralRe: Problem setting enum field value using Remoting Pin
Heath Stewart7-Feb-04 19:39
protectorHeath Stewart7-Feb-04 19:39 
GeneralRe: Problem setting enum field value using Remoting Pin
ClarkLaughlin8-Feb-04 9:03
ClarkLaughlin8-Feb-04 9:03 
GeneralDate Difference Pin
hxxbin6-Feb-04 6:17
hxxbin6-Feb-04 6:17 

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.