[Mono-dev] unsafe C# code not working under mono

2005-11-25 Thread Marek Habersack
Hello everybody, I've been recently implementing CAPTCHA for a customer and I had come across the article @codeproject (http://www.codeproject.com/aspnet/WSCaptcha.asp) which implements quite a nice version of it. Since I didn't want a service but just a simple HttpHandler module, I wrote one

[Mono-dev] windows shares

2005-11-25 Thread Anton Andreev
Hi, How does Mono handles the following on Linux? name=@\\store\work.zip; fs_in=new FileStream(name,FileMode.Open,FileAccess.Read,FileShare.Read); What about the slashes? Would Mono access the file though Windows style is used to access shared files? I do not want to mount as this involves

[Mono-dev] Re: xsd for char and guid types

2005-11-25 Thread Lluis Sanchez
The patch looks right. Please commit. Thanks! Lluis. El jue, 24-11-2005 a las 06:57 -0800, Konstantin Triger escribió: Hello Lluis, Currently we export the char and guid .Net types as primitives defined in http://www.w3.org/2001/XMLSchema, but they are not. This produces incorrect

Re: [Mono-dev] windows shares

2005-11-25 Thread Dick Porter
On Fri, 2005-11-25 at 12:40 +0200, Anton Andreev wrote: How does Mono handles the following on Linux? name=@\\store\work.zip; fs_in=new FileStream(name,FileMode.Open,FileAccess.Read,FileShare.Read); mono will try to open the file /store/work.zip We do not link mono with samba, and have no

[Mono-dev] Client Ip Adress with Remoting?

2005-11-25 Thread Hubert FONGARNAND
Is there a way (for a mono remoting) to get the Ip adress of the client who's connected to? I need to know this IP adress in order to log access to the remoting server Thanks _ _v_ Hubert FONGARNAND /(_)\ Fiducial ^ ^ Service Intranet-Internet

RE: [Mono-dev] Client Ip Adress with Remoting?

2005-11-25 Thread Sébastien Robitaille
I had the same problem a few months ago. The only way I was able to do that is by implementing a Custom Channel Sink. This solution gives you access to the transport headers that contain the IP address: CommonTransportKeys.IPAddress If you find an easier solution, please let me know. Sébas

[Mono-dev] Retargetable issues

2005-11-25 Thread amoreno
Hi all, I'm trying to port a .NET application programmed with Visual Studio to MONO. The main problem I have found is that this application was created for Compaq Framework and it does run on a Windows Platform but just because of the MIL's retargetable switch that Microsoft uses to reference

[Mono-dev] Saving And Loading Assemblies To/From Memory

2005-11-25 Thread Jim Purbrick
Hi, I'm currently using Assembly.Load(Byte[]) to load assemblies and wondered if there was a way to save assemblies back to byte arrays either using the framework or embedding APIs? Saving and loading assemblies to and from memory in this way would be much easier for me than having to use files

Re: [Mono-dev] Retargetable issues

2005-11-25 Thread Jose Cornado
Alberto: This switch refers to the capability of assembly A of running in .Net Desktop and .Net Compact frameworks. This has implications at the corlib and runtime levels. As far as I know mono does not target the Compact Framework (CF) therefore the retargetable flag does not work Since CF is

[Mono-dev] Porting app that uses Microsoft.Web.Services2 to Mono

2005-11-25 Thread Geoffrey Gowan
Hi, I'm in the process of trying to port an application that uses Microsoft.Web.Services2.dll over to run on linux using Mono. Does anybody know what would be required to do this? I have already tried just copying the Microsoft.Web.Services2.dll file over to linux but I'm getting a

[Mono-dev] ASP.NET Code Generation

2005-11-25 Thread benjamin van der veen
Hello, For quite a while now I've been trying to find the source code for the part of the ASP.NET implementation that parses .aspx and codebehind files and custom generates the ASPX_* classes. I'm rather new to this whole thing and the svn is a bit overwhelming if you don't know where to start.

Re: [Mono-dev] Retargetable issues

2005-11-25 Thread amoreno
Alberto: This switch refers to the capability of assembly A of running in .Net Desktop and .Net Compact frameworks. This has implications at the corlib and runtime levels. As far as I know mono does not target the Compact Framework (CF) therefore the retargetable flag does not work

[Mono-dev] Mono/gtk# installer

2005-11-25 Thread Daniel Morgan
Is there a reason when I run a gtk# application I build with Mono, I do not get any exceptions nor Console.Error.WriteLines? This is with the Mono 1.1.10 Windows Installer using gtk# 2.4. If I write a console app, I do get the Exceptions and WriteLines.

