RE: [Mono-dev] framework for system.web tests

2006-05-07 Thread Andrew Skiba
> > Why not adopt this to be part of the unit tests directly?
> 
> That's definitely the idea - the patch just didn't provide 
> any changes to the existing unit tests.

My colleges Tal and Yoni are going to commit few tests as soon as this
framework is ready.

> 
> > And if this is not possible, we should add it as another 
> check so we 
> > can use "make run-test-local" as a way of ensuring that we have not 
> > broken anything.
> >
> > Putting the tests in Test/mainsoft just means that we will 
> not likely 
> > run those until someone does the work and we will just 
> ignore them and 
> > not get the benefit of having them.
> 
> Right but there's no code here to actually run any new unit 
> tests (or alter existing unit tests to make use of it).  it's 
> just framework code.
> I just figured getting it into svn someplace now (and later 
> mv'ing it once we had patches to tests to started using it, 
> or once we wrote new tests that depend on it) would be better 
> than waiting until tests used it to get it in svn at all.
> 
> Chris
> 
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Patch for HttpRequest.cs

2006-05-07 Thread Gonzalo Paniagua Javier
On Tue, 2006-05-02 at 17:11 +0200, Juraj Skripsky wrote:
> Hello,
> 
> The attached patch makes sure that the get-parameters in QueryString are
> url-decoded using the proper encoding (when creating the
> NameValueCollection).
> 
> May I commit?

Please, do.
Thanks.

-Gonzalo


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] typeof(Byte[]).GetInterfacesMap

2006-05-07 Thread Voigt, Benjamin
Would someone please be so kind as to run the following unit test on Mono?  
It's written against Zanebug but should be easy to run with any testing 
framework.

using Adapdev.UnitTest;

[TestFixture]
class GetInterfaceMap
{
[Test]
public static void ByteArray()
{
System.Type baseType = typeof(System.Byte[]);
foreach (System.Type iface in baseType.GetInterfaces())
{
System.Diagnostics.Trace.WriteLine(iface.FullName);
Assert.IsNotNull(baseType.GetInterfaceMap(iface));
}
}
}

If it fails on Mono, can someone explain why?  If it succeeds, I'm off to tell 
Microsoft their .NET 2.0 runtime isn't worth the hard disk space to hold it

I'm asking because Microsoft fails miserably for GetInterfaces()[4/5/6] which 
are IList, ICollection, and IEnumerable:

-- Test started: Assembly: RealTime.Tests.dll --

