[Mono-list] /usr/bin/mono-service2: 41: Syntax error: Bad fd number

2009-03-17 Thread cmare

Hello.
When I want to start my service with mono-service2 -l:server.loc server.exe
I'm getting:

/usr/bin/mono-service2: 41: Syntax error: Bad fd number

mono -V
Mono JIT compiler version 1.2.6 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS:   __thread
GC:Included Boehm (with typed GC)
SIGSEGV:   altstack
Notifications: epoll
Architecture:  x86
Disabled:  none

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"

I did find this: https://bugs.launchpad.net/ubuntu/+source/mono/+bug/242925
but I don't know what to do with it??

The service is running fine on some another machines with thesame
software/hardware.

Thank's in advanced

Marko


-- 
View this message in context: 
http://www.nabble.com/-usr-bin-mono-service2%3A-41%3A-Syntax-error%3A-Bad-fd-number-tp22562994p22562994.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] .net remoting problem with object sending

2008-09-26 Thread cmare

I'm all so having problems with it. I get:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly 'Client' or one of its dependencies. The system cannot find the
file specified.
File name: 'Client'
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg,
System.Exception& exc, System.Object[]& out_args) [0x00185] in
/build/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs:227
 

I did follow a tutorial 
http://www.codeproject.com/KB/IP/csremoteevents1.aspx?msg=2740979 link to
tutorial . 

Any ideas?




Lluis Sanchez wrote:
> 
> The problem is that the receiver application can't deserialize the
> object because it can't find the assembly that implements it. In any
> case, remoting should not crash with a null ref exception. I just fixed
> it.
> 
> Lluis.
> 
> El dc 28 de 02 del 2007 a les 04:40 +0100, en/na Mirek Binas va
> escriure:
>> 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]
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: 
http://www.nabble.com/.net-remoting-problem-with-object-sending-tp9197526p19687572.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] MySql triggering an event in C#

2008-09-19 Thread cmare

Hello.

I wandering if you maybe have an idea how to do that:

I'm working with C# in mono and MySql on a ubuntu platform. I would like to
have an table with some colons in MySql. When something is written in the
table it should trigger an event in C# and delete the record in MySql. 

Have can I do that? Should I set up an timer and then read from the MySql or
is there an better way. I really don't want to use to much of CPU.

Thank's  
-- 
View this message in context: 
http://www.nabble.com/MySql-triggering-an-event-in-C--tp19547971p19547971.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list