Re: [Mono-list] Ubuntu 11.10 configuration problem

2011-11-06 Thread Jörg Rosenkranz
I have the same problem with a custom compiled f-spot. Running it using mono 
--runtime=v4.0 f-spot.exe fixes it for me. The program should be compiled 
against framework 3.5 though.

I haven't found a reason for that, but it seems to depend on Ubuntu's mono 
install.

Joerg

Am 04.11.2011 um 13:16 schrieb Ian Norton 
:

> It could be that your program is compiled for .net 4.0 but your mono doesnt
> support it.
> 
> On Fri, Nov 04, 2011 at 12:29:58AM +, Matthew Fleming wrote:
>> Hi,
>> 
>> I'm entirely new to mono so I'd really appreciate help with the following.
>> I am trying to run OpenVista CIS, which is supposed to run with mono under
>> Linux, on Ubuntu 11.10. I get the following errors:
>> 
>> mfleming@mgf-desktop:~/openvista/openvistacis-0.9.96-client$
>> ./OpenVistaCIS.exe
>> Missing method System.Reflection.Assembly::op_Equality(Assembly,Assembly)
>> in assembly /usr/lib/mono/2.0/mscorlib.dll, referenced in assembly
>> /usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll
>> ---Initial Exception---
>> Method not found: 'System.Reflection.Assembly.op_Equality'.
>>  at Medsphere.OpenVista.CIS.OVMain.Run (System.String[] args) [0x0]
>> in :0
>>  at Medsphere.OpenVista.CIS.OVMain.Main (System.String[] args) [0x0]
>> in :0
>> 
>> ---Second Exception---
>> An exception was thrown by the type initializer for Nest
>>  at Medsphere.OpenVista.CIS.OVMain.ShowUnhandledException
>> (System.Exception ex) [0x0] in :0
>> [ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method
>> not found: 'System.Reflection.Assembly.op_Equality'.
>>  at Medsphere.OpenVista.CIS.OVMain.Run (System.String[] args) [0x0]
>> in :0
>>  at Medsphere.OpenVista.CIS.OVMain.Main (System.String[] args) [0x0]
>> in :0
>> 
>> It appears to me that this is probably a problem with the way mono is
>> configured in this Ubuntu distro, but I have no idea how to fix it. Any
>> assistance would be greatly appreciated.
>> 
>> Matthew Fleming
> 
>> ___
>> Mono-list maillist  -  Mono-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Connecting to Oracle as SYSDBA

2010-11-29 Thread Jörg Rosenkranz
One commercial option for this problem is Devart dotConnect for Oracle:
http://www.devart.com/dotconnect/oracle/
This works on Mono too.

I'm not affiliated with this company, only a customer.

Joerg.

2010/11/23 Daniel Morgan 

> The API of System.Data.OracleClient nor its connection string provide a way
> for you to connect as sysdba.  This is a known limitation.   If you were
> using .net on windows, I would suggest for you to use odp.net from oracle.
>   However, odp.net does not work on mono.
>
> DBA Privilege is not a valid connection string parameter for
> System.Data.OracleClient.
>
> There is data direct's oracle provider which may work on mono and it may
> have the ability to connect as sysdba.
>
>
> --- On Mon, 11/22/10, Marc Puts  wrote:
>
> > From: Marc Puts 
> > Subject: [Mono-list] Connecting to Oracle as SYSDBA
> > To: mono-list@lists.ximian.com
> > Date: Monday, November 22, 2010, 4:35 PM
> > Hi list,
> >
> > I'm trying to create a privileged connection to an Oracle
> > database using
> > the following line:
> >
> > using System.Data.OracleClient;
> > ...
> > var con = new System.Data.OracleConnection("Data
> > Source=192.168.5.1/TMP;User ID=sys;Password=xx;DBA
> > Privilege=SYSDBA");
> >
> >
> > However, this line throws an ArgumentException: "Connection
> > parameter
> > not supported: 'DBA PRIVILEGE'".
> >
> > I've also tried creating a connection string using the
> > OracleConnectionStringBuilder class, but it also doesn't
> > seem to feature
> > privileged connections.
> >
> > Connecting as a normal user (without the DBA Privilege
> > part) works with
> > no problems.
> >
> > I'm using Mono 2.6.7 on Ubuntu 10.10.
> >
> > Any pointers on how to do this?
> > Thanks!
> >
> > Regards,
> > Marc
> > ___
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
>
>
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] SPAM-LOW: Getting a service to start automatically

2006-06-28 Thread Jörg Rosenkranz
Hi Lee,

> If I run:
> $mono-service /path/to/my/exe
> 
> The service runs fine as it should.
> 
> However, if I create a script such as:
> 
> #!/bin/sh
> 
> /opt/mono-1.1.15/bin/mono-service /path/to/my/exe
> 
> ... it does not run.

Is there any output in /var/log/messages? All error messages of
mono-service should show up there. Another idea would be running

mono /path/to/mono-service.exe /path/to/service

Then any output of mono/mono-service can be seen on the console.
It doesn't run in the background though.

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


Re: [Mono-list] Re: Long-running services

2006-01-23 Thread Jörg Rosenkranz
Hi,

I have attached a little sample service you can use as template for
your own tests.
It only writes a log file for all actions.

It can be compiled using:
mcs -out:TestService.exe -r:System.ServiceProcess.dll
-r:System.Configuration.Install.dll  TestService.cs

If you don't need the Windows install functionality you can safely remove
the ProjectInstaller class and the reference to
System.Configuration.Install.dll.

Run it using;
mono-service TestService.exe

For more parameters see man mono-service

Controlling the service is easy:

Pausing: kill -USR1 `cat /tmp/TestService.exe.lock`
Continueing: kill -USR2 `cat /tmp/TestService.exe.lock`
Ending: kill `cat /tmp/TestService.exe.lock`

Have a look at the log to see any consequences of your actions because
there will be no feedback on the command line :-)
Errors go to syslog.

