[Mono-list] Error with mod_mono: Invalid length

2008-02-26 Thread Julien Sobrier
Hello,
I use mono 1.2.6, mod_mono and xsp2 1.2.1 with the Microsoft Ajax framework.
I use the rating widget which throws "Invalid length" on a postback:

15|error|500|Invalid length.|

I believe this used to work. I tryied to debug it and I guess this
happends inside mod-mono-server2.exe:
* no error log in Apache, the request is OK:
XX.XXX.XXX.XXX - - [26/Feb/2008:20:18:56 -0800] "POST
/[URL]?[Parameters] HTTP/1.1" 200 29
"http://www.domain.net/[URL]?[Parameters]"; "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.8.1.12) Gecko/20080208
Mandriva/2.0.0.12-1.1mdv2008.0 (2008.0) Firefox/2.0.0.12"
* with log4net I found that this does not hit the Page_Load function
of my aspx page

So the problem seems to happen between Apache and the aspx.page. Is
there a way to get mod-mono-server2.exe to produce a log file?

Thank you
Julien
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono 1.9 (1/2/3) Generic Error [GDI+ status: GenericError]

2008-02-26 Thread Thomas Wiest
Hey Timothy,
Please file a bug and attach a testcase the reproduces the problem
(the smaller the better). It's pretty late in the release, so I'm not
sure if we'll be able to get this into 1.9. Since it's a regression,
we'll try to get the fix in.

Thanks,
Thomas