System.ICloneable
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Generic.IList`1[[System.Byte, mscorlib, Version=2.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089]]
TestCase 'M:GetInterfaceMap.ByteArray' failed: Interface not found.
System.ArgumentException: Interface not found.
at System.RuntimeTypeHandle.GetFirstSlotForInterface(IntPtr 
interfaceHandle)
at System.RuntimeTypeHandle.GetFirstSlotForInterface(RuntimeTypeHandle 
interfaceHandle)
at System.RuntimeType.GetInterfaceMap(Type ifaceType)
Realtime\RealTimeTests\GetInterfaceMap.cs(13,0): at 
GetInterfaceMap.ByteArray()


0 passed, 1 failed, 0 skipped, took 1.39 seconds.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Gecko-sharp and Flash

2006-05-07 Thread Daniel Lacroix
Hi.

I'm using gecko-sharp to create my own specific browser. I want to be
able view Flash content in this browser.

The browser is working good but no mozilla plugin is available.

Is it possible to have the plugin when using Gecko-sharp ?

I have see now way to specify my plugin directory to the WebControl.

If someone has a solution.

Thanks.
Daniel

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Re: How to get the assembly version?

2006-05-07 Thread Ympostor

Jb Evain escribió:

But this would have been better asked on the mono-list.


Why? This question arised when developing *with* Mono, as stated at:

http://www.mono-project.com/Mailing_Lists

Regards.

--

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Patch for FileStream.cs (correct exception message)

2006-05-07 Thread Markus Mauhart
Hi,


with unpatched 1.1.15 I get the following message:

Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of 
range.
Parameter name: Positive number required.

Appended the correction (which does like the other existing, correct, messages).


Regards,
Markus.



--- mono-1.1.15/mcs/class/corlib/System.IO/FileStream.cs2006-04-14 
19:50:35.0 +0200
+++ mono-1.1.15/mcs/class/corlib/System.IO/FileStream.patched.cs
2006-05-06 18:14:34.75000 +0200
@@ -148,7 +148,7 @@ namespace System.IO
 #endif

if (bufferSize <= 0)
-   throw new ArgumentOutOfRangeException 
("Positive number required.");
+   throw new ArgumentOutOfRangeException 
("bufferSize", "Positive number required.");

if (mode < FileMode.CreateNew || mode > FileMode.Append)
throw new ArgumentOutOfRangeException ("mode", 
"Enum value was out of legal range.");
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Gecko-sharp and Flash

2006-05-07 Thread Miguel de Icaza
Hello,

> The browser is working good but no mozilla plugin is available.
> 
> Is it possible to have the plugin when using Gecko-sharp ?
> 
> I have see now way to specify my plugin directory to the WebControl.
> 
> If someone has a solution.

Just yesterday someone posted the solution, you need to set a variable,
MOZILLA_PLUGINS or something like that, scan the list for the answer
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Alejandro Serrano
Is there any way I could use the parser that Ilasm
uses to obtain the set of classes, methods,
properties, etc... from an IL source file? I don't
mind making some rework, although I think this parser
could address my needs if I got some way to use it
just not for plain code generation.

Thanks in advance,
Serras



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Andreas Nahr

Why not just use Cecil?
That would work for any IL, not just (but also) ILAsm source...

- Original Message - 
From: "Alejandro Serrano" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, May 07, 2006 5:13 PM
Subject: [Mono-dev] Using Ilasm parser on other applications



Is there any way I could use the parser that Ilasm
uses to obtain the set of classes, methods,
properties, etc... from an IL source file? I don't
mind making some rework, although I think this parser
could address my needs if I got some way to use it
just not for plain code generation.

Thanks in advance,
Serras



__
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Alejandro Serrano
I mean getting the IL source file and parsing it to get the methods, 
classes, defined in the file..., something like an IDE does with source 
codes. Does Cecil implement this functionality? I thought it just worked 
for already compiled assemblies. Which classes should I use for the task?


Serras

Andreas Nahr escribió:

Why not just use Cecil?
That would work for any IL, not just (but also) ILAsm source...

- Original Message - From: "Alejandro Serrano" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, May 07, 2006 5:13 PM
Subject: [Mono-dev] Using Ilasm parser on other applications



Is there any way I could use the parser that Ilasm
uses to obtain the set of classes, methods,
properties, etc... from an IL source file? I don't
mind making some rework, although I think this parser
could address my needs if I got some way to use it
just not for plain code generation.

Thanks in advance,
Serras



__
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list








__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Gecko-sharp and Flash

2006-05-07 Thread Zac Bowling
You have to set the CompPath property on the WebControl object to a
mozilla/firefox directory that has a plugins folder get it to work.

Its a static so just say 

WebControl.CompPath = "/usr/lib/mozilla-firefox"; 

And yes, I know it sucks it doesn't do that for you automatically.  

Zac

On Sun, 2006-05-07 at 10:45 -0400, Miguel de Icaza wrote:
> Hello,
> 
> > The browser is working good but no mozilla plugin is available.
> > 
> > Is it possible to have the plugin when using Gecko-sharp ?
> > 
> > I have see now way to specify my plugin directory to the WebControl.
> > 
> > If someone has a solution.
> 
> Just yesterday someone posted the solution, you need to set a variable,
> MOZILLA_PLUGINS or something like that, scan the list for the answer
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [ASP.NET] HttpRequest question

2006-05-07 Thread Marek Habersack
Hello everybody,

  There's some code in HttpRequest's MapPath (starting at
HttpRequest.cs:1170) that I can't dig the logic of. Given a site with the
following sample structure:

 /
 /web.config
 /login.aspx
 /Global.aspx
 /Global.aspx.cs
 /bin/
 /admin/
 /admin/web.config
 /admin/default.aspx
 /admin/default.aspx.cs
 /student/
 /student/web.config
 /student/default.aspx
 /student/default.aspx.cs

where the toplevel web.config contains authentication configuration and the
web.configs in subdirs contain authorization setup for the dirs. 

When the app is started and the user navigates to yourhost.com/admin/ or
yourhost.com/student/, the first exception in the above code block is
thrown. Here's what MapPath sees just before throwing the exception:

virtualPath == /Global.asax.cs; RootVirtualDir == /admin

So, I don't understand why RootVirtualDir is set to /admin instead of /,
which is the actual application root. The request is definitely not crossing
app boundaries, so either the code block is wrong, or RootVirtualDir has an
incorrect value. Could somebody, please, shed some light on it?

tia, best regards

marek


signature.asc
Description: Digital signature
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Jb Evain

Hola,

On May 7, 2006, at 10:52 PM, Alejandro Serrano wrote:
I mean getting the IL source file and parsing it to get the  
methods, classes, defined in the file..., something like an IDE  
does with source codes. Does Cecil implement this functionality? I  
thought it just worked for already compiled assemblies. Which  
classes should I use for the task?


Using Cecil, you can build assemblies from scratch, by creating an  
object graph, and serializing it back. But it does not parse CIL text  
files. If you have to, you'll need to use or extend the ilasm parser.  
Have a look at ilasm's Driver.cs to see how you can embed it.


Jb


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [Fwd: [Mono-patches] r60310 - trunk/mono/mono/metadata]

2006-05-07 Thread Atsushi Eno

Hi Zoltan,

Seems like it started to cause sharing violation on win32 build.
(r60309 built fine.)

make[8]: Entering directory `/home/atsushi/svn/mcs/class/corlib'
Creating ../../build/deps/default_corlib.dll.response ...
MONO_PATH="../../class/lib/net_1_1_bootstrap;$MONO_PATH" 
/home/atsushi/svn/mono/runtime/mono-wrapper 
../../class/lib/net_1_1_bootstrap/mcs.exe /codepage:28591
-nowarn:169,612,618,649 -d:INSIDE_CORLIB /nologo /optimize -d:NET_1_1 
-d:ONLY_1_1 /debug+ /debug:full /noconfig -unsafe -nostdlib 
-resource:resources/collation.core.bin 
-resource:resources/collation.tailoring.bin 
-resource:resources/collation.cjkCHS.bin 
-resource:resources/collation.cjkCHT.bin 
-resource:resources/collation.cjkJA.bin 
-resource:resources/collation.cjkKO.bin 
-resource:resources/collation.cjkKOlv2.bin -target:library 
-out:mscorlib.dll  @../../build/deps/default_corlib.dll.response
System\Int32.cs(146,33): warning CS0168: The variable `e' is declared 
but never used
System.Security.Permissions\FileIOPermission.cs(531,30): warning CS0162: 
Unreachable code detected
System\MonoType.cs(188,8): warning CS0219: The variable `typesLen' is 
assigned but its value is never used