HTH,
Joerg.

2006/1/23, Oleg Deribas <[EMAIL PROTECTED]>:
> Hello,
>
> Mario Munda said the following on 23.01.2006 11:17:
>
> > I have to write an application running under FreeBSD, and I choose Mono,
> > because it is simple.. This app does not need GUI, and it has to run as
> > a deamon.
> > I know how to design and develop app, but i don't know how to set it to
> > run as a deamon.
>
> Use System.ServiceProcess namespace and mono-service to run it as daemon
> (man mono-service). I'm not sure if it have any differences on FreeBSD,
> but I've tested it on linux and it works as expected.
>
> --
> Oleg
>
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
>
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.ServiceProcess;
using System.IO;
using System.Configuration.Install;
using System.Threading;

namespace TestService
{
	public class MainClass
	{
		private const string LogFile = "TestService.log";

		// The main entry point for the process
		static void Main()
		{
			Write2Log(null, "Main starting");
			
			// Create an array of known services...
			System.ServiceProcess.ServiceBase[] ServicesToRun;
			ServicesToRun = new System.ServiceProcess.ServiceBase[] { new TestService("TestService") };

			// ... and forward handling to ServiceBase.Run which triggers a 
			// callback to mono-service. This calls your OnStart and returns after all services 
			// were stopped.
			System.ServiceProcess.ServiceBase.Run(ServicesToRun);
			
			// This call is reached after all services were stopped
			Write2Log(null, "Main ended");
		}
		
		public static void Write2Log(string category, string message)
		{
			using (StreamWriter w = new StreamWriter(LogFile, true, System.Text.Encoding.UTF8) )
			{
if ( category != null )
	w.WriteLine(category + " - " + message);
else
	w.WriteLine(message);
			}
		}
	}
	
	// This is the implementation of the service to run.
	// There can be more than one service inside of one EXE.
	// mono-service is currently able to only run one of them 
	// simultaneously.
	public class TestService : System.ServiceProcess.ServiceBase
	{
		private Thread mainThread = null;
		private bool stopThread = false;
		
		public TestService(string name)
		{
			this.ServiceName = name;
			this.CanPauseAndContinue = true;
		}
	
		protected override void Dispose( bool disposing )
		{
			MainClass.Write2Log(ServiceName, "Dispose");
			
			base.Dispose( disposing );
		}

		protected override void OnStart(string[] args)
		{
			MainClass.Write2Log(ServiceName, "Starting Service...");			
			
			mainThread = new Thread (new ThreadStart (_MainLoop));
			stopThread = false;
			mainThread.Start ();
		}
 
		protected override void OnStop()
		{
			MainClass.Write2Log(ServiceName, "Stopping Service...");
			
			if (mainThread != null) {
stopThread = true;
mainThread.Join ();
mainThread = null;
			}
		}

		protected override void OnPause()
		{
			MainClass.Write2Log(ServiceName, "Pausing Service...");
		}

		protected override void OnContinue()
		{
			MainClass.Write2Log(ServiceName, "Continuing Service...");
		}

		private void _MainLoop ()
		{
			while (!stopThread)
Thread.Sleep (500);
		}
	}

	// This class allows easy installation of this service on Windows.
	// It's currently not used on Linux/Mono.
	[RunInstaller(true)]
	public class ProjectInstaller : System.Configuration.Install.Installer
	{
		private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;
		private System.ServiceProcess.ServiceInstaller serviceInstaller1;
			
		private System.ComponentModel.Container components = null;

		public ProjectInstaller()
		{
			// This call is required by the Designer.
			InitializeComponent();
		}

		///  
		/// Clean up any resources being used.
		/// 
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
if(components != null)
{
	components.Dispose();
}
			}
			base.Dispose( disposing );
		}


		#region Component Designer generated code
		/// 
	

Re: [Mono-list] mono-service

2005-12-02 Thread Jörg Rosenkranz
Hi Jesse,

2005/12/2, Jesse Pasichnyk <[EMAIL PROTECTED]>:
> I just was browsing through some of the mono code/assemblies and
> ran across mono-service.  It appears that this is a windows service
> like implementation that could now be used under linux or whatever
> other mono supported platform.  I was just curious about the status of
> this and supporting assemblies; whether they are still being worked on, 
> stable, etc.

It's for running System.ServiceProcess based services on Linux (and maybe other
UNIX like OS). The implementation of ServiceBase should be complete. Not many
people seem to be using it. So I would rather not call it stable. But
maybe it is ;-)

The only known problem is a crash when stopping services on kernel 2.4
based systems.

>
> Also is there any available documentation on this aside from the man page for 
> mono-service?
>

Not yet. But theres something in the works. There was a longer thread some weeks
ago: http://thread.gmane.org/gmane.comp.gnome.mono.general/24402

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


RE: [Mono-list] mono-service

2005-11-03 Thread Jörg Rosenkranz
Title: Nachricht



Hi 
Peter,

  
  -Original Message-From: Bradley, Peter 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 
  11:43 AMTo: Jörg Rosenkranz; WILSON LEI; 
  mono-list@lists.ximian.comSubject: RE: [Mono-list] 
  mono-service
  
  Thanks 
  Jörg.  I’ll 
  keep trying to get mine working, then.  So far I’ve had no luck (on 
  Mono/Linux).
   
What happens if you start your service by hand and not 
using the start script?
Do you have any messages in 
/var/log/messages?
 
Joerg.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] mono-service

2005-11-03 Thread Jörg Rosenkranz
Title: Nachricht



No, 
that's not true. Mono-service should be as compatible as 
possible.
Our 
service (developed on Windows) runs on Mono/Linux too.
 
