[Mono-dev] Status of HttpContext.AcceptWebSocketRequest ?

2013-06-25 Thread quandary
Question: I was playing around with a very simple example of a MVC4 web sockets echo chat application. I was surprised that almost everything web-socket is implemented. I got the runtime-error HttpApplication.GetType() not implemented, which I think is so easy I can fix it myself. But

Re: [Mono-dev] New GSoC projects

2013-02-25 Thread quandary
I don't know how good it is for a student project, but one of the things that have annoyed me quite a bit in the past is the lack of automatic indentation in MonoDevelop. If you copy-paste code from one place to another (e.g. stackoverflow post to your program), you have a horrible mess

Re: [Mono-dev] Bug in mono 3.0.1 MVC3 File/FileResult

2013-02-11 Thread quandary
Horray, used mono 3.0.3 stable, and use_chuncked = false; fixed it. Thanks ! ;) nginx defines this fastcgi parameter: fastcgi_paramGATEWAY_INTERFACECGI/1.1; So here a proper patch (tested - works, maybe add ordinalignorecase to startswith ?):

Re: [Mono-dev] Bug in mono 3.0.1 MVC3 File/FileResult

2013-02-11 Thread quandary
added patch On 02/11/2013 11:21 PM, Andres G. Aragoneses wrote: Looks about right. Do you mind posting a patch in the bug or propose a pull request? On 11/02/13 20:12, quandary wrote: Horray, used mono 3.0.3 stable, and use_chuncked = false; fixed it. Thanks ! ;) nginx defines

Re: [Mono-dev] Bug in mono 3.0.1 MVC3 File/FileResult

2013-02-03 Thread quandary
Yep, indeed that sounds like that. And I just tested. Added WriteFile.ashx and Transmit.ashx and testet with http://www.daniel-steiger.ch/WriteFile.ashx http://www.daniel-steiger.ch/Transmit.ashx and http://www.daniel-steiger.ch/WriteFile.ashx?myfile=avatar100.png

Re: [Mono-dev] Bug in mono 3.0.1 MVC3 File/FileResult

2013-02-03 Thread quandary
to a Remote File Inclusion http://en.wikipedia.org/wiki/Remote_file_inclusion vulnerability. On Sun, Feb 3, 2013 at 9:38 PM, quandary quandar...@hailmail.net mailto:quandar...@hailmail.net wrote: Yep, indeed that sounds like that. And I just tested. Added WriteFile.ashx

Re: [Mono-dev] Bug in mono 3.0.1 MVC3 File/FileResult

2013-02-03 Thread quandary
to prevent directory traversal. .NET request validation: http://msdn.microsoft.com/en-us/library/hh882339.aspx On Sun, Feb 3, 2013 at 10:34 PM, quandary quandar...@hailmail.net mailto:quandar...@hailmail.net wrote: Oh wonderful, it's called remote file inclusion. I suspected

[Mono-dev] xCopy deploy mono ?

2012-06-26 Thread quandary
Question: I am about to deploy a .NET 4 application on Windows. Since my application runs on Linux as well, I'm pretty sure it will run fine on the Windows version of mono. I'd like that users that don't have the .NET framework installed can use my application as well, even when they have no

[Mono-dev] How can I have mono FastCGI run ONE application for several virtual directories ?

2012-01-16 Thread quandary
Hi ! I have my ASP.NET MVC3 Razor WebApplication running on a Linux server with nginx via fastcgi-mono-server4. So far everything works fine. But I have a question: When I start up fastcgi-mono server, I need this fastcgi-mono-server4 /applications=www.domain1.xyz:/:/var/www/www.domain1.xyz/

[Mono-dev] Show-stopper bug in libodbc.cs

2012-01-16 Thread quandary
Hi, I've ripped System.Data.Odbc out of mcs/class, to hold an extended little debug-session last Sunday. Overall, the good message is, that so far, it seems to be working perfectly with Sybase, which is strange, but all I need at the moment. I was also reattempting to read some tables in

[Mono-dev] Bug in mono 2.6.1 SessionSQLServerHandler.cs

