[Mono-list] Re: Problem compiling simple app using Mono. Partial declarations of `TestMono.Form1' have conflicting accessibility modifiers
Stacey Levine escribió: Hello everyone. I am testing out Mono for an application and am having problems with compiling my application. I built a simple C# application that has one form and I put the controls on the form that I am going to need. My little test project is here : http://www.levineclan.net/testMono.zip I think I have the compile line figured out, and there is a batch file in that directory structure which should do it, but when I try to compile using mono – I get one error message that I have no idea how to fix. The message is below. Anything you could do to help would be greatly appreciated. “D:\Projects .NET\TestMono\TestMono>mcs /out:test.exe Program.cs Form1.cs Form1. Designer.cs Form1.Designer.cs(3,19): error CS0262: Partial declarations of `TestMono.Form1' have conflicting accessibility modifiers Compilation failed: 1 error(s), 0 warnings “ Hello. Without seeing the code: - Partial classes must be declared with the same accessibility keyword (public, private, protected)... - Did you try to compile the program with the MS compiler? Regards, Andrés [ knocte ] -- ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] mod_mono for mono 1.1.15.x
Hello all, I am really interested in getting mod_mono up and running with the newest mono 1.1.15.x I would like any and all assistance with where to start, I have read the list, emailed the mod_mono project managers, and now I am really looking for some direction. Thanks in advance Lenny___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Problem compiling simple app using Mono. Partial declarations of `TestMono.Form1' have conflicting accessibility modifiers
Hello everyone. I am testing out Mono for an application and am having problems with compiling my application. I built a simple C# application that has one form and I put the controls on the form that I am going to need. My little test project is here : http://www.levineclan.net/testMono.zip I think I have the compile line figured out, and there is a batch file in that directory structure which should do it, but when I try to compile using mono – I get one error message that I have no idea how to fix. The message is below. Anything you could do to help would be greatly appreciated. “D:\Projects .NET\TestMono\TestMono>mcs /out:test.exe Program.cs Form1.cs Form1. Designer.cs Form1.Designer.cs(3,19): error CS0262: Partial declarations of `TestMono.Form1' have conflicting accessibility modifiers Compilation failed: 1 error(s), 0 warnings “ Thanks. Stacey ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Working with Files
Dallman, John wrote: > The security issues on this one are, well, large In addition to security concerns - Rather than a raw socket server with a custom protocol, etc, it would be far easier and less time consuming to create web services for authentication, execution of specific functions, etc.. (Encryption would probably be the same regardless of transport mechanisms) Do you have control over client and server? Will you be writing the client code too? Writing socket servers is fun and rewarding but only when someone isn't expecting you to do it with time constraints for a mission-critical app. :) ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Working with Files
> Actually, now that I think of it, there are some specific questions I'd like > to query as well: > 1. Is there a command/class in mono that I can use to invoke specific > applications on the local linux box? System.Diagnostics.Process > I only want to invoke specific > applications such as the sox app I referred to in my first post or restart > the linux box. LOL, I will not be giving clients carte blanche on executing > *any* application on the linux box. Hey, secure or not-secure or completely brain-dead is your problem. :) > 2. In copying or moving files in mono/linux, is it the same as with > .net/windows with the exception of the linux/windows differences in > specifying paths? Nope, just about everything in System.IO.File works without incident. I've done all the normal file operations and haven't had any problems. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Working with Files
> 1. Be able to replace existing .conf files on the linux box based on > requests from the client. > > 2. Be able to shell out to utility executables. An example > would be running the following: The security issues on this one are, well, large. This is a classical example of the kind of server that is intrinsically easy to abuse, and in which any buffer overflows or other security-related bugs will be likely to be very easy to exploit. If someone new to server programming had written something like this and wanted to run it on a server I was responsible for, the answer would be a flat no. Rather than writing something from scratch for the job, you'd be far better trying to find something that is widely used and accepted and can do the job you're actually trying to accomplish. You haven't explained what this is, but if you do, someone on this list may well be able to point you to something appropriate. -- John Dallman, Parasolid Porting Engineer, +44-1223-371554 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] ComboBox: can't select item
hi, i'n developping a application on mono using Csharpi use a combobox, where the data is loaded from a database, then the user must select one option, but, when try to select one option, the terminal display this menssaje gtk_entry_set_text: assertion `text != NULL' failed, and nothing is selected... =S i'm using this code where data is a stringconection public void Cargar_Datos (string data, Gtk.ComboBoxEntry comboBox) { ListStore listStore = new Gtk.ListStore(typeof(string)); comboBox.Model = listStore; CellRendererText text = new CellRendererText(); comboBox.PackStart(text, false); comboBox.AddAttribute(text, "text", 0); MySqlConnection conexion = new MySqlConnection(datos); conexion.Open(); string query = "SELECT cod_concept, description FROM concepts ORDER BY cod_concept"; MySqlCommand select = new MySqlCommand(query, conexion); MySqlDataReader lector; lector = select.ExecuteReader(); while (lector.Read()) { string value= lector.GetString(0)+" | "+ lector.GetString(1); listStore.AppendValues(valor); } lector.Close(); conexion.Close(); }i need help to solve that!!Thanks!!! ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Working with Files
> > > > Are there any caveats or issues that I should be aware of > that anyone > > can comment on? Thanks for your help and guidance. > > Quickly I can see some issues: > Authentication; > Authorization; > Confidentiality; > Auditing > and a caveat: > lack of security will result in very "bad things"(tm). Thank you for replying. I should have been more specific..my apologies. I am coming from a Windows coding back ground (Delphi and recently C#/VS) and I was wondering in that particular context, if there was anything that I should be aware of. I could have sworn I had mentioned that in my first post although I obviously did not. Again, sorry about that. Actually, now that I think of it, there are some specific questions I'd like to query as well: 1. Is there a command/class in mono that I can use to invoke specific applications on the local linux box? I only want to invoke specific applications such as the sox app I referred to in my first post or restart the linux box. LOL, I will not be giving clients carte blanche on executing *any* application on the linux box. 2. In copying or moving files in mono/linux, is it the same as with .net/windows with the exception of the linux/windows differences in specifying paths? Thanks again, Warm Regards, Lee ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Working with Files
On Thu, 2006-06-15 at 11:10 -0400, Lee wrote: > Hi Everyone, > > I need to write a small TCP socket server to run on a linux box using a > simple xml based request/response protocol. The socket server will need to: > > 1. Be able to replace existing .conf files on the linux box based on > requests from the client. > > 2. Be able to shell out to utility executables. An example would be running > the following: > > sox foo.wav -r 8000 foo.gsm resample -ql > > Are there any caveats or issues that I should be aware of that anyone can > comment on? Thanks for your help and guidance. Quickly I can see some issues: Authentication; Authorization; Confidentiality; Auditing and a caveat: lack of security will result in very "bad things"(tm). -- Sebastien Pouliot <[EMAIL PROTECTED]> Blog: http://pages.infinit.net/ctech/ ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] ikvm building problem
PFJ wrote: > Okay, this is possibly not the best place to be asking this... A better place would be the ikvm-developers list (https://lists.sourceforge.net/lists/listinfo/ikvm-developers) > I'm trying to build ikvm-0.28.0.0 from the ikvm.net website. [...] > The error coming up is > > [exec] > File > ../../classpath-0.19/external/sax/org/xml/sax/AttributeList.java is > missing > > I cannot find this file either. Where does it come from? You need to download the GNU Classpath sources as well. For ikvm-0.22 you need GNU Classpath 0.19 and for ikvm-0.28 you need 0.91 (the GNU Classpath version number jumped in between the two releases). You can get them here: ftp://ftp.gnu.org/pub/gnu/classpath/classpath-0.19.tar.gz ftp://ftp.gnu.org/pub/gnu/classpath/classpath-0.91.tar.gz Regards, Jeroen ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Working with Files
Hi Everyone, I need to write a small TCP socket server to run on a linux box using a simple xml based request/response protocol. The socket server will need to: 1. Be able to replace existing .conf files on the linux box based on requests from the client. 2. Be able to shell out to utility executables. An example would be running the following: sox foo.wav -r 8000 foo.gsm resample -ql Are there any caveats or issues that I should be aware of that anyone can comment on? Thanks for your help and guidance. Warm Regards, Lee Jenkins ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] [Fwd: ikvm building problem]
-- "Logic, my dear Zoe, is merely the ability to be wrong with authority" - Dr Who --- Begin Message --- Hi, Okay, this is possibly not the best place to be asking this... I'm trying to build ikvm-0.28.0.0 from the ikvm.net website. Unlike the version on the go-mono/sources tree, this actually has the sources in (naughty naughty...) I have nant installed on my box along with eclipse-ecj (I'm using FC5). The problem is that with both 0.22.0.0 and 0.28.0.0, the build fails in the same place and I'm at a loss to see why as everything looks sane. The error coming up is [exec] File ../../classpath-0.19/external/sax/org/xml/sax/AttributeList.java is missing I cannot find this file either. Where does it come from? TTFN Paul -- "Logic, my dear Zoe, is merely the ability to be wrong with authority" - Dr Who --- End Message --- ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] ikvm building problem
Hi, Okay, this is possibly not the best place to be asking this... I'm trying to build ikvm-0.28.0.0 from the ikvm.net website. Unlike the version on the go-mono/sources tree, this actually has the sources in (naughty naughty...) I have nant installed on my box along with eclipse-ecj (I'm using FC5). The problem is that with both 0.22.0.0 and 0.28.0.0, the build fails in the same place and I'm at a loss to see why as everything looks sane. The error coming up is [exec] File ../../classpath-0.19/external/sax/org/xml/sax/AttributeList.java is missing I cannot find this file either. Where does it come from? TTFN Paul -- "Logic, my dear Zoe, is merely the ability to be wrong with authority" - Dr Who ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list