Joerg.
 

  
  -Original Message-From: Bradley, Peter 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 
  10:45 AMTo: WILSON LEI; Jörg Rosenkranz; 
  mono-list@lists.ximian.comSubject: RE: [Mono-list] 
  mono-service
  
  Ysgrifennodd 
  WILSON 
  LEI:
   
  >> 
   
  
  2. The 
  whole structure of your TestService is different from a Windows service 
  created on Visual Studio.NET. On VS.NET, the Main() is included within the Service class, which 
  inherits the ServiceBase. I was porting a Windows project to Linux 
  so the Windows structure was used, and obviously it didn't work on 
  Linux. This is not documented anywhere so for developers trying to make a 
  mono service to work, it really gives us a hard 
  time.
  << 
   
  Is this true?  
  Will a service developed in Windows not work under Linux?  This might 
  explain why I’m having so many problems.
  Cheers
   
  Peter
   
   
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] mono-service

2005-11-01 Thread Jörg Rosenkranz
Title: Nachricht



Hello 
Wilson,

  
  1. You were 
  creating 2 services in the MainClass, but only TestService1 called the 
  OnStart(), although both services were disposed at the end. 
Two services can 
live together in one EXE. Mono-service can start only one at a time (select 
using -n parameter, default is first), on windows you are able to start both 
using the service controller. The behaviour should be equivalent to .NET. In 
most cases there will be only one service in one EXE.

  2. The whole structure of your TestService is different from a Windows 
  service created on Visual Studio.NET. On VS.NET, the Main() is included within 
  the Service class, which inherits the ServiceBase. I was porting a Windows 
  project to Linux so the Windows structure was used, and obviously it 
  didn't work on Linux. This is not documented anywhere so for developers 
  trying to make a mono service to work, it really gives us a hard time. 
My test service was created initially on Windows and it runs on Windows 
too. I don't know what you are doing differently. What do your service body 
look like? I'm using VS 2003/.NET 1.1. 

  3. The Test Service works fine on the command line, but the whole 
  point is to run it at system startup, so I created an init script following 
  the guide given by Novell (http://www.novell.com/coolsolutions/feature/15380.html). 
  However, the startproc command throws me an error: "cannot execute binary 
  file.", but run it from a command line is fine (startproc 
  /usr/bin/mono-service /path/to/TestService.exe). So I am stuck again when 
  trying to run a mono service at startup, hope you could help me out. 
IIRC startproc is for running exes only. Mono-service is a wrapper shell 
script. Try using startproc /usr/bin/mono /usr/bin/mono-service.exe 
/path/to/TestService.exe. 

  4. How can I join the mono-list so my emails won't get bounced back? 
?? 

  5. I really want to write something about porting a mono service after I 
  get my current project done. The material about this area is really rare. 
  Where would be the best place to post, say an article with sample source 
  code? 
 The best place would be the Wiki on http://www.mono-project.com/ but I 
don't know how accounts are given to new users.
Joerg.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Re: mono-service

2005-11-01 Thread Jörg Rosenkranz
Hi Peter,

> -Original Message-
> From: Bradley, Peter [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 01, 2005 2:05 PM
> 
> You mention portability rules.  Do you have a URL handy for 
> these?  A quick Google didn't bring up anything obvious, nor 
> did searching the mono project site on "portability".  If 
> not, don't worry: I'll do a more thorough search.
> 

Starting points:
http://www.mono-project.com/FAQ:_Technical#Compatibility
http://www.mono-project.com/FAQ:_ASP.NET#Portability

I thought there was a detailed article about this matter
but I haven't found it either :-|

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


RE: [Mono-list] Re: mono-service

2005-11-01 Thread Jörg Rosenkranz
Hi Peter,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Bradley, Peter
> Sent: Tuesday, November 01, 2005 1:26 PM
> 
> My post was not intended as a criticism of the man page, and I'm very
> sorry if it appeared to be so.  Perhaps I should have been 
> clearer, but
> what I was really saying that what (I think) is needed is a HowTo.

Yes I think this is true. There needs to be something in the Wiki.

To answer some of your questions:

> Does the process to be run as a daemon have to inherit from
> System.ServiceProcess.ServiceBase?  Does it guarantee that the
> OnStart(), OnStop(), OnPause(), and OnContinue() methods get called as
> appropriate?  

The service has to be implemented according to the MS docs:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemserviceprocessservicebaseclasstopic.asp
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemserviceprocessservicebaseclassruntopic1.asp

Short: It needs to be inherited from ServiceBase and it needs to call 
ServiceBase.Run in it's Main method.

> What does one have to do make the service start 
> up at boot
> time and run without a user logged in?  (Your script is a 
> great help in
> that regard.  Thanks).  What user does the service run as?  

It runs as the user you are starting mono-service with. You
are responsible for switching the user in the start script.
Examples of start scripts should be in the Wiki/Doc/etc. too.
Maybe that's tootoo distribution specific to put it into SVN?

> What changes
> (if any) are required to assemblies written as Windows 
> services to make
> sure they can run as daemons?

There are no changes needed if the assemblies are written
with the normal portability rules in mind. Mono-service 
should mimic the behaviour of MS' implementation as close 
as possible.

> The OP obviously has trouble getting the OnStart() method 
> running.  The
> reason why might be contained in the answers to the questions I make
> above.

Yes :-)

> I'm perfectly happy to put my money where my mouth is as far as
> producing a HowTo is concerned.  Once I've got a daemon 
> running, I'll be
> only too happy to explain how it was done.  But I may need my hand
> holding a little in the meantime :)

The man page is very basic and contains only information about 
handling of services. There should be an article about implementation
of services too. I would be happy if you write a howto down.
Please ask if you have any questions.

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


RE: [Mono-list] mono-service

2005-11-01 Thread Jörg Rosenkranz
Title: Nachricht



Hi 
all,
 
I 
suppose you are missing the ServiceBase.Run call in your Main 
method:
 
 System.ServiceProcess.ServiceBase[] 