Timothy Parez wrote:
> Hi,
>
> We have Mono 1.2.9 with mod_mono and Apache2. Some pages use classes  
> from the System.Drawing namespace.
> This used to work (1.2.6), but stopped working at some point, even  
> after a clean upgrade to 1.9 (preview 1 2 and 3).
>
> Now we get the following exception:
>
> Server Error in '/' Application
> Generic Error [GDI+ status: GenericError]
>
> Description: HTTP 500. Error processing request.
>
> Stack Trace:
>
> System.Exception: Generic Error [GDI+ status: GenericError]
>at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0007c] in /
> usr/src/mono-1.9/mcs/class/System.Drawing/System.Drawing/
> gdipFunctions.cs:216
>at System.Drawing.Image.Save (System.String filename,  
> System.Drawing.Imaging.ImageCodecInfo encoder,  
> System.Drawing.Imaging.EncoderParameters encoderParams) [0x00043] in /
> usr/src/mono-1.9/mcs/class/System.Drawing/System.Drawing/Image.cs:457
>at System.Drawing.Image.Save (System.String filename,  
> System.Drawing.Imaging.ImageFormat format) [0x0004c] in /usr/src/
> mono-1.9/mcs/class/System.Drawing/System.Drawing/Image.cs:441
>at System.Drawing.Image.Save (System.String filename) [0x0] in /
> usr/src/mono-1.9/mcs/class/System.Drawing/System.Drawing/Image.cs:427
>at (wrapper remoting-invoke-with-check) System.Drawing.Image:Save  
> (string)
>at Arendee.ObjectBlog.GoogleImage.cacheThumbnails  
> (System.Collections.Generic.List`1 Images) [0x0012d] in /tmp/www-data-
> temp-aspnet-0/29dc6e76/App_Web_7948624_9.cs:268
>at Arendee.ObjectBlog.GoogleImage.Get (System.String GoogleId,  
> System.String Album) [0x004e6] in /tmp/www-data-temp-aspnet-0/29dc6e76/
> App_Web_7948624_9.cs:227
>at (wrapper managed-to-native)  
> System.Reflection.MonoMethod:InternalInvoke (object,object[])
>at System.Reflection.MonoMethod.Invoke (System.Object obj,  
> BindingFlags invokeAttr, System.Reflection.Binder binder,  
> System.Object[] parameters, System.Globalization.CultureInfo culture)  
> [0x00055] in /usr/src/mono-1.9/mcs/class/corlib/System.Reflection/
> MonoMethod.cs:149
>
> Version information: Mono Version: 2.0.50727.42; ASP.NET Version:  
> 2.0.50727.42
>
> What could be causing this?
> What other information can I give you to trace it down?
>
> Timothy.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


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


[Mono-list] Using the official ajax.net under mono?

2008-02-26 Thread Bálint Kardos
Hi list,

is there any known *technical* difficulties with using the out-of-box
MS version of the Ajax.net dlls?


-- 

üdvözlettel
with regards

Kardos Bálint
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Porting FreeTrain to Mono

2008-02-26 Thread Free Gamer
Wow!  Amazing!  I haven't tried it but that's so quick!

I've cc'd the patch to [EMAIL PROTECTED] but I
suggest you also join it for further discussion there since so the
rest of the dev team will also be able to see.

Thanks!

 - C


-- Forwarded message --
From: Atsushi Eno <[EMAIL PROTECTED]>
Date: Tue, Feb 26, 2008 at 6:39 AM
Subject: Re: [Mono-list] Porting FreeTrain to Mono
To: Free Gamer <[EMAIL PROTECTED]>
Cc: mono-list@lists.ximian.com


Hello,

 So I've created a patch to make it build with mono (from FreeTrain.sln,
 built with MonoDevelop). Though I
 could not get it run fine on mono due to some SDL_Image_Load()
 behavioral difference that returns null.

 [EMAIL PROTECTED]:/svn/FreeTrainSDL/bin/Debug> MONO_IOMAP=all mono
 --debug FreeTrainSDL.exe
 Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
 Parameter name: src
  at (wrapper managed-to-native)
 System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)
  at SDL.net.Surface..ctor (System.String filename) [0x00052] in
 /svn/FreeTrainSDL/lib/SDLGFX.net/Surface.cs:99
  at FreeTrainSDL.SDLGUI.initGUI (Int32 width, Int32 height, IntPtr pf)
 [0x00067] in /svn/FreeTrainSDL/SDLGUI.cs:61
  at FreeTrainSDL.FreeTrainSDL.Go () [0x0011b] in
 /svn/FreeTrainSDL/Program.cs:120
  at FreeTrainSDL.FreeTrainSDL.Main () [0x6] in
 /svn/FreeTrainSDL/Program.cs:79

 It would be nice if someone who is familiar with Tao/SDL could try it.

 Atsushi Eno
Index: plugins/jp.co.tripod.chiname.lib.generic/FreeTrain.ContribEx.csproj
===
--- plugins/jp.co.tripod.chiname.lib.generic/FreeTrain.ContribEx.csproj	(revision 200)
+++ plugins/jp.co.tripod.chiname.lib.generic/FreeTrain.ContribEx.csproj	(working copy)
@@ -76,14 +76,6 @@
 prompt
   
   
-
-  False
-  ..\..\lib\AxSHDocVw.dll
-
-
-  False
-  ..\..\lib\MsHtmlHost.dll
-
 
   System
 
Index: plugins/jp.co.tripod.chiname.lib.halfvoxel/FreeTrain.HalfVoxelStructure.csproj
===
--- plugins/jp.co.tripod.chiname.lib.halfvoxel/FreeTrain.HalfVoxelStructure.csproj	(revision 200)
+++ plugins/jp.co.tripod.chiname.lib.halfvoxel/FreeTrain.HalfVoxelStructure.csproj	(working copy)
@@ -76,14 +76,6 @@
 prompt
   
   
-
-  False
-  ..\..\lib\AxSHDocVw.dll
-
-
-  False
-  ..\..\lib\MsHtmlHost.dll
-
 
   System
 
Index: FreeTrainSDL.csproj
===
--- FreeTrainSDL.csproj	(revision 200)
+++ FreeTrainSDL.csproj	(working copy)
@@ -33,6 +33,11 @@
 DEBUG;TRACE
 prompt
 4
+WinExe
+FreeTrainSDL
+FreeTrainSDL
+false
+true
   
   
 pdbonly
@@ -42,17 +47,22 @@
 TRACE
 prompt
 4
+WinExe
+FreeTrainSDL
+true
+FreeTrainSDL
+false
+true
   
   
 
 
-
 
 
 
-
+
+  ..\..\usr\local\lib\mono\gac\Tao.Sdl\1.2.11.1__9c7a200e36c0094e\Tao.Sdl.dll
   False
-  bin\Debug\Tao.Sdl.dll
 
   
   
@@ -111,5 +121,7 @@
   
 copy /Y "$(SolutionDir)gui\*.*" "$(TargetDir)gui"
 xcopy /Y /E "$(SolutionDir)plugins\*.*" "$(TargetDir)plugins"
+{B43DC0F1-5C4B-490F-8171-C3754A02D605}
+FreeTrainSDL
   
 
\ No newline at end of file
Index: lib/Controls/FreeTrain.Controls.csproj
===
--- lib/Controls/FreeTrain.Controls.csproj	(revision 200)
+++ lib/Controls/FreeTrain.Controls.csproj	(working copy)
@@ -76,14 +76,6 @@
 prompt
   
   
-
-  False
-  ..\AxSHDocVw.dll
-
-
-  False
-  ..\MsHtmlHost.dll
-
 
   System
 
Index: lib/Controls/src/DocHostUIHandlerImpl.cs
===
--- lib/Controls/src/DocHostUIHandlerImpl.cs	(revision 200)
+++ lib/Controls/src/DocHostUIHandlerImpl.cs	(working copy)
@@ -1,3 +1,4 @@
+#if use_removed
 using System;
 using System.Runtime.InteropServices;
 using MsHtmlHost;
@@ -69,3 +70,4 @@
 }
 	}
 }
+#endif
Index: lib/Controls/src/WebBrowser.cs
===
--- lib/Controls/src/WebBrowser.cs	(revision 200)
+++ lib/Controls/src/WebBrowser.cs	(working copy)
@@ -1,30 +1,34 @@
 using System;
-using MsHtmlHost;
-using AxSHDocVw;
+//using MsHtmlHost;
+//using AxSHDocVw;
 
 namespace freetrain.controls
 {
 	/// 
 	/// WebBrowser control.
 	/// 
-	public class WebBrowser : AxWebBrowser
+	public class WebBrowser : System.Windows.Forms.WebBrowser // AxWebBrowser
 	{
 		public WebBrowser() {
 		}
 
 		public void navigate( string url ) {
+/*
 object flags = 0;
 object targetFrame = String.Empty;
 object postData = String.Empty;
 object headers = String.Empty;
 base.Navigate(url, ref flags, ref targetFrame, ref postDa

Re: [Mono-list] [Gtk-sharp-list] Need help in compilation

2008-02-26 Thread Mike Kestner

On Mon, 2008-02-25 at 16:25 +0800, Marc Glenn wrote:
> Hello folks,
> 
>  I installed the mono-1.2.5.1 installer for windows xp. It has
> gtk-sharp 2.10 and gnome 2.16 included.
>  
>  I also found PrintSample.cs in the samples directory. This
> PrintSample.cs uses the Gnome namespace to print.

You should use the Gtk printing capability.  Gnome.Print is deprecated
now and relies on libgnomeprintui which is probably not available for
win32.

There is a sample of how to use Gtk.Print in the GtkDemo application
located in gtk-sharp/samples.


-- 
Mike Kestner <[EMAIL PROTECTED]>

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


Re: [Mono-list] Porting FreeTrain to Mono

2008-02-26 Thread Free Gamer
On Sun, Feb 24, 2008 at 8:09 PM, Atsushi Eno <[EMAIL PROTECTED]> wrote:
> I agree that FreeTrain had been great, actually to me *the only*
>  valuable .NET application for years.
>
>  It is intreseting that FreeTrain was being ported to SDL land. Though it
>  wouldn't run on non-Windows platform
>  unless it drops COM dependency such as AxSHDocVw.dll and MSHtmlHost.dll.
>  I wonder if they can be
>  rewritten using WebBrowser control (it is still under heavy development
>  though).
>
>  DierctAudio dependency is also porting blocker, though I guess it could
>  be cut.

Thanks for the respons Atsushi.

The goal was to remove all Windows dependencies and fully port it but
unfortunately those who have worked on it lack the .NET skills and
necessary motivations to accomplish this task, hence why I'm asking
here.  It would be a great showcase for Mono, and a bit of a steal to
have FreeTrain to move to Mono from .NET.

 - C
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono on RH 9

2008-02-26 Thread Wade Berrier
I remember at some point we needed to drop support for running mod_mono
on redhat9.  I can't remember what the exact issue was, but it was
something to do with the version of apache that shipped on rh9.

Wade

On Thu, 2008-02-07 at 18:44 +1000, Bryan Buchanan wrote:
> Hi,
> 
> I've got a customer using RH 9 and I wanted to get mod_mono working.
> 
> I used the mono 1.2.1 installer (get same error with 1.2.4). Mono works
> fine. I've compiled Apache 2.2 from source and it too works fine, except
> that when it starts, mod_mono doesn't, probably because of this error:
> 
> /opt/mono-1.2.1/bin/mono: relocation error: /opt/mono-1.2.1/bin/mono:
> symbol epoll_create, version GLIBC_2.3.2 not defined in file libc.so.6
> with link time reference
> 
> Unfortunately, I cannot update the site to a newer version of Linux
> because the customer is using a DBMS product which they'd also need to
> upgrade.
> 
> I have mod_mono working fine on other sites using more recent Linux
> distros (eg. OpenSuse 10.2).
> 
> Thanks,
> 
> Bryan
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


signature.asc
Description: This is a digitally signed message part
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Mono 1.9 (1/2/3) Generic Error [GDI+ status: GenericError]

2008-02-26 Thread Timothy Parez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

We have Mono 1.2.9 with mod_mono and Apache2. Some pages use classes  
from the System.Drawing namespace.
This used to work (1.2.6), but stopped working at some point, even  
after a clean upgrade to 1.9 (preview 1 2 and 3).

Now we get the following exception:

Server Error in '/' Application
Generic Error [GDI+ status: GenericError]

Description: HTTP 500. Error processing request.

Stack Trace:

System.Exception: Generic Error [GDI+ status: GenericError]
   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0007c] in / 
usr/src/mono-1.9/mcs/class/System.Drawing/System.Drawing/ 
gdipFunctions.cs:216
   at System.Drawing.Image.Save (System.String filename,  
System.Drawing.Imaging.ImageCodecInfo encoder,  
System.Drawing.Imaging.EncoderParameters encoderParams) [0x00043] in / 
usr/src/mono-1.9/mcs/class/System.Drawing/System.Drawing/Image.cs:457
   at System.Drawing.Image.Save (System.String filename,  
System.Drawing.Imaging.ImageFormat format) [0x0004c] in /usr/src/ 
mono-1.9/mcs/class/System.Drawing/System.Drawing/Image.cs:441
   at System.Drawing.Image.Save (System.String filename) [0x0] in / 
usr/src/mono-1.9/mcs/class/System.Drawing/System.Drawing/Image.cs:427
   at (wrapper remoting-invoke-with-check) System.Drawing.Image:Save  
(string)
   at Arendee.ObjectBlog.GoogleImage.cacheThumbnails  
(System.Collections.Generic.List`1 Images) [0x0012d] in /tmp/www-data- 
temp-aspnet-0/29dc6e76/App_Web_7948624_9.cs:268
   at Arendee.ObjectBlog.GoogleImage.Get (System.String GoogleId,  
System.String Album) [0x004e6] in /tmp/www-data-temp-aspnet-0/29dc6e76/ 
App_Web_7948624_9.cs:227
   at (wrapper managed-to-native)  
System.Reflection.MonoMethod:InternalInvoke (object,object[])
   at System.Reflection.MonoMethod.Invoke (System.Object obj,  
BindingFlags invokeAttr, System.Reflection.Binder binder,  
System.Object[] parameters, System.Globalization.CultureInfo culture)  
[0x00055] in /usr/src/mono-1.9/mcs/class/corlib/System.Reflection/ 
MonoMethod.cs:149

Version information: Mono Version: 2.0.50727.42; ASP.NET Version:  
2.0.50727.42

What could be causing this?
What other information can I give you to trace it down?

Timothy.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHxAtF+j5y+etesF8RAoWyAKDJbVzQT4g91RZk/8TQWGiJoaMybgCfS9SF
DxhS4IandYrxf3PqyM+E6iQ=
=f9aR
-END PGP SIGNATURE-
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list