Compilation succeeded - 3 warning(s)
A: 0
A: 3
A: 1
A: 1
A: 1
MONO_PATH="../../class/lib/net_1_1_bootstrap;$MONO_PATH" 
/home/atsushi/svn/mono/
runtime/mono-wrapper  ../../class/lib/net_1_1_bootstrap/sn.exe -q -R 
mscorlib.dll ../../class/mono.snk


Unhandled Exception: System.IO.IOException: Sharing violation on path 
mscorlib.dll
in <0x00336> System.IO.FileStream:.ctor (System.String name, FileMode 
mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean 
anonymous, FileOptions options)
in <0x0001f> System.IO.FileStream:.ctor (System.String name, FileMode 
mode, FileAccess access, FileShare share)
in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor 
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)

in <0x00021> System.IO.File:OpenWrite (System.String path)
in <0x0012e> Mono.Security.StrongName:Sign (System.String fileName)
in <0x00124> Mono.Tools.SN:ReSign (System.String assemblyName, 
System.Security.Cryptography.RSA key)

in <0x008ca> Mono.Tools.SN:Main (System.String[] args)
make[8]: *** [../../class/lib/default/mscorlib.dll] Error 1
make[8]: Leaving directory `/home/atsushi/svn/mcs/class/corlib'
make[7]: *** [do-all] Error 2
make[7]: Leaving directory `/home/atsushi/svn/mcs/class/corlib'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/home/atsushi/svn/mcs/class'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/atsushi/svn/mcs'
make[4]: *** [profile-do--default--all] Error 2
make[4]: Leaving directory `/home/atsushi/svn/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory `/home/atsushi/svn/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/home/atsushi/svn/mono/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/atsushi/svn/mono'
make: *** [all] Error 2