servicesToRun; servicesToRun = new System.ServiceProcess.ServiceBase[] 
{ new 
TestService("TestService1")}; System.ServiceProcess.ServiceBase.Run(servicesToRun);
 
This 
method then calls your OnStart function.
I have 
attached a sample service I made some time ago as bug test case. Maybe this is 
helpfull for you.
 
Another idea: mono-service logs errors into syslog. Did 
you look into /var/log/messages?
 
Joerg.

  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
  On Behalf Of Bradley, PeterSent: Tuesday, November 01, 2005 
  11:08 AMTo: WILSON LEI; 
  mono-list@lists.ximian.comSubject: RE: [Mono-list] 
  mono-service
  
  Could I take the 
  opportunity to add my voice to this?  I was intending to post something 
  similar when I’d done a bit more work on the topic, but Wilson has beaten me to 
  it.
   
  The mono-service man 
  pages are very sparse.  If I can get it working, I’d be very happy to 
  write it up as a How-To sort of document for 
  others.
   
  Thanks
   
   
  Peter
   
  
  
  
  
  From: WILSON 
  LEI [mailto:[EMAIL PROTECTED] Sent: 31 October 2005 13:44To: 
  mono-list@lists.ximian.comSubject: [Mono-list] 
  mono-service
   
  
  
  Hi,
  
   
  
  I am trying to port a windows service project to Linux 
  (SuSE 10 Desktop). The project compiles fine and I have an EXE. I then add 
  mono-service myservice.exe into my startup script, however, the service is not 
  started. I got an error saying "Exec format error". Could someone help me on 
  this?
  
   
  
  I also complied a simplest service and tried to run it 
  on Linux using mono-service, I saw the Main() 
  was called but the OnStart() function is not. Could someone guide me how to 
  make a service on Linux just like a daemon?
  
   
  
  Thanks,
  
   
  
  Wilson


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


RE: [Mono-list] IDE suited for Corss Platform Development work

2005-07-04 Thread Jörg Rosenkranz
> I cannot just copy libraries compiledin windows to linux, because i am
> using perf counters (and other stuff) in the code so in mono they will
> give NotImplemented exception so i have to " #if " that code out in
> Linux. 

We're distinguishing the system we're running on at runtime to
use the same assemblies anywhere. So we can use different 
functionality on both systems without problems.

Maybe that's an option for you too?

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


RE: [Mono-list] IDE suited for Corss Platform Development work

2005-07-04 Thread Jörg Rosenkranz
> But Visual Studio .NET 2003 won't work on linux :(( :(( so i need to
> use another IDE on linux; which one is the question?

Do you really need an IDE on Linux? You can run VS on Windows and 
simply deploy the resulting assemblies to Linux. This might be the 
best solution if you're doing cross plattform development.

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


RE: [Mono-list] IDE suited for Corss Platform Development work

2005-07-04 Thread Jörg Rosenkranz
Hi Gyanit,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Gyanit Singh
> Sent: Monday, July 04, 2005 8:40 PM
> 
> Actually i am doing some cross platform development work.. that is
> using .NET in windows and mono-1.1 on linux. Is there any IDE for
> linux which recognizes .sln or .csproj file made by Visual studio
> .NET.  Can any one give some some pointers on cross platform
> development work (for mono and .NET).

You can develop on Windows and test/run your compiled assemblies
on Linux. You only have to make sure to make builds for the 
Release target using "Rebuild Solution" to get compatible assemblies.

See http://www.mono-project.com/FAQ:_Technical#Compatibility
for some more info.

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


RE: [Mono-list] Services, daemons

2005-05-24 Thread Jörg Rosenkranz
Hi Helge,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
>
> Can I make use of 
> ServiceProcess at all - I guess not? Is there a must-read available 
> anywhere to clear things up? I believe this is also heavily 
> distro-specific?
> 

You can use mono-service (see man page) for running 
System.ServiceProcess based services. There is an issue
with signal handling and threads which was introduced 
recently and seems not to be fixed yet (It leads to
exceptions when stopping the service).

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


[Mono-list] Mono 1.1.7 for SLES 8

2005-05-23 Thread Jörg Rosenkranz
Hi,

Are there Mono 1.1.7 packages for SLES 8 or is this distribution 
not supported anymore? 

I know there is a generic binary installer but we need RPMs.

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


[Mono-list] RE: [Mono-devel-list] Environment.OSVersion.Platform for Unix

2005-05-10 Thread Jörg Rosenkranz
Hi Michi,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Michi Henning
> 
> Another way to do this is to invert the test and avoid the 
> issue entirely:

And the application is broken when an enum value Win64 is
introduced. I think Miguels test is better.

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


RE: [Mono-list] Mono Logos

2005-05-09 Thread Jörg Rosenkranz
Hi Xoen,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Xoen
>
> And the copyright? everyone can use the logo?
> 

I think the old web site said so. But the Novell guys can
clarify this.

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


Re: [Mono-list] Mono Logos

2005-05-08 Thread Jörg Rosenkranz
Hi Ben,

2005/5/8, Ben Lamb <[EMAIL PROTECTED]>:
> 
> I'm giving an introductory talk on Mono and wondered whether there are
> there any Mono logos available, who owns the copyright on them and
> whether I can use one of them in my slides? For example, the wiki.png
> image used on the Mono website.
> 

There are some logos on the Mono page:
http://www.mono-project.com/Logos

Maybe that's what you want.

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


RE: [Mono-list] How to work with Mono.Unix.Signalhandler

2005-04-27 Thread Jörg Rosenkranz
Hi Andreas,

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Sliwka
> Sent: Wednesday, April 27, 2005 2:49 PM
> 
> I recently tried to compile tomboy 0.3.2 and found that my mono 1.1.4 
> installation did not like the calls to Mono.Posix. So I tried to replace them 
> with calls to Mono.Unix. 
> My problem is that I dont find any documentation about 
> Mono.Unix.SignalHandler.

You can use mono-service as reference: 
http://svn.myrealbox.com/viewcvs/trunk/mcs/tools/mono-service/mono-service.cs?rev=42819&view=markup

It uses signal handlers for controlling the service.

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


RE: [Mono-list] RE: Forums

2005-04-13 Thread Jörg Rosenkranz
Hi Marius,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of marius popa
> 
> Sometimes is easier to reply on forums than sending emails (don't need
> to do many steps)
> 

Only for interest: What are the many steps to do when replying
to an email?

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


RE: [Mono-list] System.DllNotFoundException: oci

2005-04-13 Thread Jörg Rosenkranz
Hi Gil,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Gilles FAVIER
> 
> What i did about my librairies is that i added /usr/lib and 
> /usr/local/lib in the ld.so.conf
> Anything more?
> 

The oci.dll is called libclntsh.so on Linux (see the DLL mapping in
machine.config) and can be found somewhere in the Oracle Client's
directory. You have to add this directory too.

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


RE: [Mono-list] RE: Forums

2005-04-12 Thread Jörg Rosenkranz
Hi,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of BMC 
> 
> On Diltons posting about forums - I agree and would much 
> prefer a forum
> to a mailing list as they are easier to follow. This is probably why I
> have been slow to pick it up.

You can read the Mono list on Gmane:
http://news.gmane.org/gmane.comp.gnome.mono.general
http://news.gmane.org/gmane.comp.gnome.mono.devel

I think that might be what you want.

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


RE: [Mono-list] Deamonize. Running a Mono app. in the background

2005-03-15 Thread Jörg Rosenkranz
Hello Michael,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Michael Rasmussen
> 
> Hi List,
> 
> How does one run a Mono app. as a deamon?
> 
> In C/C++ I would do it this way:
> 
> ...
> /* Fork off the parent process */
> pid = fork();

The standard Unix functions are implemented in namespace
Mono.Unix in assembly Mono.Posix, but the fork calls aren't 
working from managed code.

I have done a C daemon using Embedded Mono to run a
Windows Service implemented in .NET on Linux. I have 
sent a first proposal to Mono-Devel list some days ago:
http://article.gmane.org/gmane.comp.gnome.mono.devel/10777

You can take the attached daemon as starting point for 
your own implementation or help promoting the inclusion 
of something like that in Mono ;-)

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