2011-11-05 Thread quandary
Hi, I was just creating a custom database session handler. There were some examples on codeproject.com and MSDN, but they were all buggy (worked fine as long as timeout=1, but booom when timeout=480...) So after 3 hours of debugging, I was fed-up and took the mono SqlSessionHandler for

Re: [Mono-dev] Mono and medium trust

2011-09-03 Thread quandary
You could, but this is not how security evolves ;) xD I know. But for now, a quick and dirty hack is better than half a year of work. Looking at: mono/metadata/loader.c:mono_lookup_pinvoke_call I just wanted to say, that looking at the source file, this line hurt my eye: if (strstr

Re: [Mono-dev] Mono and medium trust

2011-09-03 Thread quandary
I disagree on the small size. My model names weren't that much larger, even though they had a path. Even on a small name like kernel32.dll it will compare 4 letters 8 times before finding a match. But i agree on not touching tested code ;) However, filing this as a bug... It honestly isn't one,

[Mono-dev] Mono and medium trust

2011-09-02 Thread Quandary
Is it possible to run a mono server (xsp4/mono-fastcgi-server4) as medium/low trust ? e.g. to disallow pinvoke (I want to create a mono web-hosting-service ) ? If not, are there any workarounds to achive something similar, e.g. Linux permissions/ SE Linux ?

Re: [Mono-dev] Debug mono ODBC ?

2011-08-08 Thread quandary
the lack of '\0'. But then again, that's not certain. On 08/08/2011 11:31 AM, Robert Jordan wrote: On 06.08.2011 12:43, quandary wrote: I assume I now have to write a C test program and see what goes wrong. I suppose odbc32.dll maps to unixodbc-dev: /usr/lib/libodbc.so Is that right

[Mono-dev] Debug mono ODBC ?

2011-08-06 Thread quandary
Hi, question: In short, I want to know how I can debug ODBC with mono. Because A) My code just freezes at (string) reader[BEZEICHNUNG]; and B) mono --debug myfile.exe shows no messages Since the available memory goes down for as long as the program runs, my guess is that (string)

Re: [Mono-dev] Debug mono ODBC ?

2011-08-06 Thread quandary
at Mono.Debugging.Soft.SoftDebuggerSession.OnNextLinem__9 (System.Object ) [0x0] in filename unknown:0 On 08/06/2011 11:00 AM, quandary wrote: Hi, question: In short, I want to know how I can debug ODBC with mono. Because A) My code just freezes at (string) reader[BEZEICHNUNG]; and B) mono --debug myfile.exe shows

Re: [Mono-dev] Mixed Mode Assemblies

2011-07-09 Thread Quandary
It's true that p/Invoke + InterOp services do not form a complete solution. However, creating a interface in managed code across platforms isn't very difficult. All you need to do is to pack a x86x64ARMPPC LinuxWindowsMac version of the native dll into the .NET dll's ressources, then stream the

Re: [Mono-dev] Mixed Mode Assemblies

2011-07-09 Thread Quandary
Approach 4 worked well for me so far. Declare delegates, then use an abstract class for dlopen/LoadLibrary, based on OS. Write once - use infinite times. The real question is: Do you have write access to a temporary directory, and can the webserver-process read from there ?... As to the large

Re: [Mono-dev] Mono's future

2011-07-06 Thread Quandary
be restricted to Spain mostly, or southern UE when possible. Greets. On Tue, Jul 5, 2011 at 10:49 PM, Quandary quandar...@hailmail.net mailto:quandar...@hailmail.net wrote: I plan on setting up a website on mono support. It will: - Collect paid support request and people able to do

Re: [Mono-dev] Mono's future

2011-07-05 Thread Quandary
I plan on setting up a website on mono support. It will: - Collect paid support request and people able to do paid support (rent-a-coder style) - Collect bug reports (and bounties anybody sets out to get a specific bug fixed) - Provide a list of people searching and offering

Re: [Mono-dev] Mono and ole32.dll

