[Mono-list] (no subject)

2003-12-12 Thread Bryan Bulten
? Rectangle.diff
Index: Rectangle.cs
===
RCS file: /mono/mcs/class/System.Drawing/System.Drawing/Rectangle.cs,v
retrieving revision 1.4
diff -u -r1.4 Rectangle.cs
--- Rectangle.cs13 Nov 2003 22:40:00 -  1.4
+++ Rectangle.cs12 Dec 2003 00:49:54 -
@@ -13,6 +13,7 @@
 
 namespace System.Drawing {

+   [Serializable]
[StructLayout(LayoutKind.Sequential)]
[ComVisible (true)]
[TypeConverter(typeof(RectangleConverter))]
@@ -109,8 +110,8 @@
{
x -= sz.Width;
y -= sz.Height;
-   Width = sz.Width * 2;
-   Height = sz.Height * 2;
+   Width += sz.Width * 2;
+   Height += sz.Height * 2;
}
 
/// 
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Re: Mono.Security

2003-12-12 Thread Sunil Kumar
Sebastin,
  I wasn't able to file bug report since we have some problem with HTTP services here 
right now. I am attaching all the details with this mail only.

>>a.Windows, MS.NET runtime/class library
I got following Result after runnign the test program:-

CERTIFICATE:
Format:  X509
Name:  OU=Organizational CA, O=SUNILK-TREE
Issuing CA:  OU=Organizational CA, O=SUNILK-TREE
Key Algorithm:  1.2.840.113549.1.1.1
Serial Number:  27120202EBE69CCC8556EA84716043D2F8CC2981B8B2A54D75094975
EAD0EC111C02
Key Alogrithm Parameters:  0500
Public Key:  3082010A0282010100A320C0566649D81D91EED21CD2569F9A71DA94A69
F7FCB256AB27A94A8864E2DAC5DADD4D74D8206909F19AB48A5F6E5845BECB6EE9546C29B8CA6745
AA0147F6DF56560E997B6DD2B280868AB5090D154F945829F22203615430CC9EC84D8F80E1F41702
0F2BCC3C9A4FDA94A04E7146EA1532611CB35B831F329E7FAAD4E66406FC8BFBF5F49CB5D11232B6
F3B4823F2A1E61F906D862D5FBBDCB3E95B2C8E39F04EC7EF4C42A2BC90731415188FAF8160148BC
6195762023AA25E325D9F90BB1801056D7B0D6C0029520F9E0C4233CB8E785962CF01A512DC25F38
868529E904EE3CD7440606C9866EBF0C13239333DD0533902542C61330D5EFAEDB996DF020301000
1

>>b.Windows, Mono runtime/class library
Since I haven't configured Mono on a windows box, I wasn't able to complete this 
scenario.

>>c.Linux, Mono runtime/class library
I got following Result after runnign the test program:-

Unhandled Exception: System.Security.Cryptography.CryptographicException: Input data 
cannot be coded as a valid certificate.
#0: 0x00349 throw  in Mono.Security.X509.X509Certificate::Parse ([O:0x81b3aa0] )
#1: 0xe callvirt   in Mono.Security.X509.X509Certificate::.ctor ([O:0x81b3aa0] )
#2: 0xe newobj in 
System.Security.Cryptography.X509Certificates.X509Certificate::.ctor ([O:0x81b3aa0] 
[1] )
#3: 0x3 call   in 
System.Security.Cryptography.X509Certificates.X509Certificate::.ctor ([O:0x81b3aa0] )
#4: 0x00030 newobj in 
System.Security.Cryptography.X509Certificates.X509Certificate::CreateFromCertFile 
([O:0x81abe70] )
#5: 0x3 call   in .X509CertTester::Main ([O:0x8146f78] )



I have attached the Test program and certificate with this mail.


Regards,
Sunil




>>> Sébastien Pouliot <[EMAIL PROTECTED]> 12/11/2003 7:20:33 PM >>>
Sunil,

Ok it's getting stranger. I seems in sync with CVS and can't duplicate the
problem with the 2 "candidate" certificates I got (the one from
https://www.nldap.com and the one that Carlos sent me).

Can you try, with your certificate, the following code ...

using System;
using System.Security.Cryptography.X509Certificates;

class X509Tester {
[STAThread]
static void Main (string[] args)
{
X509Certificate x = X509Certificate.CreateFromCertFile (args[0]);
Console.WriteLine (x.ToString (true));
}
}

... on
a.  Windows, MS.NET runtime/class library
b.  Windows, Mono runtime/class library
c.  Linux, Mono runtime/class library

and fill a bug report with the results and the certificate used. I'll look
into this ASAP.
Thanks

Sebastien Pouliot
Security Architect, Motus Technologies, http://www.motus.com 
work: [EMAIL PROTECTED] 
home: [EMAIL PROTECTED] 
blog: http://pages.infinit.net/ctech/poupou.html 


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Behalf Of Sunil Kumar
Sent: 11 décembre 2003 00:22
To: Matt Ryan; [EMAIL PROTECTED] 
Cc: [EMAIL PROTECTED]; Parameswaran S
Subject: Re: [Mono-list] Re: Mono.Security


Looks like there is some problem with the Mono's
System.Security.Cryptography.X509Certificates.X509Certificate class.
I tried to create a certicate object using CreateFromCertFile method and a
ASN1 DER encoded certicate file  ,but its throwing exception. I did the same
thing on windows using MS .NET with the same certificate file and its
working. Below is the code snippet:-

try{
X509Certificate cert = X509Certificate.CreateFromCertFile(certfile);
}Catch(Exception e)
{
Console.WriteLine("Error:" + e.Message);
return;
}

On linux it throws following exception:-
Error: Input data cannot be coded as a valid certificate.

Regards
Sunil.

>>> Carlos Guzmán Álvarez <[EMAIL PROTECTED]> 12/9/2003 9:56:53 PM >>>
Hello:

> There is also an internet-accessible eDirectory server that (I'm told)
 > anyone can use for testing purposes, at http://www.ndlap.com.

Thanks very much.

I have made a little test trying to negotiate the Handshake protocol
against the www.nldap.com using .NET 1.0 and the SSL/TLS libraries
sources from my local tree, with success, i will try to make the same
test using mono, and update the mono cvs sources as soon as possible.






--
Best regards

Carlos Guzmán Álvarez
Vigo-Spain

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

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

[Mono-list] Download ASP.net examples

2003-12-12 Thread Michael Ott
Hello!

Where can i download the MonoWebMail example.
I cannot found the example in path /monkeyguide/samples/ASP.NET/MonoWebMail/

Thanks in advanced
   
CU
 
  Michael  
  
--   
   Michael Ott, e-mail: [EMAIL PROTECTED], www.zolnott.de   
I am registered as user #275453 with the Linux Counter, http://counter.li.org.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] How to maintain values in a HtmlSelect when modifying the content with javascript ?

2003-12-12 Thread Tiago Lima
Hi,

Ok, I tried with the DropDownList but It appears that the elements I add in 
javascript are not "added" when I post the page with the result. Perhaps 
meaning that the DropDownList doesnt add the elements on postback... ?

I have to note that I add DropDownList's on PageLoad...
So, I would like to know if I add a new one on PageLoad, just like I do with 
for example the TextBoxes, It can keep the state comming from the posted 
page... (the number of controls and the controls are the same in the posted 
page and the created page on PageLoad...) I dont know if you understand what 
I mean...

Best regards,
Tiago Lima

On Thursday 11 December 2003 23:37, John BouAntoun wrote:
> I suggest looking at the samples in the xsp project for drop down list.
>
> If you are wanting to work with any html form controls on both the server
> side (C#) and the client side (javascript) then you really should look at
> using controls in the System.Web.UI.WebControls namespace and not the
> System.Web.UI.HtmlControls.
>
> Controls in the System.Web.UI.WebControls namespace still render to the
> page as normal html form controls, so you should be able to access them
> using javascript on the client.
>
> A good tip to keep in mind when using javascript on
> System.Web.UI.WebControls, is that each control has a ClientID property
> that is the string value of the client side control's id.
>
> So if you had a drowdown list called listbox1, when writing javascript to
> the page you would do something like this:
>
> private void PageLoad()
> {
>   if(!IsPostback)
>   {
>   // build the client script to display the client side select item from
> the listbox1 object clientscript = "alert('this is the client side
> list box control: ' + "; clientscript += "document.getElementById('"
>   clientscript += listbox1.ClientID
>   clientscript += @"'));";
>
>   // register this script to run once the program has started
>   Page.RegisterStartupScript("listbox1", clientscript);
>
>   }
> }
>
> Hopefully that example shows you how interactions between client and server
> side work.
>
> JBA
>
> -Original Message-
> From: Tiago Lima [mailto:[EMAIL PROTECTED]
> Sent: Friday, 12 December 2003 10:15 AM
> To: John BouAntoun; mono-devel mailing list; mono-list mailing list
> Subject: Re: [Mono-list] How to maintain values in a HtmlSelect when
> modifying the content with javascript ?
>
>
> Thanks, I will see that..
>
> But in that case, how do I handle that in javascript, just like a ?
>
>   Tiago Lima
>
> On Thursday 11 December 2003 23:06, John BouAntoun wrote:
> > Tiago,
> >
> > If you want to use the equivalent of a Html Select element, that is able
> > to have it's values handle in C# on the server (i.e. on page load and
> > after a postback etc) then why not simply use the
> > System.Web.UI.WebControls.DropdownList item?
> >
> > You can bind the dropdown list option elements to records in a dataview
> > or dataset and you can also get / set the selected index.
> >
> > I'm pretty sure that's what you are looking for.
> >
> > JBA
> >
> >
> >
> > -Original Message-
> > From: Tiago Lima [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 12 December 2003 10:00 AM
> > To: mono-devel mailing list; mono-list mailing list
> > Subject: [Mono-list] How to maintain values in a HtmlSelect when
> > modifying the content with javascript ?
> >
> >
> > Hi,
> >
> > I've a question regarding whether an HtmlSelect maintains the "options"
> > inside it when these options get modified in javascript. I dont know how
> > Microsoft .NET handles this...
> >
> > I have two HtmlSelects, one of them starts empty and the other one have
> > all the elements... The user moves around the elements from one to
> > another and then posts the result... I want to know the elements in the
> > first HtmlSelect... How do I do this?
> >
> > If I select one of the elements in the first HtmlSelect then I get an
> > error:
> >
> > System.IndexOutOfRangeException: Array index is out of range
> > in [0x00074] (at /home/duncan/Mono/mcs/class/System.Web/
> > System.Web.UI.HtmlControls/HtmlSelect.cs:209)
> > System.Web.UI.HtmlControls.HtmlSelect:System.Web.UI.IPostBackDataHandler.
> >Lo adPostData (string,System.Collections.Specialized.NameValueCollection)
> > i
> > ...
> >
> > this is because the HtmlSelect has no elements in the beggining !
> >
> > Is the System.Web.UI.WebControls.ListBox controls doing this?
> >
> > Thanks in advance,
> > Tiago Lima
> >
> > ___
> > 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
>
> ___
> Mono-list maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-li

Re: [Mono-list] How to maintain values in a HtmlSelect when modifying the content with javascript ?

2003-12-12 Thread Gonzalo Paniagua Javier
El vie, 12-12-2003 a las 13:59, Tiago Lima escribió:
> Hi,
> 
> Ok, I tried with the DropDownList but It appears that the elements I add in 
> javascript are not "added" when I post the page with the result. Perhaps 
> meaning that the DropDownList doesnt add the elements on postback... ?
> 
> I have to note that I add DropDownList's on PageLoad...
> So, I would like to know if I add a new one on PageLoad, just like I do with 
> for example the TextBoxes, It can keep the state comming from the posted 
> page... (the number of controls and the controls are the same in the posted 
> page and the created page on PageLoad...) I dont know if you understand what 
> I mean...

You cannot add items using javascript on the client side and expect the
server to know about that. If you want to do so, you need to roll your
our mechanism. I would suggest adding a hidden field with the values you
added (may be also a number) and re-create the control in Page_Load
using those hidden fields. May be you also want to derive from any of
the existing controls to implement this feature.

-Gonzalo


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


Re: [Mono-list] How to maintain values in a HtmlSelect when modifying the content with javascript ?

2003-12-12 Thread Tiago Lima
Ok, I used the HtmlInputHidden and it works fine now!
Just like the VIEWSTATE hidden field :)
Thanks! I thought it would be more difficult, but it was very easy to do!

Thanks,
Tiago Lima

On Friday 12 December 2003 16:25, Gonzalo Paniagua Javier wrote:
> El vie, 12-12-2003 a las 13:59, Tiago Lima escribió:
> > Hi,
> >
> > Ok, I tried with the DropDownList but It appears that the elements I add
> > in javascript are not "added" when I post the page with the result.
> > Perhaps meaning that the DropDownList doesnt add the elements on
> > postback... ?
> >
> > I have to note that I add DropDownList's on PageLoad...
> > So, I would like to know if I add a new one on PageLoad, just like I do
> > with for example the TextBoxes, It can keep the state comming from the
> > posted page... (the number of controls and the controls are the same in
> > the posted page and the created page on PageLoad...) I dont know if you
> > understand what I mean...
>
> You cannot add items using javascript on the client side and expect the
> server to know about that. If you want to do so, you need to roll your
> our mechanism. I would suggest adding a hidden field with the values you
> added (may be also a number) and re-create the control in Page_Load
> using those hidden fields. May be you also want to derive from any of
> the existing controls to implement this feature.
>
> -Gonzalo
>
>
> ___
> 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


[Mono-list] Convert VS Projekt to Mono

2003-12-12 Thread <:::. Teresa_II .:::>
Hi all,

i allready configured my LinuxServer to launch ASP.NET Web Sites wit
Mono.
And it's work even better than i ever expected that =) Realy nice Job!
Now i would like not only launch my WebApplication compiled on Windows
Visual Studio.NET on my Linux Server. I would like to compile whole
Project under Mono. 
Is ist possible to convert MS VS.NET Projekt files to Makefiles for Mono
? To compile project with mcs than.
Thanks for any idea...

-- 
Teresa Kalitowska

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


[Mono-list] is my work of use to mono?

2003-12-12 Thread Manish Chakravarty



hi ,
i developed a software called freec. it converts 
(transliterates) the code written for the linux platform into code for the 
windows platform and vice versa
it creates a database containing two fields per 
record, one for win and other for linux, the engine then parses the file and 
then replaces the win code with linux code and son.
the database engine may be of some use to the mono 
project..
the url is http://groups.yahoo.com/group/freec/
the software is GPLed and u can download and let me 
know..
the docs are also there
so if it can be useful to the proj, i would like to 
contribute to
regards
manish


RE: [Mono-list] Convert VS Projekt to Mono

2003-12-12 Thread Rodolfo Campero
Hi all,
hi!

Is ist possible to convert MS VS.NET Projekt files to Makefiles for Mono
? To compile project with mcs than.
You may find this useful:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg03772/slntomake.cs
cheers,
Rodolfo
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


[Mono-list] HTML or XAML?

2003-12-12 Thread Swaroop C H
Hi All,

  I was just reading this article at ZDNet called "Microsoft patents 'HTML
applications'", the title says it all, really. Out of curiosity, are they
talking about XAML or just HTML?


http://news.zdnet.co.uk/software/developer/0,39020387,39118430,00.htm



  - Swaroop


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


Re: [Mono-list] (no subject) (System.Drawing.Rectangle)

2003-12-12 Thread Bryan Bulten

(mail from the command line didn't allow me to put in a message)


This patch fixes Rectangle.Inflate, and allows Serialization of the
Rectangle class.

> ? Rectangle.diff
> Index: Rectangle.cs
> ===
> RCS file: /mono/mcs/class/System.Drawing/System.Drawing/Rectangle.cs,v
> ...

Cheers.

-- 
Bryan Bulten
http://www.bulten.ca/
http://wxnet.sourceforge.net/


pgp0.pgp
Description: PGP signature


Re: [Mono-list] HTML or XAML?

2003-12-12 Thread Randy J. Ray
  I was just reading this article at ZDNet called "Microsoft patents 'HTML
applications'", the title says it all, really.
I particularly enjoyed reading this paragraph:

According the application, the patent (no. 6,662,341) covers writing a 
standard HTML file that runs in its own window outside of the browser. This 
means, according to the filing, that the author of an HTML application file 
won't face the security constraints imposed by a browser. This relaxed 
security allows an HTML author to do things such as: read from a user's local 
computer; write to a user's local computer and perform scripting of frames 
between domains.

...because, after all, the MS platform is renowned for its security.

Randy
--
[EMAIL PROTECTED]  http://www.rjray.org http://www.svsm.org
Always code as if the guy who ends up maintaining your code will be a violent
psychopath who knows where you live.  -- Rick Osborne
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] HTML or XAML?

2003-12-12 Thread Helge Hess
On 12.12.2003, at 08:37, Swaroop C H wrote:
  I was just reading this article at ZDNet called "Microsoft patents 
'HTML
applications'", the title says it all, really. Out of curiosity, are 
they
talking about XAML or just HTML?
It is just regular, signed, IE DHTML and available for several years 
now. This is really not that interesting. You can make a webpage act a 
bit like a regular application by assigning icons and declaring taskbar 
behaviour.
Somewhat similiar to how Unix can fake any file being a regular 
executable by prepending the interpreter marker (#!/usr/bin python).

Notably IE DHTML is heavily extended and you can write pretty complex 
applications using that. For example it does support Drag&Drop in a 
pretty nice way (also used in the OGo Web interface to drag 
appointments and files inside the HTML page).

Anyway, all that doesn't really relate to Mono ;-)

Greets,
  Helge
--
OpenGroupware.org
http://www.opengroupware.org/
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] (no subject)

2003-12-12 Thread Deepak Jois
Hi All,
I installed Mono from CVS a while ago and then tried to compile the 
XML-RPC.net code from the latest
version 0.8.1 ( http://www.xml-rpc.net/). The output is given as follows.

[EMAIL PROTECTED] src $ mcs  /target:library /out:CookComputing.XmlRpc.dll *.cs 
-r System.Web.dll -r System.Web.Services
XmlRpcAsyncResult.cs(163) error CS1533: Invoke cannot be called directly 
on a delegate
XmlRpcAsyncResult.cs(163) error CS8006: Could not find any applicable 
function for this argument list
Compilation failed: 2 error(s), 0 warnings

I also tried out some older versions which gave me the same error.

Has anyone else had any luck with this?

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


Re: [Mono-devel-list] RE: [Mono-list] How to maintain values in a HtmlSelect when modifying the content with javascript ?

2003-12-12 Thread Pablo Baena
On Thursday 11 December 2003 23:37, John BouAntoun wrote:
> Controls in the System.Web.UI.WebControls namespace still render to the
> page as normal html form controls, so you should be able to access them
> using javascript on the client.
>
> A good tip to keep in mind when using javascript on
> System.Web.UI.WebControls, is that each control has a ClientID property
> that is the string value of the client side control's id.

I don't think this is a good idea, since WebControls are rendered differently 
according to the browser in use, so some HTML properties may change.

-- 
Always
Know the prospects
Learn to expect
Nothing

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


Re: [Mono-list] (no subject) [CookComputing]

2003-12-12 Thread Pablo Fischer
And I just ask: Why do you want to compile it? you have the .dll under
the bin directory.

Also, I'll have a new version of CookComputing that will support other
encoding, in the next two days (today I have it, but you can only use it
in Windows).. but try the bin directory, I use that .dll with no
problems.

And, please, take 30 seconds to write a Subject to the message.
Pablo
El sáb, 13-12-2003 a las 00:06, Deepak Jois escribió:
> Hi All,
> I installed Mono from CVS a while ago and then tried to compile the 
> XML-RPC.net code from the latest
> version 0.8.1 ( http://www.xml-rpc.net/). The output is given as follows.
> 
> [EMAIL PROTECTED] src $ mcs  /target:library /out:CookComputing.XmlRpc.dll *.cs 
> -r System.Web.dll -r System.Web.Services
> XmlRpcAsyncResult.cs(163) error CS1533: Invoke cannot be called directly 
> on a delegate
> XmlRpcAsyncResult.cs(163) error CS8006: Could not find any applicable 
> function for this argument list
> Compilation failed: 2 error(s), 0 warnings
> 
> I also tried out some older versions which gave me the same error.
> 
> Has anyone else had any luck with this?
> 
> Thanks and Regards
> Deepak
> ___
> Mono-list maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt

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