Re: [Mono-list] How to determine local IP address with mono on linux?

2006-03-23 Thread Elliott Draper
Hi there, Add a reference to System.Net to the top of your code file (using System.Net; ), and then try this: foreach(IPAddress address in Dns.GetHostByName(Environment.MachineName).AddressList) { Console.WriteLine(address.ToString()); } That simply prints out each IP address for your local

Re: [Mono-dev] Problem compiling mono from SVN

2006-01-27 Thread Elliott Draper
Aha, I think I might know why this is. Chris (Toshok) is currently doing lots of good work in implementing the .Net 2.0 configuration API within Mono. Yesterday he checked-in a load of changes, in a few different commits from what I saw in the logs. Seeing as how I refreshed my working copy and

Re: [Mono-dev] [PATCH] System.Configuration.ConfigurationManager

2006-01-26 Thread Elliott Draper
still very unhappy with the Assembly.GetCallingAssembly()/GetEntryAssembly() crap.. there needs to be a better way to do this, but coming up with tests of MS's behavior is very hard. Chris On Thu, 2006-01-26 at 01:22 +, Elliott Draper wrote: Hi guys, Attached is a patch

Re: [Mono-list] ByteFX or Connector/Net or ..?

2006-01-26 Thread Elliott Draper
I've had no problems using the MySql Connector/Net under Mono, in the package available from the MySql site (http://dev.mysql.com/downloads/connector/net/1.0.html) there are separate binaries for .Net 1.0, 1.1, 2.0, and for Mono. I tend to use the .Net 2.0 binary actually, and that (for me at

[Mono-dev] [PATCH] System.Web.UI.WebControls.ListControl

2006-01-24 Thread Elliott Draper
Hi guys, Attached is a patch for everyone's perusal, that fixes a bug in the System.Web.UI.WebControls.ListControl class under the NET-2.0 profile, that specifically shows itself when using a DropDownList or a ListBox control. It appears that modifying the items collection on these controls

Re: [Mono-list] IsSubclassOf and Assembly.LoadFrom problem

2006-01-04 Thread Elliott Draper
I'm not entirely sure IsSubclassOf is meant to return true for classes implementing an interface? Certainly I've found that it hasn't in the past, and instead I use GetInterface() I think it is, passing in the name of the interface I'm looking for, and checking to see if that returns the

Re: [Mono-list] MySQL Connector.Net

2005-12-01 Thread Elliott Draper
http://dev.mysql.com/downloads/connector/net/1.0.html On this page you'll find the cunningly titled Windows Source and Binaries, no installer (ZIP), which I presume is what you were talking about. In actual fact if you download the zip file, within the bin folder, you'll find a mono-1.0

Re: [Mono-list] MySQL Connector.Net

2005-12-01 Thread Elliott Draper
, Elliott Draper [EMAIL PROTECTED]: http://dev.mysql.com/downloads/connector/net/1.0.html On this page you'll find the cunningly titled Windows Source and Binaries, no installer (ZIP), which I presume is what you were talking about. In actual fact if you download the zip file, within the bin

Re: [Mono-dev] Can I use mod_mono with xsp2

2005-11-19 Thread Elliott Draper
Joe Audette wrote: Is it possible to use the new 2.0 ASP.NET features that are currently implemented in mono with mod_mono on apache2? Or can it only be done using xsp2 from the command line? What do I have to configure differently to make this happen? I'm using Virtual Hosts in apache.

Re: [Mono-list] Scripting the Linux OS with Mono

2005-11-11 Thread Elliott Draper
())); return; } } /// summary /// This outputs the program logo /// /summary static void Logo() { Console.WriteLine(MonoScript: (c) 2005, Elliott Draper [EMAIL PROTECTED]); } /// summary /// This outputs

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

2005-11-01 Thread Elliott Draper
Bradley, Peter wrote: I wonder if I might be forgiven for responding to myself in order to ask one (hopefully final) question about mono-service? Following the discussion here, I checked out some Windows services I've written and everything seems fine except for one thing. The services I

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