RE: [Mono-list] Writing to Linux Logs

2005-03-09 Thread Jörg Rosenkranz
Hi Shane,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Shane G. Brodie
> 
> I have not yet been able to locate a namespace which provides 
> facilities
> for writing to the Linux system logs such as would be 
> accomplished using
> the syslogd daemon. 
> 

The syslog functions are defined in class Mono.Unix.Syscall in 
assembly Mono.Posix.

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


RE: [Mono-list] System.Security library

2005-03-07 Thread Jörg Rosenkranz
Hi Kala,

The algorithms in System.Security are implemented in managed code 
without dependencies to external libs. It's a subset of 
Mono.Security that can be used on Windows/.NET without changes.

Joerg.

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Kala B
> Sent: Monday, March 07, 2005 12:18 PM
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] System.Security library
> 
> 
> Hi,
> What is the library used internally to implement
> System.Security.Cryptography in mono? Is it openssl ?
> 
> thanks
> Kala B.
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Will Mono run on SuSe 8.x?

2005-01-11 Thread Jörg Rosenkranz
Hello Elmer,

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fuller, Elmer O
> Sent: Monday, January 10, 2005 5:41 PM
> 
> I am just starting to look into Mono for a company project.  I see
> In the documentation mention of SuSe 9.x but no mention (at least as far as I 
> see)
> of SuSe 8.x.  Does anybody know or has anyone gotten Mono to run on SuSe 8.x

We have it running under SuSE 8.2. I don't know if there are any RPMs.
We're compiling from source.

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


RE: [Mono-list] Problems with System.Data.OracleClient

2004-12-10 Thread Jörg Rosenkranz
Hello Michael,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Oetjen, Michael
> 
> When I run -mono test.exe- I' ve got this message 
> 
> Unhandled Exception: System.DllNotFoundException: oci 
> in <0x00053> (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate
> ...
> what's wrong ? ... does a file like oci.dll on linux exist ? 

oci.dll is mapped to libclntsh.so under Linux (see 
$MONO_PATH/etc/mono/config). This lib has to be in the path.

Joerg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] SuSE SLES 8 download link not working

2004-11-16 Thread Jörg Rosenkranz
Hello all,

The download link of Mono 1.0.4 for SuSE SLES 8 isn't working:
http://www.go-mono.com/archive/1.0.4/sles-8-i386/

Does anybody know where to get these packages?

Thanks,
Joerg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: AW: [Mono-list] File IO Append

2004-05-27 Thread Jörg Rosenkranz
Hello Gonzalo,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Gonzalo Paniagua Javier
> > Workaround:
> > 
> > StreamWriter sw = new StreamWriter (filename, ...);
> 
> That will just hide the bug. It's better to report it in bugzilla.

That's why I called it a workaround ;-)
I will file a bug report.

Joerg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


AW: [Mono-list] File IO Append

2004-05-26 Thread Jörg Rosenkranz
Hello Tracy,

-UrsprÃngliche Nachricht- 
Von: [EMAIL PROTECTED] im Auftrag von Tracy Barlow 
Gesendet: Mi 26.05.2004 03:17 
An: Mono-List 
Cc: 
Betreff: [Mono-list] File IO Append



I log any errors in my web application to a text file. I have noticed
that under Mono 0.91 the file is no longer being appended, instead the
file is being overwritten.


I recognized the same behaviour when opening a FileStream and using it
with a StreamWriter. It works when you let the StreamWriter open the file.

Code that shows this bug:

FileStream fs = new FileStream (filename, ...);
StreamWriter sw = new StreamWriter (fs, ...);

Workaround:

