Click here to Skip to main content
15,921,577 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Floating point error in .NET Pin
Colin Angus Mackay10-Feb-04 12:47
Colin Angus Mackay10-Feb-04 12:47 
GeneralRe: Floating point error in .NET Pin
Nick Parker10-Feb-04 8:33
protectorNick Parker10-Feb-04 8:33 
GeneralDatabase connectivity for J# browser Controls Pin
8-Feb-04 23:08
suss8-Feb-04 23:08 
GeneralReal Time Loops in Managed C++ .NET Pin
Tank_Aviator8-Feb-04 11:49
Tank_Aviator8-Feb-04 11:49 
GeneralProblems with a text box & changing alignment in the leave event. Pin
adarobwpg7-Feb-04 21:03
adarobwpg7-Feb-04 21:03 
GeneralRe: Problems with a text box & changing alignment in the leave event. Pin
Gerald Leslie Jones10-Feb-04 1:32
Gerald Leslie Jones10-Feb-04 1:32 
GeneralRe: Problems with a text box & changing alignment in the leave event. Pin
Steve S10-Feb-04 1:40
Steve S10-Feb-04 1:40 
GeneralProblem setting enum field value using Remoting Pin
claughlin6-Feb-04 6:16
claughlin6-Feb-04 6:16 
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
Gerald Leslie Jones10-Feb-04 1:23
Gerald Leslie Jones10-Feb-04 1:23 
GeneralRe: Problem setting enum field value using Remoting Pin
ClarkLaughlin10-Feb-04 5:15
ClarkLaughlin10-Feb-04 5:15 
GeneralProblems with the .Net forms designer Pin
Christian Skovdal Andersen6-Feb-04 1:55
Christian Skovdal Andersen6-Feb-04 1:55 
Generalmaking a slow progam run faster Pin
Tank_Aviator5-Feb-04 19:31
Tank_Aviator5-Feb-04 19:31 
GeneralRe: making a slow progam run faster Pin
Corinna John8-Feb-04 21:27
Corinna John8-Feb-04 21:27 
GeneralRaw Sockets with TCP in C# Pin
Andy *M*5-Feb-04 13:00
Andy *M*5-Feb-04 13:00 
GeneralGUID_NULL identifier not found error... Pin
adonisv5-Feb-04 9:51
adonisv5-Feb-04 9:51 
GeneralWhy no more CDaoRecordset Class Wizard Pin
harwanegg4-Feb-04 22:37
harwanegg4-Feb-04 22:37 
GeneralRe: Why no more CDaoRecordset Class Wizard Pin
Steve S10-Feb-04 1:35
Steve S10-Feb-04 1:35 
GeneralPerformance Issues with C++ .NET Pin
Tank_Aviator4-Feb-04 11:09
Tank_Aviator4-Feb-04 11:09 
GeneralRe: Performance Issues with C++ .NET Pin
Roman Rodov11-Feb-04 14:50
Roman Rodov11-Feb-04 14:50 
GeneralComboBox SelectedIndex Pin
Mike Osbahr4-Feb-04 8:08
Mike Osbahr4-Feb-04 8:08 
GeneralRe: ComboBox SelectedIndex Pin
Gerald Leslie Jones8-Feb-04 23:41
Gerald Leslie Jones8-Feb-04 23:41 
GeneralCompact Framework and Remoting Pin
Bertrand Boichon4-Feb-04 6:20
Bertrand Boichon4-Feb-04 6:20 
GeneralSimple Problem With ListBoxes Pin
Pugman8123-Feb-04 17:31
Pugman8123-Feb-04 17:31 
GeneralRe: Simple Problem With ListBoxes Pin
John Kuhn3-Feb-04 19:19
John Kuhn3-Feb-04 19:19 
Question.NET included with IE7? Pin
Judah Gabriel Himango3-Feb-04 6:21
sponsorJudah Gabriel Himango3-Feb-04 6:21 

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.