[Mono-list] Mono.WebServer.XSPWorker:Read problem
Hi, We run webservices under XSP, Debian sarge. We use the latest version of Debian Sarge, Linux 2.4.27-2-386, xsp-1.1.9, mono-1.1.9, mono and xsp, installed from source code. We have the following problem: We run the XSP with "echo web service, mono --trace=xsp" command. In case of the data size (size of the complete SOAP message) larger than 1024 byte, we got an exception of the XSP: ENTER: Mono.WebServer.XSPWorkerRequest:ReadEntityBody (byte[],int)(this:0x8206600[Mono.WebServer.XSPWorkerRequest ASPHOST_619ad3e8], 0x85ad000, 3308, ) . ENTER: Mono.WebServer.XSPWorkerRequest:ReadInput (byte[],int,int)(this:0x8206600[Mono.WebServer.XSPWorkerRequest ASPHOST_619ad3e8], 0x85ad000, 0, 3308, ) . . ENTER: (wrapper remoting-invoke-with-check) Mono.WebServer.BaseRequestBroker:Read (int,int,byte[]&)(this:0x820ec18[System.Runtime.Remoting.Proxies.TransparentProxy ASPHOST_619ad3e8], 1062340992, 3308, [BYREF:0xbedfef64], ) . . . ENTER: (wrapper xdomain-invoke) Mono.WebServer.BaseRequestBroker:Read (int,int,byte[]&)(this:0x820ec18[System.Runtime.Remoting.Proxies.TransparentProxy ASPHOST_619ad3e8], 1062340992, 3308, [BYREF:0xbedfef64], ) . . . . ENTER: (wrapper xdomain-dispatch) Mono.WebServer.BaseRequestBroker:Read (object,byte[]&,byte[]&,int,int,byte[]&)([System.Runtime.Remoting.Proxies.RemotingProxy:0x831bd58], [BYREF:0xbedfeeec], [BYREF:0xbedfeef4], 1062340992, 3308, [BYREF:0xbedfeed4], ) . . . . . ENTER: (wrapper remoting-invoke-with-check) Mono.WebServer.BaseRequestBroker:Read (int,int,byte[]&)(this:0x84641b0[Mono.WebServer.XSPRequestBroker xsp.exe], 1062340992, 3308, [BYREF:0xbedfeed4], ) . . . . . . ENTER: Mono.WebServer.BaseRequestBroker:Read (int,int,byte[]&)(this:0x84641b0[Mono.WebServer.XSPRequestBroker xsp.exe], 1062340992, 3308, [BYREF:0xbedfeed4], ) . . . . . . . . ENTER: Mono.WebServer.XSPWorker:Read (byte[],int,int)(this:0x8267030[Mono.WebServer.XSPWorker xsp.exe], 0x85ae000, 0, 3308, ) EXCEPTION handling: SocketException EXCEPTION handling: IOException EXCEPTION: catch found at clause 0 of Mono.WebServer.XSPWorker:Read (byte[],int,int) EXCEPTION handling: IOException EXCEPTION: catch found at clause 0 of (wrapper xdomain-dispatch) Mono.WebServer.BaseRequestBroker:Read (object,byte[]&,byte[]&,int,int,byte[]&) . . . . . . . . . . . . . . . . . . . LEAVE: (wrapper xdomain-dispatch) Mono.WebServer.BaseRequestBroker:Read (object,byte[]&,byte[]&,int,int,byte[]&)result=3 EXCEPTION handling: IOException ... The error logged with log4 is the following: 2005-09-20 14:32:10,273 [98311] ERROR xsp [(null)] - Error. System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: Operation on non-blocking socket would block in <0x0006d> System.Net.Sockets.Socket:Receive_nochecks (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags) in <0x00053> System.Net.Sockets.Socket:Receive (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags) in <0x00075> System.Net.Sockets.NetworkStream:Read (System.Byte[] buffer, Int32 offset, Int32 size)--- End of inner exception stack trace --- in <0x000c3> System.Net.Sockets.NetworkStream:Read (System.Byte[] buffer, Int32 offset, Int32 size) in <0x0001d> Mono.WebServer.XSPWorker:Read (System.Byte[] buffer, Int32 position, Int32 size) Aside from the error mentioned above, we had no error with XSP at all! It runs perfectly, if we run the same xsp assembly and echo webservice under Win with .Net framework. If you have any idea, please give us a hint, because we need to solve the problem urgently. Thank you in anticipation! Rusky ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
SV: [Mono-list] PKCS#12 example
I did something similar to this: PKCS12 p12 = new PKCS12 (); p12.Password = p12pwd; p12.AddCertificate (new X509Certificate (rawcert)); p12.AddPkcs8ShroudedKeyBag (subjectKey); p12.SaveToFile (p12file); However, the certificate does not get "associated" with the private key (subjectKey) that I add to the PKCS#12. The key and certificate do "belong" together (same public key). So whenever I try to install this PKCS#12, the certificate is put in the "Other people" category instead of "Personal" due to the "missing" private key. Any ideas what could be wrong? Thanks! Kim -Oprindelig meddelelse- Fra: Sebastien Pouliot [mailto:[EMAIL PROTECTED] Sendt: 20. september 2005 15:53 Til: Hellan.Kim KHE Cc: mono-list@lists.ximian.com Emne: Re: [Mono-list] PKCS#12 example Hello Kim, On Tue, 2005-20-09 at 14:13 +0200, Hellan.Kim KHE wrote: > I need to create the following simple PKCS#12: > > - Containing private key and certificate > > - Containing 1 additional certificate > > - With a "Friendly Name" specified > > - Password protected > > > > Does anyone have a small example for that, or can you direct to where > I can find examples for Mono cryptograpy? Mono's makecert tool supports creating PKCS#12 files. http://svn.myrealbox.com/source/trunk/mcs/tools/security/makecert.cs This should answers most of your questions - except for the friendly name. For this you'll need to look at the source code... http://svn.myrealbox.com/source/trunk/mcs/class/Mono.Security/Mono.Secur ity.X509/PKCS12.cs -- Sebastien Pouliot email: [EMAIL PROTECTED] blog: http://pages.infinit.net/ctech/ ___ www.kmd.dk www.kundenet.kmd.dk www.eboks.dk www.civitas.dk www.netborger.dk www.organisator.dk Hvis du har modtaget denne mail ved en fejl vil jeg gerne, at du informerer mig og sletter den. KMD skaber it-services, der fremmer effektivitet hos det offentlige, erhvervslivet og borgerne. If you received this e-mail by mistake, please notify me and delete it. Thank you. Our mission is to enhance the efficiency of the public sector and improve its service of the general public. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] NUnit support for generics?
> > [EMAIL PROTECTED] GetHostByNameNUnitTest]$ mcs -target:library > -out:GetHostByNameNUnitTest.dll -reference:nunit.framework Class1.cs Strange, I get t.cs(16,5): error CS0117: `System.Net.Dns' does not contain a definition for `GetHostEntry' and indeed there is no GetHostEntry in sources of System.Net > > Failures: > 1) GetHostByNameNUnitTest.Class1.TestDns : System.NullReferenceException > : Object reference not set to an instance of an object > in <0x0> > in (wrapper managed-to-native) System.Net.Dns:GetHostByName_internal > (string,string&,string[]&,string[]&) Did you try my patch and run test using nunit-console2? -- Kamil Skalski http://nazgul.omega.pl ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Error while installing mono
Dear Sir, We have Redhat Linux Advanced Server installed . Then i went for the installation of mono for .NET framework. For that i installed mono-1.1.9 from the source package. In that i installed the following dependencies: 1.Cairo 2. freetype 3.fontconfig 4.pkg-config 5.glib-2.8.3 While installing of mono i got the error [9] telling that: ar: /usr/local/Mono/Mono: No such file or directory make[4]: *** [libmonoos.la] Error 9 make[4]: Leaving directory `/usr/local/Mono/Mono 1.1/mono-1.1.9/mono/os' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/Mono/Mono 1.1/mono-1.1.9/mono/os' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/Mono/Mono 1.1/mono-1.1.9/mono' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/Mono/Mono 1.1/mono-1.1.9' make: *** [all] Error 2 and while installing libgdiplus i got an error telling that: ar: /usr/local/Mono/Mono: No such file or directory make[5]: *** [libpixman.la] Error 9 make[5]: Leaving directory `/usr/local/Mono/Mono 1.1/libgdiplus-1.1.9/cairo/pixman/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/local/Mono/Mono 1.1/libgdiplus-1.1.9/cairo/pixman' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/Mono/Mono 1.1/libgdiplus-1.1.9/cairo' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/Mono/Mono 1.1/libgdiplus-1.1.9/cairo' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/Mono/Mono 1.1/libgdiplus-1.1.9' make: *** [all] Error 2 Pls. solve my problem. i request you to get me a solution asap. Regards, Shravan. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] NUnit support for generics?
Ooops. I forgot that I added an implementation GetHostEntry to my local build. Just replace GetHostEntry with GetHostByName in my example and you will see the problem I'm talking about. --andy -Original Message- From: Kamil Skalski [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 10:15 AM To: Andy Waddell Cc: mono-list@lists.ximian.com Subject: Re: [Mono-list] NUnit support for generics? > > [EMAIL PROTECTED] GetHostByNameNUnitTest]$ mcs -target:library > -out:GetHostByNameNUnitTest.dll -reference:nunit.framework Class1.cs Strange, I get t.cs(16,5): error CS0117: `System.Net.Dns' does not contain a definition for `GetHostEntry' and indeed there is no GetHostEntry in sources of System.Net > > Failures: > 1) GetHostByNameNUnitTest.Class1.TestDns : System.NullReferenceException > : Object reference not set to an instance of an object > in <0x0> > in (wrapper managed-to-native) System.Net.Dns:GetHostByName_internal > (string,string&,string[]&,string[]&) Did you try my patch and run test using nunit-console2? -- Kamil Skalski http://nazgul.omega.pl ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] NUnit support for generics?
Then it works: [EMAIL PROTECTED] testsuite]$ /home/morgul/programs/local/bin/gmcs t.cs -r:/home/morgul/programs/local/lib/mono/1.0/nunit.framework.dll -r:System.dll -target:library -out:t.dll [EMAIL PROTECTED] testsuite]$ /home/morgul/programs/local/bin/nunit-console2 t.dll NUnit version 2.2.0 Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole. Copyright (C) 2000-2003 Philip Craig. All Rights Reserved. OS Version: Unix 2.6.11.6Mono Version: 2.0.50215.16 .Host name : mordor IP address : 127.0.0.1 You need my patch (in fact, you need 2.0 version of nunit-console.exe) in order to get it working. I am still thinking how to solve the symlinks problem, which is preventing this patch from being ok to commit. Maybe we could crete nunit2.pc, which would allow obtaining the patch to 1.0 nunit.*.dll (which are enough to make nunit-console2 work) 2005/9/21, Andy Waddell <[EMAIL PROTECTED]>: > Ooops. I forgot that I added an implementation GetHostEntry to my local > build. Just replace GetHostEntry with GetHostByName in my example and > you will see the problem I'm talking about. > > --andy > > -Original Message- > From: Kamil Skalski [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 21, 2005 10:15 AM > To: Andy Waddell > Cc: mono-list@lists.ximian.com > Subject: Re: [Mono-list] NUnit support for generics? > > > > > [EMAIL PROTECTED] GetHostByNameNUnitTest]$ mcs -target:library > > -out:GetHostByNameNUnitTest.dll -reference:nunit.framework Class1.cs > > Strange, I get > t.cs(16,5): error CS0117: `System.Net.Dns' does not contain a > definition for `GetHostEntry' > > and indeed there is no GetHostEntry in sources of System.Net > > > > > Failures: > > 1) GetHostByNameNUnitTest.Class1.TestDns : > System.NullReferenceException > > : Object reference not set to an instance of an object > > in <0x0> > > in (wrapper managed-to-native) System.Net.Dns:GetHostByName_internal > > (string,string&,string[]&,string[]&) > > Did you try my patch and run test using nunit-console2? > -- > Kamil Skalski > http://nazgul.omega.pl > -- Kamil Skalski http://nazgul.omega.pl ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] mono installer and nunit
hi everybody i'm new to mono and a bit confused about nunit. when i go to the nunit home page, they tell me that mono already packages nunit. however, if i install mono on my linux box, there is no nunit to be found. all i find is gnunit.exe and gnunit2.exe, which don't work without nunit. so i assume that mono doesn't package it anymore. but reading the instructions for a manual install of nunit are no help, because of the GAC stuff. they just tell me to register it using the gacutil. but HOW? what parameters? is there anybody able to help me? thanks very much in advance michael Sent from the Mono - General forum at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] NUnit support for generics?
Thanks. I finally got it working. I struggled with applying the patch against the latest tree, but eventually got it to work. Even then when I did a "make clean;make;make install" I didn't wind up with an nunit-console2 anywhere and I still had the config file laying lying around. My install path is /opt/latest. I edited the nunit-console script in /opt/latest/bin to point it to the 2.0 version, then removed /opt/latest/lib/mono/2.0/nunit-console.exe.config. cheers, andy -Original Message- From: Kamil Skalski [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 11:04 AM To: Andy Waddell Cc: mono-list@lists.ximian.com Subject: Re: [Mono-list] NUnit support for generics? Then it works: [EMAIL PROTECTED] testsuite]$ /home/morgul/programs/local/bin/gmcs t.cs -r:/home/morgul/programs/local/lib/mono/1.0/nunit.framework.dll -r:System.dll -target:library -out:t.dll [EMAIL PROTECTED] testsuite]$ /home/morgul/programs/local/bin/nunit-console2 t.dll NUnit version 2.2.0 Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole. Copyright (C) 2000-2003 Philip Craig. All Rights Reserved. OS Version: Unix 2.6.11.6Mono Version: 2.0.50215.16 .Host name : mordor IP address : 127.0.0.1 You need my patch (in fact, you need 2.0 version of nunit-console.exe) in order to get it working. I am still thinking how to solve the symlinks problem, which is preventing this patch from being ok to commit. Maybe we could crete nunit2.pc, which would allow obtaining the patch to 1.0 nunit.*.dll (which are enough to make nunit-console2 work) 2005/9/21, Andy Waddell <[EMAIL PROTECTED]>: > Ooops. I forgot that I added an implementation GetHostEntry to my local > build. Just replace GetHostEntry with GetHostByName in my example and > you will see the problem I'm talking about. > > --andy > > -Original Message- > From: Kamil Skalski [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 21, 2005 10:15 AM > To: Andy Waddell > Cc: mono-list@lists.ximian.com > Subject: Re: [Mono-list] NUnit support for generics? > > > > > [EMAIL PROTECTED] GetHostByNameNUnitTest]$ mcs -target:library > > -out:GetHostByNameNUnitTest.dll -reference:nunit.framework Class1.cs > > Strange, I get > t.cs(16,5): error CS0117: `System.Net.Dns' does not contain a > definition for `GetHostEntry' > > and indeed there is no GetHostEntry in sources of System.Net > > > > > Failures: > > 1) GetHostByNameNUnitTest.Class1.TestDns : > System.NullReferenceException > > : Object reference not set to an instance of an object > > in <0x0> > > in (wrapper managed-to-native) System.Net.Dns:GetHostByName_internal > > (string,string&,string[]&,string[]&) > > Did you try my patch and run test using nunit-console2? > -- > Kamil Skalski > http://nazgul.omega.pl > -- Kamil Skalski http://nazgul.omega.pl ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] mmap problem with mod_mono
Hi, I've just started trying to use mod mono and I have a problem with mmap http://galactus.ximian.com/pipermail/mono-list/2005-May/026828.html As such I've tried the same solutions that were advised, all with the same result. Here's my httpd.conf file entry -- Alias /test "/usr/lib/xsp/test" AddMonoApplications default "/test:/usr/lib/xsp/test" MonoWapiDir "/tmp" SetHandler mono Also, as in the linked thread, I've been able to run the test pages using xsp. The generated error in the apache error_log file is: --- ** (/usr/lib/xsp/1.0/mod-mono-server.exe:726): CRITICAL **: _wapi_shm_attach: mmap error: Permission denied ** ERROR **: file handles.c: line 125 (shared_init): assertion failed: (_wapi_shared_layout != NULL) aborting... --- has anyone figured out the cause of this error yet? Frankly it's driving me nuts and I cannot seem to make any progress on it. Thanks in advance, Ryan -- Cognitive Neuroscience of Thought Lab Department of Psychology 2136 West Mall Rm 3022/3020 Phone: (604)822-2849 Fax: (604)822-6923 Email: [EMAIL PROTECTED] ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list