mcs csharp-client-socket.cs csharp-client-socket.cs(2,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing an assembly reference? csharp-client-socket.cs(3,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
mcs /reference:System.Drawing.dll /reference:System.Windows.Forms csharp-client-socket.cs csharp-client-socket.cs(21,13): error CS0103: The name `InitializeComponent' does not exist in the current context csharp-client-socket.cs(35,13): error CS0103: The name `label1' does not exist in the current context csharp-client-socket.cs(47,68): error CS0103: The name `textBox2' does not exist in the current context csharp-client-socket.cs(47,59): error CS1502: The best overloaded method match for `System.Text.Encoding.GetBytes(string)' has some invalid arguments /usr/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous error) csharp-client-socket.cs(47,59): error CS1503: Argument `#1' cannot convert `object' expression to type `string' csharp-client-socket.cs(63,13): error CS0103: The name `textBox2' does not exist in the current context csharp-client-socket.cs(65,13): error CS0103: The name `textBox2' does not exist in the current context csharp-client-socket.cs(75,29): error CS0103: The name `textBox1' does not exist in the current context csharp-client-socket.cs(75,13): error CS0103: The name `textBox1' does not exist in the current context Compilation failed: 9 error(s), 0 warnings > Can you post the error messages? > > William Ivanski > > 2014-09-09 11:52 GMT-03:00 Alf C Stockton <[email protected]>: > >> >> I have tried >> mcs csharp-client-socket.cs >> mcs /reference:System.Drawing.dll /reference:System.Windows.Forms >> csharp-client-socket.cs >> and >> mcs /reference:System.Drawing.dll /reference:System.Windows.Forms >> /reference:itextsharp.dll csharp-client-socket.cs >> all with different errors. >> > On 09/09/14 15:30, Alf C Stockton wrote: >> >> I have the need to convert the attached code to Debian Wheezy >> >> 3.2.60-1+deb7u3. >> >> I am attempting to compile with mono version 2.10.8.1 but I get the >> >> following error:- >> >> error CS0234: The type or namespace name `Drawing' does not exist >> in >> >> the >> >> namespace `System'. Are you missing an assembly reference? >> >> csharp-client-socket.cs(3,14): error CS0234: The type or namespace >> name >> >> `Windows' does not exist in the namespace `System'. Are you missing >> an >> >> assembly reference? >> >> >> >> Please tell me how I fix this. >> > >> > Tell us first how you're compiling? >> > >> > >> > _______________________________________________ >> > Mono-list maillist - [email protected] >> > http://lists.ximian.com/mailman/listinfo/mono-list >> > >> >> >> -- >> Regards, >> Alf Stockton www.stockton.co.za >> >> _______________________________________________ >> Mono-list maillist - [email protected] >> http://lists.ximian.com/mailman/listinfo/mono-list >> > -- Regards, Alf Stockton www.stockton.co.za _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