2005-11-01 Thread Elliott Draper
in that? ;-) Cheers Peter -= El =- -Original Message- From: Elliott Draper [mailto:[EMAIL PROTECTED] Sent: 01 November 2005 13:49 To: Bradley, Peter Cc: mono-list@lists.ximian.com Subject: Re: [Mono-list] Re: mono-service Bradley, Peter wrote: I wonder if I might be forgiven for responding

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

2005-11-01 Thread Elliott Draper
Bradley, Peter wrote: Robert, *snip* OK. I'll play with that. The property has to be set, of course, which means hard coding a path into code, which is something I like to avoid where I can, but it doesn't seem too much of a risk in this situation. Thank you. That property doesn't have

Re: [Mono-list] Reflection odd exception

2005-10-19 Thread Elliott Draper
I'd hazard a guess and say it's because you don't have a reference to the relevant Gdk assemblies, or they can't be found in the path, gac etc. As such when it's creating this object, it's coming unstuck because that class is using a type that it can't find, hence when you change it to using

[Mono-list] Problem with Mono website?

2005-10-07 Thread Elliott Draper
Guys, Is something up with the Mono website at the minute? When I try to visit http://www.mono-project.com, I'm being greeted with what looks like the main http://www.novell.com website, but without the style sheet. If it helps, pinging www.mono-project.com resolves to redirector.novell.com,

[Mono-list] Amber Communications Framework

2005-09-01 Thread Elliott Draper
Hello everyone, A while back, I joined the development team of a project that was then called MonoIndigo. This was designed to be a port of Microsoft's Indigo framework (now known as the Windows Communication Foundation). As many of you know, Microsoft made it clear that any kind of direct

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread Elliott Draper
[EMAIL PROTECTED] wrote: Hi, Yes you can, and this has nothing to do with what I am trying to do. Please read my original post. My problem has absolutely nothing to do with capuring output from MY program. I'm trying to capture output from existing linux Command Line program like wget,

[Mono-dev] Problem building from source

2005-08-13 Thread Elliott Draper
Hi all, I've recently been having trouble building Mono from source (either the source tarball, or from SVN) on one box I've got. I've built from source countless times on other boxes without issues, but this one is being a pain in the ass. Attached is the output from when I execute

[Mono-devel-list] [PATCH] MCS Spelling Mistake

2005-08-03 Thread Elliott Draper
+1,7 @@ +2005-08-03 Elliott Draper [EMAIL PROTECTED] + Fixed a spelling mistake in errors thrown by the compiler for a missing/invalid strong name key file when building an assembly. + * codegen.cs: Replaced speficied with specified. + 2005-08-03 Raja R Harinath [EMAIL PROTECTED

Re: [Mono-list] Simple Window Form can not be showed in Solaris

2005-07-28 Thread Elliott Draper
Huaiyang Mao wrote: Hello, I have installed mono 1.1.8.2 in Solaris and can compile the following code with mcs -r:System.Windows.Forms Test.cs successfully. I tried to start it mono Test.exe, but I could not get the simple Windows Form showed. Could you help me to solve the problem? Many

Re: [Mono-devel-list] Interactive C# prompt

2005-07-19 Thread Elliott Draper
Colin JN Breame wrote: Hello, I'm wondering whether there is such a thing as an interactive C# prompt for mono. e.g. where commands can be entered and executed one-by-one. If not, any ideas about how I would go about writting something like this?

Re: [Mono-list] Mono Web Services

2005-06-29 Thread Elliott Draper
Hi there, You need to add a reference to the System.Web.Services assembly as it must be using that within the class. Try: mcs /target:library GoogleSearchService.cs -r:System.Web.Services Incidentally, when I tried to compile a file that required this assembly, without it, as a test, the

Re: [Mono-list] Npgsql

2005-06-06 Thread Elliott Draper
site is broken. I'll have to finish what I'm doing and then check it again. Thank you! Carl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Elliott Draper Sent: Monday, June 06, 2005 6:19 AM To: [EMAIL PROTECTED] Cc: mono-list@lists.ximian.com Subject: Re

Re: [Mono-list] Npgsql

2005-06-02 Thread Elliott Draper
The error that you're getting is coming straight back from the PgSQL database. You need to free up some connections, and probably increase the maximum number of connections at the server end to stop it happening again. You could also use connection pooling in your app to try and limit the

[Mono-list] DNFS v1.0.0 beta

2005-06-02 Thread Elliott Draper
Hi everyone, I have released the first (beta) version of DNFS, a simple command line utility that acts as an object browser for .Net/Mono assemblies. It is available from: http://www.ejdraper.org.uk/dnfs It is lightheartedly called DotNetFileSystem, because you simply run the app against an