StreamWriter sw = new StreamWriter (filename, ...);

HTH,
Joerg



RE: [Mono-list] vb.net applications on linux

2004-05-10 Thread Jörg Rosenkranz
Hello Ahmed,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 2:17 PM
> To: [EMAIL PROTECTED]
> Subject: [Mono-list] vb.net applications on linux
> 
> Anyone ever tried to convert an application 
> from vb.net to C#
> then ran it on mono? Any other ways?
> 

A large part of our app is VB.NET code that is compiled
under MS.NET and runs fairly well under Mono.
We're using "Option Strict On" to avoid implicit usage 
of unimplemented parts in Microsoft.VB.CompilerServices
(maybe this works without this option because many
parts are implemented now). We haven't tested mbas yet.

My tip: Compile under MS.NET and try to run your app
on Mono. And don't forget to report bugs...

Joerg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Getting ASP .NET Apache module to work with 1.3.29

2004-04-28 Thread Jörg Rosenkranz
> Why do you need the Apache-Dev package?

For compilation of mod_mono.

Joerg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Getting ASP .NET Apache module to work with 1.3.29

2004-04-28 Thread Jörg Rosenkranz
Hello Robert,

> -Original Message-
> From: Robert Geller [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 28, 2004 2:40 PM
> 
> 
> Hmm, so I should just follow the documentation for compilation of 
> Mono, and mod-mono? Is there any better tutorial for getting mod_mono 
> to work from start to finish? As I said, it seems like the mono 
> documentation is a bit out of date.
> 

I've compiled them without problems on Suse 8.2. 
The only thing I needed additionally was the 
development package for Apache.

Joerg. 
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Getting ASP .NET Apache module to work with 1.3.29

2004-04-28 Thread Jörg Rosenkranz
Hello Robert,

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Geller
> Sent: Tuesday, April 27, 2004 11:40 PM
> 
> Is there ANY way at all I could get the ASP .NET module to work with Apache 1.3.29?

I have it running with Apache 1.3.27 and a CVS version of 
last week. mod_mono recognizes the Apache version during 
compilation.

My http.conf entries look like:

LoadModule mono_module /usr/lib/apache/mod_mono.so
MonoRunXSP True
MonoExecutablePath /usr/local/bin/mono
MonoServerPath /usr/local/bin/mod-mono-server.exe
MonoApplications "/xsptest:/usr/local/share/xsp/doc/test"

Alias /xsptest "/usr/local/share/xsp/doc/test"

SetHandler mono

 DirectoryIndex index.aspx


Order allow,deny
Allow from all



HTH,
Joerg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


AW: [Mono-list] Problem building NAnt on Mono/CVS

2004-03-01 Thread Jörg Rosenkranz
Hello Jaroslaw,
 
We are running Mono from CVS (current), glibc 2.2.1, Kernel 2.4.20.
 
Joerg

-UrsprÃngliche Nachricht- 
Von: Jaroslaw Kowalski [mailto:[EMAIL PROTECTED] 
Gesendet: Mo 01.03.2004 14:33 
An: JÃrg Rosenkranz; [EMAIL PROTECTED] 
Cc: 
Betreff: Re: [Mono-list] Problem building NAnt on Mono/CVS



Temporary hack to run NAnt / NUnit on mono is to comment out the contents of
"Unload()" method

mcs/class/corlib/System/AppDomain.cs

and recompile mcs. AppDomain memory won't be reclaimed, but at least
nant/nunit will run.

BTW. What mono/glibc/kernel version do you use?

Jarek


¢z%ŠËfj)eŠËL¢z%ŠËeŠËlÆ)¢jw(šm§ÿåŠËlÆ)¢jw(›ùšŠYšŸùb²Ø~æ¢z%ŠË

AW: [Mono-list] Problem building NAnt on Mono/CVS

2004-03-01 Thread Jörg Rosenkranz
Hi all,

-UrsprÃngliche Nachricht- 
Von: [EMAIL PROTECTED] im Auftrag von Jaroslaw Kowalski 
Gesendet: Do 26.02.2004 21:02 
An: [EMAIL PROTECTED] 
Cc: Gert Driesen; Ian MacLean; Scott Hernandez 
Betreff: [Mono-list] Problem building NAnt on Mono/CVS



** (bin/NAnt.exe:7986): WARNING **: Finalization of domain
TypeGatheringDomain timed out.



I'm getting exactly the same message when unloading AppDomains in our application. It 
hangs after loading a new AppDomain and running some code inside of this new one.

Joerg.

(ž‰b²ÙŠYb²Ó(ž‰b²Ùb²Û1ŠhšÊ&†Ûiÿùb²Û1ŠhšÊ&þf¢–f§þX¬¶)ßù¨ž‰b²

RE: [Mono-list] A Problem with XSP

2004-02-24 Thread Jörg Rosenkranz
Hello all,

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Filip Brcic
> Sent: Monday, February 23, 2004 3:05 PM
> Subject: Re: [Mono-list] A Problem with XSP
> 
> 
> After some browsing of mono source code, I realized that shared 
> handles are located in ~/.wapi directory and when the system 
> crashed that directory got corrupt somehow. After I deleted it, 
> everything works just fine, as it worked before :)

 
The shared handles storage in ~/.wapi seems to be still a bit unstable. 
Is there any way to detect and repair a corrupted .wapi directory 
instead of raising the "Shared memory sanity check failed." message?

We're deleting it in the start script of our application, but that
works only because that's the only Mono app running in this user
context.

Joerg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Bug #45966 - Mono/Class Libraries

2003-12-10 Thread Jörg Rosenkranz
Hello,

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Marco Craveiro
> 
> hello monoers,
> 
> is anyone looking into bug #45966
> (http://bugzilla.ximian.com/show_bug.cgi?id=45966)? i got some time in
> my hands and thought about making my first contribution to mono by
> tackling something small...
> 

This bug was posted by me long time ago :-)
I've thought about it a little bit and think this might be caused 
by another bug:
http://bugzilla.ximian.com/show_bug.cgi?id=45976

Thanks for trying to fix this!

Joerg.


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Strange errors due to ~/.wapi problems

2003-10-20 Thread Jörg Rosenkranz
Hi Dick,

> -Original Message-
> From: Dick Porter [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 20, 2003 4:30 PM
> 
> It's possible, but the code that creates the shared area tries to be
> very careful about races.  There used to be a race between exiting one
> mono instance and starting a new one at the same time, but that
> manifested itself as a failed assertion.
> 
> I'm assuming that all your machines have identical software installed,
> and that mono is up-to-date.  Have you looked into potential hardware
> issues with the machine giving the problems?  Make sure your memory
> isn't faulty, etc.
> 

Our machines should be identical in their software versions. There is also
the same Mono version on all of them. Very strange...

I have created a test program which starts many processes from different
threads. It works without problems. Maybe it's really a hardware problem.

Jörg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Strange errors due to ~/.wapi problems

2003-10-19 Thread Jörg Rosenkranz
Hello Dick,

> -Original Message-
> From: Dick Porter [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 26, 2003 3:28 PM
> 
> 
> 
> If the shared memory is corrupted, the runtime reverts to a non-shared
> setup.  This has the side effect of preventing process forking.
> 
> You can delete the shared memory files in ~/.wapi when this 
> happens, but
> it would be very useful if you could track down _why_ the corruption
> occurred.  Running out of space might do it, but the sanity 
> check looks
> at the first few bytes.
> 

We have this behaviour on one (and only one) of our machines. We were
not been able to track this issue down yet. Could this be a race 
condition between two processes? We are starting multiple instances of
one Mono app from another multithreaded Mono app.

Jörg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] RE: [Mono-devel-list] Surveys: Mono 1.0 and Mono Conference.

2003-10-10 Thread Jörg Rosenkranz
Most things have been said already.
My main concern about 1.0 aren't new features. I think all major bugs
should be fixed or sorted out.

Jörg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Creating an ICMP socket fails

2003-09-11 Thread Jörg Rosenkranz
Hello, 

We try to create an ICMP socket to ping another host. Mono on Linux throws an 
exception when the constructor of the Socket class is called.

Sample code:

using System;
using System.Net;
using System.Net.Sockets;

namespace IcmpTest
{
public class IcmpTest
{
public static void Main()
{
Socket IcmpSocket = new Socket(AddressFamily.InterNetwork, 
SocketType.Raw, ProtocolType.Icmp);
}
}
}

Mono throws following exception:

Unhandled Exception: System.Net.Sockets.SocketException: Some sort of w32 error 
occurred: 0
in (unmanaged) 
/home/viadmin/mono-cvs/install/lib/libmono.so.0(mono_raise_exception+0x22) [0x400aee26]
in (unmanaged) /home/viadmin/mono-cvs/install/lib/libmono.so.0 [0x400d01c6]
in [0x00035] (at 
/home/viadmin/mono-cvs/mcs/class/System/System.Net.Sockets/Socket.cs:417) 00 
System.Net.Sockets.Socket:.ctor 
(System.Net.Sockets.AddressFamily,System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType)
in <0x00037> 00 IcmpTest.IcmpTest:Main ()

It runs fine using MS.NET. 
Should I file a bug for this or are we doing something wrong?

Jörg
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Non ASCII characters in file names

2003-09-11 Thread Jörg Rosenkranz
Thanks for the answers!

Setting LANG is no option for us because the application does not run on 
our own systems. We tried to set G_BROKEN_FILENAMES but the behaviour didn't
change :(

Are there any other settings we need to change to get this working?

Jörg

> -Original Message-
> From: Jonathan Pryor [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 11, 2003 3:20 AM
> To: Jörg Rosenkranz
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Mono-list] Non ASCII characters in file names
> 
> 
> The short answer is: Mono uses glib, which assumes that 
> everything is in
> UTF-8.  The filename you're seeing is likely a valid UTF-8 
> string; view
> it in Nautilus or Rox and see if it looks right. :-)
> 
> See:
> http://bugzilla.ximian.com/show_bug.cgi?id=30781
> http://bugzilla.gnome.org/show_bug.cgi?id=93751
> 
> The fix is (should be?) to set the G_BROKEN_FILENAMES environment
> variable  (to 1 -- export G_BROKEN_FILENAMES=1).
> 
>  - Jon
> 
> 
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Non ASCII characters in file names

2003-09-10 Thread Jörg Rosenkranz
Hello,

We are failing to create files with non ASCII characters in their name
using Mono functions. They are created with scrambled names.

Following example:

//  8< -- >8 -
using System;
using System.IO;

namespace Test
{
public class Test
{
public static void Main()
{
using ( StreamWriter wr = File.CreateText("Testäöü.txt") )
{
wr.WriteLine("Test");
}
}
}
}
//  8< -- >8 -

The created filename looks like Testäöü.txt

When we create the file on the command line using

echo Test > Testäöü.txt

all works fine. Are there any Mono config options which affect this behaviour
or is this a bug?

Thanks,
Jörg
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: Re: [Mono-list] AppDomain Unload and references

2003-09-10 Thread Jörg Rosenkranz
Hello Piyush,

AppDomain unloading seems to be still buggy. See bug
http://bugzilla.ximian.com/show_bug.cgi?id=47659

You can unload an AppDomain but can't create a second one later.
And there may be other side effects.

Jörg

> -Original Message-
> From: Piyush Garyali [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 10, 2003 3:31 PM
> To: Varga Zoltan
> Cc: [EMAIL PROTECTED]
> Subject: Re: Re: [Mono-list] AppDomain Unload and references
> 
> 
> Hello Zoltan,
> 
> Thanks for the response,
> 
> I was going through the mono code and found that there is an 
> icall, ves_icall_System_AppDomain_InternalUnload which actually 
> calls a function mono_domain_unload(). When you say that AppDomain 
> unloading does not work under mono, did you want to mean that 
> AppDomain unloading does not *fully* work with mono??
> 
> I am saying so beacause the mono_domain_unload, in a bit ruthless 
> manner, but sure does unload AppDomains!
> 
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Workaround for AppDomain.Load + Unload problem?

2003-08-28 Thread Jörg Rosenkranz
> If a bug has been closed, but you still can reproduce it with 
> the latest
> cvs, please reopen it.
> 

I cannot reproduce these bugs. The first one is a XSP bug (I don't use
XSP this time). I've tried the test app of the second and it works. 
The error occurs only when you unload the first AppDomain before creating
the second one:

using System;

public class mm
{
  public static void Main (String [] args)
  {
AppDomain d1, d2;

d1 = AppDomain.CreateDomain ("d1");

AppDomain.Unload(d1);   // Remove this line to get it working

d2 = AppDomain.CreateDomain ("d2");
  }
}

So maybe these bugs are related to my one but they are not the same.

Jörg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Workaround for AppDomain.Load + Unload problem?

2003-08-28 Thread Jörg Rosenkranz
Hello,

> .NET does not support unloading assemblies. It is not an easy problem
> to fix (neither in .NET nor in Mono).
> 
> Miguel
> 

Yes, I know that you can't unload assemblies directly. But you can unload 
AppDomains with their loaded assemblies. Now the bug 
http://bugzilla.ximian.com/show_bug.cgi?id=47659 prevents us from doing 
exactly this. To be precise: We can not open another AppDomain after the 
first one was closed.

After some research I found similar bugs:
http://bugzilla.ximian.com/show_bug.cgi?id=39331
http://bugzilla.ximian.com/show_bug.cgi?id=39380

Both are marked as closed but our problem still exists with current CVS.
My hope was that someone has solved a similar problem using some workaround
for this bug.

Jörg
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] question

2003-08-27 Thread Jörg Rosenkranz
> From: Jonathan Pryor [mailto:[EMAIL PROTECTED] 
>
> So, in principal, you should be able to take your 
> VS.NET-compiled VB app
> and run it under mono.  You just need to make sure that:
>  1. You only use mono-implemented/supported functionality 
> (the hardest 
> requirement)

It helps a lot to set 'Option Strict On' in your VB.net code.
This eliminates the implicit calls to the not implemented class
Microsoft.VisualBasic.CompilerServices.ObjectType (and maybe
some others too).

Drawback of this option is that you are more restricted than 
without it. You can only use strongly typed variables like in 
C#. But that may also help in bug prevention :)

Jörg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Workaround for AppDomain.Load + Unload problem?

2003-08-25 Thread Jörg Rosenkranz
Hi all,

We are creating an application which should be able to load and 
unload assemblies at runtime to update parts of it dynamically.
To unload an assembly you have to unload the AppDomain which 
is running it. Now there is a problem in loading and unloading 
AppDomains:
http://bugzilla.ximian.com/show_bug.cgi?id=47659

Has someone done something similar and got around this problem?
Is there maybe any workaround?

Thanks,
Jörg
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] How to listen on local socket

2003-08-01 Thread Jörg Rosenkranz
Maybe this is a simple question but I'm desperately searching a way to do this:

I want create a TCP server app and need to listen to a local socket.
How do I create the local endpoint?

I tried it 2 different ways:
1)
IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());// get 
local Hostname
IPAddress   ipAddress = ipHostInfo.AddressList[0];  // get 
first IP-Address from Host