2011-06-09 Thread Quandary
What exactly are you trying to accomplish ? What's that COM-dll supposed to do ? Is it really irreplacable ? In my experience, it was never necessary, except to accomplish windows specific things, such as switching off the windows firewall, in which case a simple if(!Environment.OSVersion.Platform

Re: [Mono-dev] Mono and ole32.dll

2011-06-09 Thread Quandary
, nekresh wrote: On Thu, Jun 9, 2011 at 8:33 PM, Cosmin Ciuraru cosmin.ciur...@gmail.com wrote: Thank you for your answer, Quandary. I try to use the Acrobat SDK in order to fill in a pdf and digitally sign it. In order to do that, I use the Javascript part of the SDK and the JSObject can be used

[Mono-dev] Convert.ToBase64String yields different result than on windows...

2011-06-05 Thread Quandary
string is different for the same image... Very strange. I have not yet tested whether the string created on Linux will work on Windows, but I suppose so. On 06/04/2011 08:19 PM, Quandary wrote: Hi, Question on the below code (with mono 2.10.2): I'm converting an image to base64 string

Re: [Mono-dev] [MonoDevelop] Banshee: TypeLoadException due to mono 2.10 ?

2011-05-31 Thread Quandary
Is there anyone left to fix the bugs if I file them ? But yes, you're right, I just checked. If I start it like this: /usr/lib/banshee-1# ./Banshee.exe then it works When I start it like this: /usr/lib/banshee-1# mono Banshee.exe or like this /usr/lib/banshee-1# mono Banshee.exe then I get

Re: [Mono-dev] ASP.NET MVC 3 with Razor on Mono 2.10.1 ?

2011-05-18 Thread Quandary
System.Web.WebPages.Deployment.dll System.Web.Razor.dll Cheers, Tomasz Kubacki Dnia 2011-05-02, pon o godzinie 07:19 +0200, Quandary pisze: Nope, doesn't go away. Besides, I don't use Entity, it was just referenced by a JQuery example I integrated (with removing everything Entity). On 05/01/2011 08:56 PM

Re: [Mono-dev] ASP.NET MVC 3 with Razor on Mono 2.10.1 ?

2011-05-01 Thread Quandary
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0] in filename unknown:0 On 05/01/2011 01:09 AM, Robert Jordan wrote: On 30.04.2011 23:08, Quandary wrote: Hi, I'm trying to get ASP.NET MVC3 with Razor to run

Re: [Mono-dev] ASP.NET MVC 3 with Razor on Mono 2.10.1 ?

2011-05-01 Thread Quandary
Nope, doesn't go away. Besides, I don't use Entity, it was just referenced by a JQuery example I integrated (with removing everything Entity). On 05/01/2011 08:56 PM, Marek Habersack wrote: On Sun, 01 May 2011 18:52:21 +0200 Quandary quandar...@hailmail.net wrote: Hey, Thanks Robert

[Mono-dev] ASP.NET MVC 3 with Razor on Mono 2.10.1 ?

2011-04-30 Thread Quandary
Hi, I'm trying to get ASP.NET MVC3 with Razor to run on Linux. I localcopied all necessary dll's ( System.Web.Helpers.dll System.Web.Mvc.dll System.Web.Razor.dll System.Web.WebPages.dll ) and referenced them in the mono project. I recompiled (recompilation went fine) but the page execution ends

Re: [Mono-dev] Mono.Data.SybaseClient

2011-04-21 Thread Quandary
Hi, Probably it was removed because it doesn't work with ASE 15.5, which is the current version. I tried it, and it just didn't work. If you find a driver that works, let me know. I wanted to try how compatible Sybase is with MS-SQL, since they have a common ancestor. Couldn't get Sybase to

Re: [Mono-dev] Mono 2.8 (trunk) compiling on Mac OS X 10.6 (SL)

2011-04-17 Thread Quandary
Hi, Did you run ./configure ? ./configure make make install And why are you using the trunk to compile mono 2.8 ? Mono 2.10 is release-stable by now. See: http://ubuntuforums.org/showthread.php?t=1591370 Kind regards Stefan On 04/17/2011 04:42 AM, nmccready wrote: nmccready$ make make:

Re: [Mono-dev] compile mono on windows

2011-04-17 Thread Quandary
Hi, From my experience, MinGW is usually faster. But it probably depends on the version of gcc they both use. However, speed is not the main issue. The main difference is, MinGW links against the native Windows libc runtime (crtdll.dll), while Cygwin links against the Cygwin libc (cygwin1.dll).

Re: [Mono-dev] gtksourceview: compilation error and strange runtime behaviour/errors

2011-04-17 Thread Quandary
another broken sample that brakes compilation, just as with mono-getoptions. On 04/17/2011 10:31 AM, Quandary wrote: Hi, I'm now trying to get SQL Syntax highlighting to work with GTK. And I already had 2 problems just getting the gtksourceview sample to work... Problem 1 (file: gtksourceview

[Mono-dev] Application throws exception when run from command-line, but not when run from MonoDevelop...

2011-04-17 Thread Quandary
Hi, I'm working on getting the ICSharpCode.TextEditor running on Linux for highlighting SQL. Basically, the main stuff is from here: http://www.codeproject.com/Articles/111969/Extending-ICSharpCode-TextEditor-Syntax-Highlighti.asp I downloaded ICSharpCode.TextEditor sources and fixed the system

Re: [Mono-dev] Bug in System.Windows.Forms.WebBrowser

2011-04-10 Thread Quandary
Bug filed in 2008... just how many decades can it take... On 04/09/2011 09:07 PM, Robert Jordan wrote: On 09.04.2011 20:42, Quandary wrote: Oh, and I still forgot: The cursor is not visible, and it doesn't become visible when one clicks on the edit area... That's also a bug. And a quite

[Mono-dev] .exe.config supportedRuntime bug

2011-04-10 Thread Quandary
MonoDevelop (2.6 Beta) seems to generate executables with this .exe.config: startupsupportedRuntime version=v4.0 sku=.NETFramework,Version=v4.0//startup/configuration When I let this run, the system complains about v4 not available (I've compiled 2.10.1 from sources), and switches to v1, which

Re: [Mono-dev] Bug in System.Windows.Forms.WebBrowser

2011-04-09 Thread Quandary
Oh, and I still forgot: The cursor is not visible, and it doesn't become visible when one clicks on the edit area... That's also a bug. And a quite terminal one I might add. For a syntax-highlighting control where you should be able to edit text at least. Because you should see where the cursor

[Mono-dev] Banshee: TypeLoadException due to mono 2.10 ?

2011-03-31 Thread Quandary
Question: Is the below courtesy of mono 2.10.x ? Or is it just DBus bitching about UID = 0 in secrecy ? First, banshee complained about missing Banshee.Services.dll. Then I added /usr/lib/banshee-1 into /etc/ld.so.conf.d/banshee.conf. and did /sbin/ldconfig Now I get this: Unhandled

Re: [Mono-dev] Mono 2.8 gnome-sharp not compiling...

2011-03-28 Thread Quandary
I'll second that motion. It's annyoing, and breakes all automated compile install scripts. Am 28.03.2011 00:54, schrieb danger89: Wow thanks! Please people fix this in the official download/git/svn/... -- View this message in context:

Re: [Mono-dev] Howto Marshal IntPtr to Elf32_Phdr[] ?

2011-03-28 Thread Quandary
So what you're saying is that System.Runtime.InteropServices.UnmanagedType.LPStructArray is inexistant, so there can be no [MarshalAs(UnmanagedType.LPStructArray)] Basically, one could add a property at the end and rename the IntPtr variable ? Or would that shift the offsets ? In which case

[Mono-dev] Howto Marshal IntPtr to Elf32_Phdr[] ?

2011-03-27 Thread Quandary
Hi everyone, I have a problem with dl_iterate_phdr. (man 3 dl_iterate_phdr) You find the (till now unanswered) question on stackoverflow, I'm not inclined to retype everything here again, so below the link: http://stackoverflow.com/questions/5447282/c-howto-marshal-intptr-to-an-array-of-struct

