Re: [Mono-list] Mandrake Package
On Thursday 19 of February 2004 02:42, Tracy Barlow wrote: Why is there no longer a Mandrake Package (either 9.1 or 9.2), for release 30 and 30.1 I was also curious about that, but RH packages work for me very well (Mandrake 9.2 and also on 10.0rc). Kamil ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Need help with Webservices
Hi 1) Generate the web service proxy using the WSDL tool or downloading it from the WS information page. 2) Compile it into a DLL. 3) Add the DLL in the bin directory of your web 4) That's all. Lluis. On dj, 2004-02-19 at 00:17, Jonas Lindau wrote: Hello all! I really need help with webservices in mono. I don't have a clue what i'm doing wrong. I have a very simple webservice, it's something like this: %@ WebService language=C# class=myApp.myService % using System; using System.Web.Services; namespace myApp { public class myService : WebService { [WebMethod] public string Hello() { return Hello, this is a string from Linux; } } } This works fine in the browser, using the test-form. It also works great when i'm ading a web reference from Visual Studio .NET to the service. But, how do i use my webservice from a webform in mono (Running XSP)? The basic question is, instead of adding a web reference (as in Visual Studio) what do i have to do to make it work with mono? I did download the client proxy, which is autogenerated. Then, i'm not sure what to do... The Codebehind code looks like this: using System; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace myApp { public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.WebControls.Label Label1; private void Page_Load(object sender, System.EventArgs e) { myService obj = new myService(); Label1.Text = obj.Hello(); } } } And the actual page is just a simple aspx page with one asp:label. If someone out there could write a simple list of actions to take, i would be happy for days :) Thanks Jonas Lindau ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Testing Large Web Applications
Are there any tools that can check web pages intelligently for errors. Such as testing forms, follow a specified path as if it were a human and check for values etc? ~ Matthew ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Testing Large Web Applications
NUnitAsp does this. We have been using it for System.Web development. Jackson On Thu, 2004-02-19 at 07:05, Met @ Uber wrote: Are there any tools that can check web pages intelligently for errors. Such as testing forms, follow a specified path as if it were a human and check for values etc? ~ Matthew ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] several problems using mod_mono
El jue, 19-02-2004 a las 16:24, Martin Schmitz escribió: 1. Is it possible to start the mod_mono_server without the message ... to stop press Return? This is really annoying because I can't create a bash-script to start apache and mod_mono_server by itself mod-mono-server --nonstop 2. Why do I allways have to set chmod 777 to tmp/mod_mono_server after I restarted the server? Make the user that runs mod-mono-server be the same as the one that runs apache server or make them belong to the same group. 3. Do i have to start mor then one mod_mono_server for several ASP.Net applications? No. Check the output of mod-mono-server --help on how to serve several applications with a single mod-mono-server. 4. It seems that sometimes the mod_mono module does not responde to a request after it had already run ok for minutes. I want to stop the mod_mono_server but it seems the process was hanging because i never get back to the bash-promt. If you can reproduce this, please file a bug report in bugzilla. 5. I have several ASP.Net applications and I'm getting error messages after i want to visit the pages. One of them says Error processing request. Error Message: HTTP 500. . And the other is that some /tmp/tmp...dll could not be found. mcs, the mono C# compiler has to be in the PATH environment variable when running mod-mono-server. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mandrake Package
On Thu, 19 Feb 2004 11:42:05 +1000 Tracy Barlow [EMAIL PROTECTED] wrote: Why is there no longer a Mandrake Package (either 9.1 or 9.2), for release 30 and 30.1 There are Mandrake packages. For 10.0 rc1 (cooker) you can get them from any cooker contrib mirror. The 9.2 contrib has packages of 0.26 I believe, and I have backported 0.31.1 packages for 9.2 in a third-party repository. You can get them here: http://mirror.brain.org/linux/mpol/mandrake/i586/9.2/ I don't know why Ximian doesn't make them, are there any plans from Ximian to provide Mandrake packages, or do you think my packages are enough (non-RedCarpet, but urpmi-able). I'm willing to cooperate, but I don't know what the plans of Ximian are. Regards, -- Marcel Pol ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mandrake Package
Marcel and Tracy, I've downloaded and installed 0.30 packages and latest mod_mono from one of the mirrors and they work well on my 9.2 system. There are some mods that I had to make to my XSP config to suit my liking, but that's about it. Marcel, thanks for the job well done on the packages. Tracy, since there is not a mono channel on Red Carpet for MDK9.2 (nod towards Miguel), you are better off using the packages with URPMI. If you need a pointer to a particular mirror, drop me a line, and I'd be more than glad to point you to one. Everyone else who is looking for MDK mono builds, Hope these instructions help. I feel your pain :) Regards, Mark. On Thu, 2004-02-19 at 10:44, Marcel Pol wrote: On Thu, 19 Feb 2004 11:42:05 +1000 Tracy Barlow [EMAIL PROTECTED] wrote: Why is there no longer a Mandrake Package (either 9.1 or 9.2), for release 30 and 30.1 There are Mandrake packages. For 10.0 rc1 (cooker) you can get them from any cooker contrib mirror. The 9.2 contrib has packages of 0.26 I believe, and I have backported 0.31.1 packages for 9.2 in a third-party repository. You can get them here: http://mirror.brain.org/linux/mpol/mandrake/i586/9.2/ I don't know why Ximian doesn't make them, are there any plans from Ximian to provide Mandrake packages, or do you think my packages are enough (non-RedCarpet, but urpmi-able). I'm willing to cooperate, but I don't know what the plans of Ximian are. Regards, -- Marcel Pol ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Testing Large Web Applications
Hello, On Thu, 2004-02-19 at 10:56, Jackson Harper wrote: NUnitAsp does this. We have been using it for System.Web development. Jackson On Thu, 2004-02-19 at 07:05, Met @ Uber wrote: Are there any tools that can check web pages intelligently for errors. Such as testing forms, follow a specified path as if it were a human and check for values etc? ~ Matthew It definitely looks like exactly what I need, but it keeps dying with a Segmentation fault from nunit-console.exe. I've actually had this happen a number of times with NUnit when my tests have involved databases. Any ideas or suggestions on how to get around this would be greatly appreciated. I'm just trying the what the example in the tutorial shows. ~ Matthew ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Little question ...
El sáb, 07-02-2004 a las 17:21, Miguel de Icaza escribió: Hey, Only one little question: What are the main differences between using event keyword or not when creating delegates? Example: delegate void ProbeDelegate (string msg); ProbeDelegate d1; event ProbeDelegate d2; events can notify more than one function, a delegate only points to a single method. So you can have multiple listeners. But, only using delegates you can do: DelegadoOperacion multiD; multiD = new DelegadoOperacion(s.suma); multiD += new DelegadoOperacion(s.resta); And then call multiD which will call more than one method. So what is the real difference with events ?? Sergio. -- [aka Marble] Web Personalhttp://www.marblestation.com Registered LiNUX user #140941http://counter.li.org/ Socio #3274 de HispaLinuxhttp://www.hispalinux.es Miembro de GPL URVhttp://www.gplurv.org GnuPG key: 0x0ED2CF9Dhkp://pgp.escomposlinux.org signature.asc Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente
RE: [Mono-list] Little question ...
Sergio, Events are more like delegate properties. Such is you can do the following. This is good if you want to encapsulate a child objects event. Such as how I am doing it below. When somebody calls the following: myObject.RightListItemChanged += new EventHandler (myObject_ItemChanged); this is what happens underneath in the code. It sets the child objects SelectedItemChange to the method that I selected above. Even though it is twice removed. In addition it enabled AutoPostBack. public event EventHandler RightListItemChanged { add { deniedListBox.SelectedIndexChanged += value; deniedListBox.AutoPostBack = true; } remove { deniedListBox.SelectedIndexChanged -= value; deniedListBox.AutoPostBack = false; } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Blanco Cuaresma Sent: Thursday, February 19, 2004 2:56 PM To: [EMAIL PROTECTED] Subject: Re: [Mono-list] Little question ... El sáb, 07-02-2004 a las 17:21, Miguel de Icaza escribió: Hey, Only one little question: What are the main differences between using event keyword or not when creating delegates? Example: delegate void ProbeDelegate (string msg); ProbeDelegate d1; event ProbeDelegate d2; events can notify more than one function, a delegate only points to a single method. So you can have multiple listeners. But, only using delegates you can do: DelegadoOperacion multiD; multiD = new DelegadoOperacion(s.suma); multiD += new DelegadoOperacion(s.resta); And then call multiD which will call more than one method. So what is the real difference with events ?? Sergio. -- [aka Marble] Web Personalhttp://www.marblestation.com Registered LiNUX user #140941http://counter.li.org/ Socio #3274 de HispaLinuxhttp://www.hispalinux.es Miembro de GPL URVhttp://www.gplurv.org GnuPG key: 0x0ED2CF9Dhkp://pgp.escomposlinux.org ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Little question ...
Yeah that is true and I don't think anybody is debating that event is very limited in what it can do. But I think he was more asking why have events. The no support for assignment is something that I forgot to include in my last e-mail. Here is the text from the actual language specification. Since += and -= are the only operations that are permitted on an event outside the type that declares the event, external code can add and remove handlers for an event, but cannot in any other way obtain or modify the underlying list of event handlers. In an operation of the form x += y or x -= y, when x is an event and the reference takes place outside the type that contains the declaration of x, the result of the operation has type void (as opposed to having the type of x, with the value of x after the assignment). This rule prohibits external code from indirectly examining the underlying delegate of an event. In addition there is a special attribute modifier for events, like the following. [event: MyEventAttribute] public event EventHandler MyEvent; delegates have one but it is defined the same that a class is. (i.e. [type: MyClassAttribute]) Hope this helped out a little. -Original Message- From: Jaroslaw Kowalski [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 3:46 PM To: Nick Berardi; [EMAIL PROTECTED] Subject: Re: [Mono-list] Little question ... I believe that events are there to solve the problem overwriting the devegate instead of appending a new handler to it. Events only support add/remove (+=, -=), there's no support for assignment. All you can do is: myObject.RightListItemChanged += new EventHandler (myObject_ItemChanged); myObject.RightListItemChanged -= new EventHandler (myObject_ItemChanged); With delegates you would be able to: myObject.RightListItemChanged = new EventHandler (myObject_ItemChanged); which would overwrite all handlers in the delegate chain. Jarek - Original Message - From: Nick Berardi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 19, 2004 9:13 PM Subject: RE: [Mono-list] Little question ... Sergio, Events are more like delegate properties. Such is you can do the following. This is good if you want to encapsulate a child objects event. Such as how I am doing it below. When somebody calls the following: myObject.RightListItemChanged += new EventHandler (myObject_ItemChanged); this is what happens underneath in the code. It sets the child objects SelectedItemChange to the method that I selected above. Even though it is twice removed. In addition it enabled AutoPostBack. public event EventHandler RightListItemChanged { add { deniedListBox.SelectedIndexChanged += value; deniedListBox.AutoPostBack = true; } remove { deniedListBox.SelectedIndexChanged -= value; deniedListBox.AutoPostBack = false; } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Blanco Cuaresma Sent: Thursday, February 19, 2004 2:56 PM To: [EMAIL PROTECTED] Subject: Re: [Mono-list] Little question ... El sáb, 07-02-2004 a las 17:21, Miguel de Icaza escribió: Hey, Only one little question: What are the main differences between using event keyword or not when creating delegates? Example: delegate void ProbeDelegate (string msg); ProbeDelegate d1; event ProbeDelegate d2; events can notify more than one function, a delegate only points to a single method. So you can have multiple listeners. But, only using delegates you can do: DelegadoOperacion multiD; multiD = new DelegadoOperacion(s.suma); multiD += new DelegadoOperacion(s.resta); And then call multiD which will call more than one method. So what is the real difference with events ?? Sergio. -- [aka Marble] Web Personalhttp://www.marblestation.com Registered LiNUX user #140941http://counter.li.org/ Socio #3274 de HispaLinuxhttp://www.hispalinux.es Miembro de GPL URVhttp://www.gplurv.org GnuPG key: 0x0ED2CF9Dhkp://pgp.escomposlinux.org ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mandrake Package
On Thu, 19 Feb 2004 15:01:19 -0600 Mark Gimelfarb [EMAIL PROTECTED] wrote: I decided to go a bit further and get 0.30.1 working on my MDK9.2 box. Here's the list of packages that I had to install: Ok, but the packages you installed are from cooker (10.0 rc1). It's not considered a good thing to use them on 9.2. Things tend to break then. That's why I provided backported 9.2 packages, and I suggest to use them on 9.2 instead of the cooker packages. Btw, I don't understand why the mandrakeclub lists cooker packages, they really shouldn't do that. -- Marcel Pol On Thu, 2004-02-19 at 10:44, Marcel Pol wrote: On Thu, 19 Feb 2004 11:42:05 +1000 Tracy Barlow [EMAIL PROTECTED] wrote: Why is there no longer a Mandrake Package (either 9.1 or 9.2), for release 30 and 30.1 There are Mandrake packages. For 10.0 rc1 (cooker) you can get them from any cooker contrib mirror. The 9.2 contrib has packages of 0.26 I believe, and I have backported 0.31.1 packages for 9.2 in a third-party repository. You can get them here: http://mirror.brain.org/linux/mpol/mandrake/i586/9.2/ I don't know why Ximian doesn't make them, are there any plans from Ximian to provide Mandrake packages, or do you think my packages are enough (non-RedCarpet, but urpmi-able). I'm willing to cooperate, but I don't know what the plans of Ximian are. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] IDE for mono/linux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I'm looking for a IDE for C# under linux. I found the eclipse addin, but it doesn't work whit Eclipse 3.x. I'm not that familiar whit emacs, and would like to use a regular IDE insteed. Do you have a hint for me? kind regards manuel -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFANTgvk3ycFnrKFaoRAg1gAJ0SVJLT0DcssBNZ9R0SnnenBGEChwCeN8I5 PyfpfDWqFoUcnQr3TlvXeZE= =q9mP -END PGP SIGNATURE- ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] IDE for mono/linux
Hi Manuel, I'm looking for a IDE for C# under linux. there is monodevelop, a port of #develop to mono ... as far as I know in the end of February there will be a release of a 0.1 version ... If you want to know more ... at Ximian, there's a mailing list with subject to monodevelop. Greetins, Golo -- Microsoft Community Leader http://www.golohaas.de ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] To draw or not to draw that is the question :)
Pango implements what I think it is the functionality of System.Drawing, no? it implements just the text drawing. Now, I'am confused what library I should use to draw... What do you want to do? Scalar vector graphics: rsvg-sharp, trivial gui for existing windows programs: S.W.F., new trivial guis: gtk# + glade#, new guis: gtk#, Imaging and some low-level graphics: Gdk, existing windows programs with low-level graphics: You should wait until System.Drawing comes up to the light (and it may not work if using P/Invokes, which is fair easy)... But again: What do you want to do? The decision may impact you in time, resources, deployment, complexity... -- Saludos, Gustavo Ramos ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mandrake Package
Hello, I used Mandrake, and I've kept away from rpms, specially for fast-changing projects like mono. I used to download the latest snapshot, the sources of the other packages and build everything: ./configure --prefix=/home/me/mono/install make; make install etc. Needless to say that in my .bash_profile I had export PATH=/home/me/mono/install/bin:$PATH export PKG_CONFIG_PATH=/home/me/mono/install/lib/pkgconfig:$PKG_CONFIG_PATH #and export LD_LIBRARY_PATH=/home/me/mono/install/lib:$LD_LIBRARY_PATH And that's all. Any extra required packages were installed in the same prefix. Notice that I've put the mono paths in before the default paths, so any duplicated package resolved first to the mono path. Of course, uninstall anything that could be shoking with mono. This way you have a safe sandbox for mono development, and will avoid tons of dependencies. If something goes wrong, rm -rf mono/install and start it over again. Happily I now have a gentoo distro that keeps all things well updated (latest versions in general), but keeps a very good stability. Am not evangelizing, just sharing my experience with this distro (btw, a drawback is that you'll have to do a lot of things manually). Will see over time if it all stay smooth. Regards, Gustavo On Thu, 2004-02-19 at 15:26, Marcel Pol wrote: On Thu, 19 Feb 2004 15:01:19 -0600 Mark Gimelfarb [EMAIL PROTECTED] wrote: I decided to go a bit further and get 0.30.1 working on my MDK9.2 box. Here's the list of packages that I had to install: Ok, but the packages you installed are from cooker (10.0 rc1). It's not considered a good thing to use them on 9.2. Things tend to break then. That's why I provided backported 9.2 packages, and I suggest to use them on 9.2 instead of the cooker packages. Btw, I don't understand why the mandrakeclub lists cooker packages, they really shouldn't do that. -- Marcel Pol On Thu, 2004-02-19 at 10:44, Marcel Pol wrote: On Thu, 19 Feb 2004 11:42:05 +1000 Tracy Barlow [EMAIL PROTECTED] wrote: Why is there no longer a Mandrake Package (either 9.1 or 9.2), for release 30 and 30.1 There are Mandrake packages. For 10.0 rc1 (cooker) you can get them from any cooker contrib mirror. The 9.2 contrib has packages of 0.26 I believe, and I have backported 0.31.1 packages for 9.2 in a third-party repository. You can get them here: http://mirror.brain.org/linux/mpol/mandrake/i586/9.2/ I don't know why Ximian doesn't make them, are there any plans from Ximian to provide Mandrake packages, or do you think my packages are enough (non-RedCarpet, but urpmi-able). I'm willing to cooperate, but I don't know what the plans of Ximian are. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list -- Saludos, Gustavo Ramos ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Testing Large Web Applications
El jue, 19-02-2004 a las 20:51, Met @ Uber escribió: It definitely looks like exactly what I need, but it keeps dying with a Segmentation fault from nunit-console.exe. I've actually had this happen a number of times with NUnit when my tests have involved databases. Any ideas or suggestions on how to get around this would be greatly appreciated. I'm just trying the what the example in the tutorial shows. It would be nice if we get a bug report so that we can fix the issues you have with NUnit and databases. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] mod_mono/xsp in Production .... ?
El jue, 19-02-2004 a las 22:02, Met @ Uber escribió: I'm trying to get the company I work for to consider using ASP.NET because of the benefits it has. As a `Mono kinda guy` I'd love to use mod_mono and stick with Linux. As such I've got a bunch of questions regarding mod_mono (assume xsp by default). For the following, assume we can work through bugs as they come. And know that we currently run 3 web servers with PHP/Apache - so we'd be comparing scalability to that. Will mod_mono integrate with Apache as well as PHP does? If not, does it plan on performing such a task? We plan on making the integration as easy and powerful as possible. If you have any request, bugzilla is the way to go. Has mod_mono been tested under LARGE loads? If so, how did it handle? We use it in go-mono.com. It perfoms quite well and there's lot of room for improvements. We're quite there. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list