[Mono-dev] patch to add FontOptions to Mono.Cairo

2005-11-25 Thread John Luke
Hello all, Here is a patch to add FontOptions to Mono.Cairo, and also cleans up some other font stuff a little bit by removing some old/duplicated stuff. Is it ok to commit? I'll update the docs should this be approved. Also, an example using the new api is attached. Index:

Re: [Mono-dev] patch to add FontOptions to Mono.Cairo

2005-11-25 Thread Miguel de Icaza
Hello, Here is a patch to add FontOptions to Mono.Cairo, and also cleans up some other font stuff a little bit by removing some old/duplicated stuff. Is it ok to commit? This looks great. Please commit. I'll update the docs should this be approved. Nice touch ;-) Also, an example using

Re: [Mono-dev] ASP.NET Code Generation

2005-11-25 Thread Gonzalo Paniagua Javier
On Fri, 2005-11-25 at 10:02 -0800, benjamin van der veen wrote: Hello, For quite a while now I've been trying to find the source code for the part of the ASP.NET implementation that parses .aspx and codebehind files and custom generates the ASPX_* classes. I'm rather new to this whole thing

RE: [Mono-dev] Enum serealization proble inSystem.Xml.Serialization.XmlMapping

2005-11-25 Thread Miguel de Icaza
Hello, At the first look, serializer generator seems to be ok, it process differently the flags and non-flags enums, lines 516-536 in System.Xml.Serialization\SerializationCodeGenerator.cs. But, unfortunately, I don't have a running mono environment to check it out. I'm committing the

Re: [Mono-list] pkg-config install fail in Solaris

2005-11-25 Thread Enrique Garcia Ayuda
Hi the stpes i made are: I install Pkg-config, I try to install glic So i install libiconv and gettext but when i try to make glib i get the iconv error in the Make test i read: Note that if you have libiconv installed in your default include search path (for instance, in /usr/local/), but

Re: [Mono-list] ODBC problem on Windows 2k\mono-1.1.10\Apache

2005-11-25 Thread T Senganal
Hi this seems to be an issue with the installer .. The entry dllmap dll=odbc32.dll target =libodbc.so in (mono-base-dir)\etc\mono\config file is causing the odbc32.dll to be mapped to libodbc.so.. Remove the entry and things shud work allright .. cheers senga Alex Prudkiy [EMAIL

Re[2]: [Mono-list] ODBC problem on Windows 2k\mono-1.1.10\Apache

2005-11-25 Thread Alex Prudkiy
Hi, Thanks. The first error is away. but raised new. Look like odbc on windows with mono anyway don't worked. When I invoke select * from sometable I receive System.NullReferenceException: Object reference not set to an instance of an object in 0x000a6

Re: [Mono-list] ASP.NET 2.0, apache2 and mod-mono-server2.exe

2005-11-25 Thread Gonzalo Paniagua Javier
On Wed, 2005-11-23 at 23:10 +0100, Fredrik Elestedt wrote: and finally the error log: Unhandled Exception: System.Web.Compilation.ParseException: Unknown attribute: Master in 0x0003c System.Web.UI.BaseParser:ThrowParseException (System.String message) Make sure that mod-mono-server2.exe is

Re: [Mono-list] mod_mono showing Service Temporarily Unavailable

2005-11-25 Thread Gonzalo Paniagua Javier
On Fri, 2005-11-25 at 01:32 +0800, feelite wrote: Unhandled Exception: System.ArgumentException: Should be something like [[hostname:]port:]VPath:realpath in 0x002e8 Mono.WebServer.ApplicationServer:AddApplicationsFromCommandLine (System.String applications) in (wrapper

Re: [Mono-list] ASP.NET 2.0, apache2 and mod-mono-server2.exe

2005-11-25 Thread Christopher Bergström
On Wed, 2005-11-23 at 23:10 +0100, Fredrik Elestedt wrote: and finally the error log: Unhandled Exception: System.Web.Compilation.ParseException: Unknown attribute: Master in 0x0003c System.Web.UI.BaseParser:ThrowParseException (System.String message) Make sure that

[Mono-list] Running mod-mono-server in a chroot jail

2005-11-25 Thread Jesse Pasichnyk
Im working on getting all of my asp.net sites running under separate standalone instances of mod-mono-server running as the owner of each site. All my site users are however locked into their own chroot environment. Im trying to start up each mod-mono-server instance as follows: su -