I tried to sign some core assemblies using external (already
installed) sn.exe to go on, but the same problem still happened
on other assemblies, so I think the runtime incorrectly locks
the target assembly file.

Atsushi Eno

 Original Message 
Subject: [Mono-patches] r60310 - trunk/mono/mono/metadata
Date: Fri,  5 May 2006 13:17:50 -0400 (EDT)
From: Zoltan Varga (vargaz AT gmail.com) 
<[EMAIL PROTECTED]>
To: mono-patches@lists.ximian.com, [EMAIL PROTECTED], 
[EMAIL PROTECTED]


Author: zoltan
Date: 2006-05-05 13:17:49 -0400 (Fri, 05 May 2006)
New Revision: 60310

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/assembly.c
   trunk/mono/mono/metadata/domain.c
   trunk/mono/mono/metadata/image.c
   trunk/mono/mono/metadata/metadata-internals.h
Log:
2006-05-05  Zoltan Varga  <[EMAIL PROTECTED]>

	* metadata-internals.h image.c assembly.c: Change the reference 
counting scheme

to also allow for temporary references between mono_image_open ()/close 
().

* domain.c (get_runtimes_from_exe): Add a FIXME.


Modified: trunk/mono/mono/metadata/ChangeLog
===
--- trunk/mono/mono/metadata/ChangeLog  2006-05-05 17:13:26 UTC (rev 60309)
+++ trunk/mono/mono/metadata/ChangeLog  2006-05-05 17:17:49 UTC (rev 60310)
@@ -1,3 +1,10 @@
+2006-05-05  Zoltan Varga  <[EMAIL PROTECTED]>
+
+	* metadata-internals.h image.c assembly.c: Change the reference 
counting scheme
+	to also allow for temporary references between mono_image_open 
()/close ().

+
+   * domain.c (get_runtimes_from_exe): Add a FIXME.
+
 2006-05-04  Zoltan Varga  <[EMAIL PROTECTED]>

* marshal.c: Fix support for dynamic methods.

Modified: trunk/mono/mono/metadata/assembly.c
===
--- trunk/mono/mono/metadata/assembly.c 2006-05-05 17:13:26 UTC (rev 60309)
+++ trunk/mono/mono/metadata/as

[Mono-dev] cosmetic API fixes for 2.0 xml serialization and ws

2006-05-07 Thread Atsushi Eno
Hi Lluis,

I have a set of cosmetic 2.0 API fixed for xml serialization (and
related sys.web.services). If there is no problem I'll commit it.

Some files changes its namespace (S.X.S.Advanced) so I will also
have to create subdirectory for them (after applying the patch).

Atsushi Eno
Index: System.XML/System.Xml.dll.sources
===
--- System.XML/System.Xml.dll.sources   (revision 60270)
+++ System.XML/System.Xml.dll.sources   (working copy)
@@ -338,6 +338,7 @@
 System.Xml.Serialization/XmlMemberMapping.cs
 System.Xml.Serialization/XmlMembersMapping.cs
 System.Xml.Serialization/XmlMapping.cs