IPEndPoint localEndPoint = new IPEndPoint(ipAddress, ); // 
connect to port

  This works under Windows but under Linux/Mono the address is 127.0.0.1.
  Other addresses aren't in the AddressList.

  I know this is not the preferred way.

2) 
IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Any, );

  This works under Windows, too. Linux: Loopback device...

How do I get the right IP address for the first (all?) network card(s)?

Thanks,
Joerg
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Socket and multiple threads

2003-07-17 Thread Jörg Rosenkranz
Hi all,

I have some problems with sockets and multiple threads:
Every time a program is communicating over one socket from different threads
I get following exception:

The socket has been shut down
in (unmanaged) 
/home/viadmin/mono-cvs/install/lib/libmono.so.0(mono_raise_exception+0x22) [0x400ab626]
in (unmanaged) /home/viadmin/mono-cvs/install/lib/libmono.so.0 [0x400ccd05]
in <0x000e8> 00 System.Net.Sockets.Socket:Send 
(byte[],int,int,System.Net.Sockets.SocketFlags)
in <0x00102> 00 System.Net.Sockets.Socket:Send 
(byte[],int,int,System.Net.Sockets.SocketFlags)
in <0x0001f> 00 System.Net.Sockets.Socket:Send 
(byte[],int,System.Net.Sockets.SocketFlags)

I noticed this behaviour using different components i.e. Mono SqlClient and a FTP 
component.
Access to the components is always exclusively locked to one thread at a time. So 
multiple threads
aren't accessing the socket simultaneously.

Are there any known problems with socket communication and multiple threads?

Thanks,
Joerg
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] How do you debug?

2003-07-07 Thread Jörg Rosenkranz

> We are working hard on a debugger, but there are some other priorities that we have 
> to look at. 
> Miguel

Thanks all,

At least I know know that my way wasn't totally inefficent... ;-)

Joerg
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] How do you debug?

2003-07-04 Thread Jörg Rosenkranz
Hi all,

I have a question to all Mono developers out there:
How do you debug your programs?

I have not managed to get the Mono debugger working and
all statements on the list regarding this subject are saying:
It's broken in CVS.

So I have to debug a fairly complex app using Console.WriteLine...
Is there another way to search for bugs in Mono under Linux?

Maybe someone can point me in the right direction ;-)

Thanks
Joerg
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list