[Mono-list] how to get user name in the linux system
hello i am trying to find a way, how to get the name/login of user, that run/started application. still not very successfuly. have you any idea, how to do it? thanks for help mirek -- e-mail: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] homepage: http://www.intrak.sk/~binas english: Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html slovak: prosim, neposielajte mi prilohy vo formatoch .doc a .ppt (power point) precitajte si http://www.fsf.org/philosophy/no-word-attachments.cs.html ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] .net remoting problem with object sending
hello i am trying to develop application with .net remoting for communication. at the moment - everything is well, but when i want to send object, that is not one of the default types, the exception raised: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object the object is not null (checked line before call of the remote method). and in the declaration of the class it is marked as [Serializable]. don't know, what is the problem about. any idea? mirek p.s.: the complete exception Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object Server stack trace: at System.Runtime.Remoting.Channels.SimpleBinder.BindToType (System.String assemblyName, System.String typeName) [0x0] at System.Runtime.Serialization.Formatters.Soap.SoapTypeMapper.GetType (System.String xmlName, System.String xmlNamespace) [0x0] at System.Runtime.Serialization.Formatters.Soap.SoapReader.Deserialize () [0x0] at System.Runtime.Serialization.Formatters.Soap.SoapReader.Deserialize (System.IO.Stream inStream, ISoapMessage soapMessage) [0x0] at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x0] at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize (System.IO.Stream serializationStream) [0x0] at System.Runtime.Remoting.Channels.SoapServerFormatterSink.ProcessMessage (IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x0] Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x0] -- e-mail: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] homepage: http://www.intrak.sk/~binas english: Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html slovak: prosim, neposielajte mi prilohy vo formatoch .doc a .ppt (power point) precitajte si http://www.fsf.org/philosophy/no-word-attachments.cs.html ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] mono and .net remoting
hello i am trying to create a distributed application and for communication between the nodes i found .net remoting should be very useful. so - i started to learn something, trying and - it's working. but - the examples in the tutorials of course ;) so - whats the problem: the nodes will be both types - the clients and the servers in the same time. there will be two types of nodes, so two types of remote objects. the server side is initialized and started right after start of the application. the problem is, that some counting and other processing need to be done on each node and i need to run a timer on each node. and in this timer - i cannot make remoting work. hmm... i created the channel and registered it in the Main() method - one channel for tcp communication for application. no problem, but its not working in the timer. so - i try to create another one in the timer, but also - its not working. all te examples i found on the internet were only showing the communication inside one application (no threads). can anybody tell me, what is wrong? i am new in the .net remoting, so maybe i just missed something. thanks a lot mirek -- e-mail: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] homepage: http://www.intrak.sk/~binas english: Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html slovak: prosim, neposielajte mi prilohy vo formatoch .doc a .ppt (power point) precitajte si http://www.fsf.org/philosophy/no-word-attachments.cs.html ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list