+System.Xml.Serialization/XmlMappingAccess.cs
 System.Xml.Serialization/XmlNamespaceDeclarationsAttribute.cs
 System.Xml.Serialization/XmlNodeEventArgs.cs
 System.Xml.Serialization/XmlReflectionImporter.cs
Index: System.XML/System.Xml.Serialization/XmlCodeExporter.cs
===
--- System.XML/System.Xml.Serialization/XmlCodeExporter.cs  (revision 60270)
+++ System.XML/System.Xml.Serialization/XmlCodeExporter.cs  (working copy)
@@ -87,11 +87,11 @@
[MonoTODO ("mappings?")]
public XmlCodeExporter (CodeNamespace codeNamespace, 
CodeCompileUnit 
codeCompileUnit, 
-   ICodeGenerator 
codeGen, 
+   CodeDomProvider 
codeProvider, 

CodeGenerationOptions options, 
Hashtable 
mappings)
{
-   codeGenerator = new XmlMapCodeGenerator (codeNamespace, 
codeCompileUnit, codeGen, options, mappings);
+   codeGenerator = new XmlMapCodeGenerator (codeNamespace, 
codeCompileUnit, codeProvider, options, mappings);
}
 #endif
 
@@ -189,8 +189,8 @@
{
}
 
-   public XmlMapCodeGenerator (CodeNamespace codeNamespace, 
CodeCompileUnit codeCompileUnit, ICodeGenerator codeGen, CodeGenerationOptions 
options, Hashtable mappings)
-   : base (codeNamespace, codeCompileUnit, codeGen, options, 
mappings)
+   public XmlMapCodeGenerator (CodeNamespace codeNamespace, 
CodeCompileUnit codeCompileUnit, CodeDomProvider codeProvider, 
CodeGenerationOptions options, Hashtable mappings)
+   : base (codeNamespace, codeCompileUnit, codeProvider, options, 
mappings)
{
}

Index: System.XML/System.Xml.Serialization/SoapCodeExporter.cs
===
--- System.XML/System.Xml.Serialization/SoapCodeExporter.cs (revision 60270)
+++ System.XML/System.Xml.Serialization/SoapCodeExporter.cs (working copy)
@@ -80,11 +80,11 @@
[MonoTODO ("mappings?")]
public SoapCodeExporter (CodeNamespace codeNamespace, 
CodeCompileUnit 
codeCompileUnit, 
-   ICodeGenerator 
codeGen, 
+   CodeDomProvider 
codeProvider, 

CodeGenerationOptions options, 
Hashtable 
mappings)
{
-   codeGenerator = new SoapMapCodeGenerator 
(codeNamespace, codeCompileUnit, codeGen, options, mappings);
+   codeGenerator = new SoapMapCodeGenerator 
(codeNamespace, codeCompileUnit, codeProvider, options, mappings);
}
 
 #endif
@@ -144,8 +144,8 @@
includeArrayTypes = true;
}
 
-   public SoapMapCodeGenerator (CodeNamespace codeNamespace, 
CodeCompileUnit codeCompileUnit, ICodeGenerator codeGen, CodeGenerationOptions 
options, Hashtable mappings)
-   : base (codeNamespace, codeCompileUnit, codeGen, options, 
mappings)
+   public SoapMapCodeGenerator (CodeNamespace codeNamespace, 
CodeCompileUnit codeCompileUnit, CodeDomProvider codeProvider, 
CodeGenerationOptions options, Hashtable mappings)
+   : base (codeNamespace, codeCompileUnit, codeProvider, options, 
mappings)
{
}

Index: System.XML/System.Xml.Serialization/MapCodeGenerator.cs
===
--- System.XML/System.Xml.Serialization/MapCodeGenerator.cs (revision 60270)
+++ System.XML/System.Xml.Serialization/MapCodeGenerator.cs (working copy)
@@ -48,7 +48,7 @@
CodeAttributeDeclarationCollection includeMetadata;