Re: [Mono-dev] Howto Marshal IntPtr to Elf32_Phdr[] ?

2011-03-27 Thread Quandary
attribute: [StructLayout(LayoutKind.Sequential)] Hope this helps! -- Tom On 27 March 2011 16:43, Quandary quandar...@hailmail.net wrote: Hi everyone, I have a problem with dl_iterate_phdr. (man 3 dl_iterate_phdr) You find the (till now unanswered) question on stackoverflow, I'm not inclined

[Mono-dev] WebBrowser Thumbnail

2011-03-26 Thread Quandary
Hi, Question: Why does the below code (to take a thumbnail of a website) hang forever at: while (wb.ReadyState != WebBrowserReadyState.Complete) { Application.DoEvents(); } ? It works with .NET on Windows. And furthermore, is it possible to take a WebSite Thumbnail with webkit-sharp ? I

[Mono-dev] Setting XSetErrorHandler in Cs ?

2011-03-23 Thread Quandary
Question: I started porting XSendEvent of KeyboardKeys from C to C#. I have only one minor question: Consider the below method ResizeWindow: How can I set XSetErrorHandler to a managed code (C#) function ? Delegate ? // gcc -o xwinspy xwinspy.c -L/usr/X11R6/lib -lX11 // ERROR HANDLER, GENERIC

Re: [Mono-dev] Setting XSetErrorHandler in Cs ?

2011-03-23 Thread Quandary
Thanks, wow that was fast. I'll take not throwing Exceptions into consideration. Wonder what happens, can't wait to try it out. Stefan Am 23.03.2011 13:34, schrieb Oskar Berggren: You need to define delegate that matches the signature of the callback, and pass this down from managed code. The

Re: [Mono-dev] linux Serial Port

2011-03-22 Thread Quandary
If it's really a Permission denied exception, then it looks to me like you might need root rights. Thats a standard requirement on raw ports anyway. Am 13.03.2011 23:31, schrieb Mrhyde88: Hi guys im just starting with Mono on linux, and im having problems getting the serial port to work,

Re: [Mono-dev] AppActivate and System.Windows.Forms.SendKeys on Ubuntu 10.10

2011-03-16 Thread Quandary
What, only SendKeys to WinForms, are you serious ? That doesn't make much sense. The SendKeys function is just a static method that resides in System.Windows.Forms, and has nothing to do with WinForms otherwise. It sends KeyEvents to the Windowing system, which happens to be the WinAPI on

Re: [Mono-dev] Unable to build neither Mono 2.10.1 nor 2.10

2011-03-12 Thread Quandary
Visit my tutorial http://ubuntuforums.org/showthread.php?t=1591370 Worked fine for me, just one hour ago I installed 2.10.1 on the server after I test-installed it on my destkop a week or two ago. Never had much problems with the stable sources, except that annoying thing with

[Mono-dev] Bug in Screen.GetBounds and missing ld-config file after mono 2.10.1 installation from source

2011-03-06 Thread Quandary
Hi, I'm writing a fully managed remote-desktop clone. I encountered a problem: I wanted to take a screenshot in managed code, as described here: http://jalpesh.blogspot.com/2007/06/how-to-take-screenshot-in-c.html (first comment for proper code) Which gets me this on mono 2.6.7 and 2.10.1

Re: [Mono-dev] Bug in Screen.GetBounds and missing ld-config file after mono 2.10.1 installation from source

2011-03-06 Thread Quandary
One additional bug: If in SetFormDesign (called in Form1.Form1_Load) I set this.ShowInTaskbar = false; private void SetFormDesign() { //this.Opacity = 50; this.FormBorderStyle = FormBorderStyle.None; this.ShowIcon = false; this.Text

[Mono-dev] License: LINQ for .NET 2.0

2011-03-03 Thread Quandary
Question: I was working over midday on getting LINQ and Linq.Dynamic to work on .NET Framework 2.0. It took me about one hour, now it's working (at least on my example), and it's using the required source libraries from mono. Now I was thinking on uploading the result to GoogleCode/CodePlex,

Re: [Mono-dev] creating excel files

2011-02-28 Thread Quandary
I can affirm this, EPPlus works on the .NET framework doing just this. But Windows might just not dispose the stream immediately, or reset it to NULL or read-protect the memory. So, if it's not a bug in mono, and - since it works on Windows - that would mean it's a bug in the .NET

Re: [Mono-dev] creating excel files

2011-02-21 Thread Quandary
mono 2.10 works fine on ubuntu See my thread here on how to compile it yourselfs (just replace 2.8 with 2.10): http://ubuntuforums.org/showthread.php?t=1591370 It takes about 30 minutes to 1 hour on a moderately modern computer. An ideal in-between supper task. I also tried EPPLUS on Linux

Re: [Mono-dev] Mono contractors?

2011-02-15 Thread Quandary
I have been busy 'cloning' something RAC-like with ASP.NET MVC / JQuery and nHibernate. However, it's not quite finished yet. Adding it to github would just be a licensing question, as the final result would be worth several weeks/months of work. OpenSource if fine for me, I'm just not too much

Re: [Mono-dev] Mono contractors?

2011-02-14 Thread Quandary
What exactly do you need fixed ? If you're searching for an ultra-cheap, ultra-UNreliable solution for outsourcing an ultra-work-insentive fix, go to www.rentacoder.com Else, I'd be interested, but since I'm otherwise employed, my time is very limited. And what distro would you need it for

[Mono-dev] webkit-sharp on Windows

2011-02-14 Thread Quandary
Hi, I've made a little browser window according to this one: http://huseyincakir.wordpress.com/2010/01/22/mono-webbrowser-with-webkit-gtk-not-winforms/ Furthermore, I got GTK# and Glade applications working on Windows. My understanding is that I could also use the very same webkit-sharp.dll on

Re: [Mono-dev] 2.10~rc1 and dropped architectures

2011-02-07 Thread Quandary
Try to compile the stable sources first: http://ubuntuforums.org/showthread.php?t=1591370 On 02/07/2011 12:19 PM, Anton Andreev wrote: Hi, I could not compile it with the instructions here: http://www.mono-project.com/Compiling_Mono_From_Git I entered this command: git clone

[Mono-dev] Mono Sybase client

2010-11-16 Thread Quandary
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does mono 2.4 or 2.6 on Linux really work with Sybase ASE (I use 15.5)? I just tested with the below code, and I am not able to establish a connection to my ASE 15.5 database. Connection refused. Since sa had a blank password, I thought it might be

[Mono-dev] Bug: Console output redirection doesn't work in mono

2010-11-07 Thread Quandary
For reproduction example program, see my C# post here: http://stackoverflow.com/questions/4107683/controling-cmd-exe-from-winforms/4118494#4118494 Note that I have replaced cmd.exe with /usr/bin/gnome-terminal and /usr/bin/bash but it doesn't work as in windows. Bash throws an unhandled

Re: [Mono-dev] MONO and Entity

2010-10-23 Thread Quandary
Maybe you should add this statement to: http://www.mono-project.com/EntityFramework After reading that page I had the impression we were to have it in about 1 to 2 years from now. Fortunately I smelled something fishy about a Microsoft-made ORM wrapper and used nHibernate instead. I

[Mono-dev] Mono 2.8 gnome-sharp not compiling...

2010-10-09 Thread Quandary
Question: When compiling mono 2.8 et al on Ubuntu 10.04 from the stable tarballs, i get this: error CS0006: cannot find metadata file `Mono.GetOptions.dll' Compilation failed: 1 error(s), 0 warnings The error seems to be in: /root/sources/mono-2.8/download/gnome-sharp-2.24.1/sample/gnomevfs

Re: [Mono-dev] Mono 2.8 gnome-sharp not compiling...

2010-10-09 Thread Quandary
, since this is a sample, you can just remove it from the Makefile. In the meantime, we should get the sample rewritten to use the new Mono.Options. On Sat, Oct 9, 2010 at 6:23 AM, Quandary quandar...@hailmail.net mailto:quandar...@hailmail.net wrote: Question: When compiling mono 2.8 et