RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent
+---BEGIN output xsp/mono/linux -- POST +/index.aspx HTTP/1.1 + +Host: 127.0.0.1:8080 + +User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) +Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1 + +Accept: +text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla +in;q=0.8,image/png,*/*;q=0.5 + +Accept-Language: en-us,en;q=0.5 + +Accept-Encoding: gzip,deflate + +Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 + +Keep-Alive: 300 + +Connection: keep-alive + +Referer: http://127.0.0.1:8080/index.aspx + +Cookie: ASPSESSION=C08469137C85BDA1013610C6951CB3 + +Content-Type: application/x-www-form-urlencoded + +Content-Length: 51 + + + +__EVENTTARGET=Button1__EVENTARGUMENT=__VIEWSTATE=HTTP/1.0 200 OK + +Server: Mono.WebServer/0.1.0.0 Unix + +Date: Tue, 24 Jan 2006 18:38:25 GMT + +Content-Length: 1061 + +Cache-Control: private + +Content-Type: text/html; charset=utf-8 + +Keep-Alive: timeout=15, max=97 + +Connection: Keep-Alive +---END output xsp/mono/linux -- Comparing this with my results: POST /c/WebForm1.aspx HTTP/1.1\r\n Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*\r\n Referer: http://192.168.1.200/c/WebForm1.aspx\r\n Accept-Language: hu\r\n Content-Type: application/x-www-form-urlencoded\r\n Accept-Encoding: gzip, deflate\r\n User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)\r\n Host: 192.168.1.200\r\n Content-Length: 51\r\n Connection: Keep-Alive\r\n Cache-Control: no-cache\r\n Cookie: ASPSESSION=5AF35BFB0FDA6F461DD15A3645864C\r\n \r\n HTTP/1.1 200 OK\r\n Date: Wed, 25 Jan 2006 08:01:08 GMT\r\n Server: Apache/2.0.50 (Linux/SUSE)\r\n Content-Length: 0\r\n Cache-Control: private\r\n Keep-Alive: timeout=15, max=99\r\n Connection: Keep-Alive\r\n Content-Type: text/html; charset=iso-8859-2\r\n \r\n It seems that something is bad at my side. Your Content-Length is as it is to be. But mine is allways 0. Hm... When I do this: private void Button1_ServerClick(object sender, System.EventArgs e) { Response.AddHeader(Content-Length, 1000); Response.SuppressContent = true; } Content-Length is still 0. Now it seems to me that it does not matter what content length I set programmatically Apache recalculates it or something like that. There is an other mysterious thing, when I do the following: private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here Response.AddHeader(Content-Length, 1000); } On IIS/.Net it is right (only a 1000 length response) but on Apache/Mono it gives me the following error in Apache's error_log: ** ERROR **: Invalid IL code at IL in MonoCharsetTest.WebForm1: OnInit (System.EventArgs): IL_: callvirt 0x0a10 aborting... Now I am goning to examine this Apache. (K) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gonzalo Paniagua Javier Sent: Wednesday, January 25, 2006 5:22 PM To: mono-devel-list@lists.ximian.com Subject: RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent Now the question is what does this Content-Length stuff? IIS or .Net? The answer for this one is easy: use xsp on windows to figure it out :-). XSP not sending the correct content-length is probably a bug on our side. Imagine this was a 'HEAD' request... -Gonzalo ___ 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] Mono for linux ARM
Hi, Yes, you can cross-compile Mono for ARM. It's not trivial though. I've cross-compiled Mono with traditional cross-compiler toolchains and with Scratchbox, of which Scratchbox has been easier for me. Here's brief description how I compile Mono with Scratchbox: 1. Install Scratchbox. I used version 1.0.2. 2. Build Mono-devkit for HOST target. Mono's build process first builds the mono runtime, and then uses that to run mcs to compile the class libraries. This is something you don't want to do, as the runtime is an ARM binary and therefore will be run on your ARM device or on ARM emulator. What you want to do is to run mcs on the host machine. This can be accomplished with Scratchbox's devkits. You can find more information about devkits on Scratchbox's website. So select HOST target on scratchbox, use the devkit template from http://www.bat.org/~tomba/sb-mono-devkit.tar.gz to compile mono devkit. 3. Edit runtime/mono-wrapper.in and runtime/monodis-wrapper.in to use Mono from your devkit. For example, I changed mono-wrapper.in's last line to: mono --config $r/runtime/wrapper-config $@ 4. Set up your ARM target. Select arm-compiler, debian and mono devkits, and qemu-arm for CPU-transparency. See Scratchbox documentation how to set up the target and install the files. Here's a short version: - Edit apt.sources (stable debian-arm works fine for me) - apt-get update - sb-install-base-packages - fakeroot apt-get install libgtk2.0-dev 5. Configure and compile Mono as you normally would. That's about it. I hope I didn't forget any steps =). Compiling gtk-sharp should also work. Tomi On Wed, 25 Jan 2006, Dave Cramer wrote: Apparently it can be cross compiled http://www.mono-project.com/Mono:ARM However I have tried and can't see my previous message earlier this week I'd love to get it cross-compiled anyone ? Dave On 24-Jan-06, at 12:16 PM, Dario Salvi wrote: Hi, does anyone know any project or anyone working on the development of MONO on linux for ARM architectures ? I need to install MONO on a Philips XSilo, aka gigavuPro from Jobo. This device uses the Intel PXA255 processor, source code for the kernel is already available. Can anyone help me please ? Dario -- El hombre esta siempre dispuesto a negar aquello que no comprende. Luigi Pirandello Dario Salvi PhD student at LST Life Supporting Technologies Technical Univesity of Madrid (UPM) Ciudad Universitaria 28040 Madrid España e-mail: [EMAIL PROTECTED] web: http://www.lst.tfo.upm.es mobile: +34 664130294 (ES) +39 3473887225 (I) personal homepage: www.dariosalvi.info ___ 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-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] XslTransform tool
Hello all, I've build a simple 1-line-of-code tool that applies xsl transformation to xml files, in order to transform NUnit output xml files to more suitable format to be used by automatic testing engine. Actually, I tried first to find such a tool in svn repository... somewhere in tools, but it was not here :( Does such a tool exists in svn repository, and if not - where can I commit this one (is mcs\tools\xmlformatter a good place)? Thanks, Boris -- Boris Kirzner Mono RD team, Mainsoft Corporation. Blogging at http://boriskirzner.blogspot.com/ ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent
Yes, XSP does as IIS sends Content-Length as it was not SuppressContent=true and lets the Response.AddHeader(Content-Length, 1000); call to be. Now does anyone know how to configure Apache not to overwrite headers? Thanks! (K) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gonzalo Paniagua Javier Sent: Wednesday, January 25, 2006 5:22 PM To: mono-devel-list@lists.ximian.com Subject: RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent Now the question is what does this Content-Length stuff? IIS or .Net? The answer for this one is easy: use xsp on windows to figure it out :-). XSP not sending the correct content-length is probably a bug on our side. Imagine this was a 'HEAD' request... -Gonzalo ___ 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] Ldap and Threading
Hello Mike, First, I run the test you provided both on mono (r55426) and on .net 1.1 runtime (using slightly changed Novell.Directory.Ldap assembly). I addressed the functionality aspect only and did not measure/optimize for performance. Here are my findings: 1. .Net always succeeded to finish with no exceptions. 2. Mono sometimes failed on cygwin with problems in GC. --- I analyzed the exceptions reported: 1. Unhandled Exception: System.ArgumentException: length in 0x005cc System.Array:Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) in 0x0004b System.Array:Copy (System.Array sourceArray, System.Array destinationArray, Int32 length) in 0x00016 System.Collections.ArrayList:CopyTo (System.Array array) in 0x0002a System.Collections.ArrayList:ToArray () in 0x00048 Novell.Directory.Ldap.MessageVector:findMessageById (Int32 msgId) in 0x001a7 Novell.Directory.Ldap.Connection+ReaderThread:Run () in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void () Looking into MessageVector:findMessageById: this exception can ever happen if someone alters the ArrayList from another thread. In order to solve this bug we need to identify the race condition and cure it (for example, by locking). Since reproducer is very environment specific, I will really appreciate if you will try to identify the synchronization hole. 2. Unhandled Exception: System.SystemException: Internal error, cannot create clone: Thread was being aborted in 0x0007b Novell.Directory.Ldap.Asn1.Asn1Identifier:Clone () in 0x00230 Novell.Directory.Ldap.Asn1.LBERDecoder:decode (System.IO.Stream in_Renamed, System.Int32[] len) in 0x0004d Novell.Directory.Ldap.Asn1.Asn1Structured:decodeStructured (Asn1Decoder dec, System.IO.Stream in_Renamed, Int32 len) in 0x00023 Novell.Directory.Ldap.Asn1.Asn1Sequence:.ctor (Asn1Decoder dec, System.IO.Stream in_Renamed, Int32 len) in 0x00041 Novell.Directory.Ldap.Rfc2251.RfcLdapMessage:.ctor (Asn1Decoder dec, System.IO.Stream in_Renamed, Int32 len) in 0x0017d Novell.Directory.Ldap.Connection+ReaderThread:Run () in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void () As I understand, this is a runtime issue: when a thread is aborted, the exception thrown should always be the ThreadAbortedException. If you experience this, please file a bug for mscorlib. 3. Unhandled Exception: System.IndexOutOfRangeException: Asn1Structured: set: index 1, size 1 in 0x00107 Novell.Directory.Ldap.Asn1.Asn1Structured:get_Renamed (Int32 index) in 0x0004c Novell.Directory.Ldap.Rfc2251.RfcLdapMessage:.ctor (Asn1Decoder dec, System.IO.Stream in_Renamed, Int32 len) in 0x0017d Novell.Directory.Ldap.Connection+ReaderThread:Run () in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void () Same like in first exception - race which should be identified. --- I looked into the BoiledDown patch, here are my comments: 1. '\n' - Environment.NewLine changes. Can you provide some explanations / test case(s) for this? 2. The rest of the patch deals with correct catching and passing of the exceptions thrown in the working thread to the user thread. This definitely solves the hang issue, but does nothing with the cause of those exceptions. So the route bug(s) remain (correct me if I'm wrong). Regards, Konstantin Triger -Original Message- From: Mike Glenn [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 9:27 PM To: Konstantin Triger Cc: mono-devel-list@lists.ximian.com Subject: RE: [Mono-dev] Ldap and Threading If you can send to this forum just the relevant diffs (patches) and, if possible, provide a brief explanation about the changes, I will be glad to look into them. Ok I've included two different patches. The Full_Novell one is a complete diff based on the code that JD provided to me, so that you can have a base of what was provided to me. The second BoiledDown patch contains what I'm fairly certain are the relevant fixes (If I wasn't sure I used JD's changes). The changes appear to be mainly in what objects are used for locking and the scope of the locking, a new threading class, as well as some more extensive exception handling. Which makes sense as that's the issues I was having with the lib. If more detailed explanations are needed I'm afraid we'll have to hope that JD is still reading the list and can respond. Mike Glenn ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] [PATCH] Dir.Services - small refactoring
Hello all, I made some refactoring reducing number of objects created. Please review the attached patch before I commit. Regards, Konstantin Triger perf.patch Description: perf.patch ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] Ldap and Threading
2. The rest of the patch deals with correct catching and passing of the exceptions thrown in the working thread to the user thread. This definitely solves the hang issue, but does nothing with the cause of those exceptions. So the route bug(s) remain (correct me if I'm wrong). I believe you are correct to the limits of my understanding, but I do see some changes in the MessageAgent.cs and MessageVector.cs classes that are locking related. Mostly around using the collections SyncRoot instead of the collection object itself for the lock. My assumption when I reviewed the code was that these changes provided a more reliable lock on the collection and as such prevented the race when accessing the returned messages. I used the SycRoot so that I could cleanly use a synchronized internal list in MessageVector and still have critical sections around loops. This was very important. One of the exceptions was caused due to that collection being changed by an add or remove operation while another thread was doing a loop. For better understanding of relevant changes I found my original patch to the Novell library. It's attached. Again, this was to the previous version of the lib, so you shouldn't apply it directly any current tree. I submitted this in August and started some threads here about getting it integrated, but that went nowhere. Here's the link to the Novell Forge item: http://forge.novell.com/modules/xfmod/tracker/index.php?func=detailaid= 1271group_id=1318atid=1364 To summarize, most of the relevant changes were for better background error handling, moving around critical sections slightly to fix some race conditions, and properly synchronizing the MessageVector collection. -JD Conley jd-ldap.diff Description: jd-ldap.diff ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] XslTransform tool
Hi Boris, It would be nice to have such tool and mcs/tools/blah is fine. Problems are: - We are not likely to add further functionality before Mono 1.2 (thus am even refrained from adding forgotten dtd2rng in mono/scripts...) - The name should be better and general ;-) Actually during recent relaxng development I created similar but mostly XML validation oriented tool (i.e. like xmllint or xsltproc), attached. I haven't put it into svn mostly because it is too cheap and misses many expected things (like XSLT params). Both of your code and it could be merged into a single tool. Atsushi Eno Hello all, I've build a simple 1-line-of-code tool that applies xsl transformation to xml files, in order to transform NUnit output xml files to more suitable format to be used by automatic testing engine. Actually, I tried first to find such a tool in svn repository... somewhere in tools, but it was not here :( Does such a tool exists in svn repository, and if not - where can I commit this one (is mcs\tools\xmlformatter a good place)? Thanks, Boris -- Boris Kirzner Mono RD team, Mainsoft Corporation. Blogging at http://boriskirzner.blogspot.com/ ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Schema; using System.Xml.Xsl; using System.Xml.XPath; using Commons.Xml.Nvdl; using Commons.Xml.Relaxng; using Commons.Xml.Relaxng.Rnc; using XSchema = System.Xml.Schema.XmlSchema; namespace Commons.Xml.Relaxng { public class Driver { public static void Main (string [] args) { try { Run (args); } catch (Exception ex) { if (Environment.GetEnvironmentVariable (MONO_XMLTOOL_ERROR_DETAILS) == yes) Console.WriteLine (ex); else Console.WriteLine (ex.Message); } } static void Usage () { Console.WriteLine (@ Usage: mono-xmltool [options] options: --validate [*.rng | *.rnc | *.nvdl | *.xsd] [instance] --validate-rng relax-ng-grammar-xml instance-xml --validate-rnc relax-ng-compact-grammar-file instance-xml --validate-nvdl nvdl-script-xml instance-xml --validate-xsd xml-schema instance-xml --transform stylesheet instance-xml environment variable that affects on the behavior: MONO_XMLTOOL_ERROR_DETAILS = yes : to get exception details. ); } static void Run (string [] args) { string command = null; if (args.Length == 0) { Usage (); return; } switch (args [0]) { default: case --help: Usage (); return; case --validate-rnc: ValidateRelaxngCompact (args); return; case --validate-rng: ValidateRelaxngXml (args); return; case --validate-nvdl: ValidateNvdl (args); return; case --validate-xsd: ValidateXsd (args); return; case --validate: ValidateAuto (args); return; case --transform: Transform (args); return; } } static void ValidateAuto (string [] args) { if (args.Length 1) { Usage (); return; } if (args [1].EndsWith (rng)) ValidateRelaxngXml (args); else if (args [1].EndsWith (rnc)) ValidateRelaxngCompact (args); else if (args [1].EndsWith (nvdl)) ValidateNvdl (args); else if (args [1].EndsWith (xsd)) ValidateXsd (args); } static void ValidateRelaxngXml (string [] args) { XmlReader xr = new XmlTextReader (args [1]); RelaxngPattern p = RelaxngPattern.Read (xr); xr.Close (); ValidateRelaxng (p, args); } static void ValidateRelaxngCompact (string [] args) { StreamReader sr = new StreamReader (args [1]); RelaxngPattern p = RncParser.ParseRnc (sr); sr.Close (); ValidateRelaxng (p, args); } static void ValidateRelaxng (RelaxngPattern p, string [] args) { XmlTextReader xtr = new XmlTextReader (args [2]); RelaxngValidatingReader vr = new RelaxngValidatingReader (xtr, p); vr.ReportDetails = true; while (!vr.EOF) vr.Read (); } static void ValidateNvdl (string [] args) { XmlTextReader nvdlxtr = new XmlTextReader (args [1]); NvdlRules nvdl = NvdlReader.Read (nvdlxtr); nvdlxtr.Close (); XmlTextReader xtr = new XmlTextReader (args [2]); NvdlValidatingReader nvr = new NvdlValidatingReader ( xtr, nvdl); while (!nvr.EOF) nvr.Read (); xtr.Close (); } static void ValidateXsd (string [] args) { XmlTextReader schemaxml = new XmlTextReader (args [1]); XSchema xsd = XSchema.Read (schemaxml, null); schemaxml.Close (); XmlTextReader xtr = new XmlTextReader (args [2]); XmlValidatingReader xvr = new XmlValidatingReader (xtr); xvr.Schemas.Add (xsd); while (!xvr.EOF) xvr.Read (); xvr.Close (); } static void Transform (string [] args) { XslTransform t = new XslTransform (); t.Load (args [1]); XmlTextWriter xw = new XmlTextWriter
Re: [Mono-dev] DateTime in .NET 2.0
Hello, I noticed the 2.0 members of System.DateTime are not implemented in mono v1.1.12.1 (this includes ToBinary(), FromBinary() and Kind). The missing members do not appear in the class status pages though. I am willing to do this and provide the patch to the list. I have just 1 Oh, nice, contributions are precious and always welcomed :-) question : The DateTime struct uses a private TimeSpan. To encode/decode to/from binary form, I need to use 2 bits for the Kind property thus leaving ‘only’ 62 bits for the Ticks property. Is it correct to have the DateTime.MaxValue decreased to prevent overflow when encoding ToBinary ? (this is not documented in msdn2). I am not sure about DateTime changes, but as for TimeSpan I saw that its range was narrowed - TimeSpan.MaxValue in .NET 2.0 is smaller than that of .NET 1.1 (so many TimeSpan tests fail under MS.NET 2.0). HTH. Atsushi Eno ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] XSP Server Erorr Severity one
Hi Gonzalo, Now I am able to reproduce this issue consistently. 1. Run the XSP server . 2. Change the hostname on which xsp server is running. 3. On browsing pages you will get following error. Description: Error processing request. Error Message: HTTP 500. Stack Trace: System.Net.Sockets.SocketException: No such host is known in 0x0009f System.Net.Dns:GetHostByName (System.String hostName) In another scenario. 4.If xsp is running and u browsed few pages in application, and change the servername. This will result in following. Previously browsed pages will be displayed fine. The pages which are getting displayed for first time after XSP server started ,will throw following message. Error Message: HTTP 404. File not found Stack Trace: System.IO.FileNotFoundException: /tmp/root-temp-aspnet-0/28bf7633/28579.dll : /tmp/root-temp-aspnet-0/28bf7633/28579.dll in 0x0 unknown method in (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool) If this helps, we are running on FC3 environment. Your help is appreciated. Let me know if you need more info. -Yogendra Thakur -Original Message- From: Gonzalo Paniagua Javier [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 6:01 PM To: Yogendra Thakur Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] XSP Server Erorr Severity one On Wed, 2006-01-25 at 17:48 -0500, Yogendra Thakur wrote: Hi Gonzalo, I am using Mono 1.1.13 rpm installation version with XSP 1.1.13 rpm installation. I have production ready web-application build using .NET 1.1 framework and visual Studio 2003. Only thing holding our release is frequent occurrence of following error. I need a test case to reproduce this issue otherwise there's not much i can do. -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] XSP Server Erorr Severity one
On Thu, 2006-01-26 at 12:47 -0500, Yogendra Thakur wrote: Hi Gonzalo, Now I am able to reproduce this issue consistently. 1. Run the XSP server . 2. Change the hostname on which xsp server is running. 3. On browsing pages you will get following error. Description: Error processing request. Error Message: HTTP 500. Stack Trace: System.Net.Sockets.SocketException: No such host is known in 0x0009f System.Net.Dns:GetHostByName (System.String hostName) This is now: http://bugzilla.ximian.com/show_bug.cgi?id=77371 I'll try to fix it ASAP. -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Web.Config thoughts and a few quick bugs..
On Thu, 2006-01-26 at 16:17 +0200, Christopher Bergström wrote: I'm developing a web app and in the process I've noticed that we are implementing most of the features needed, but sometimes allowing configurations which don't work and don't produce an error and or are not compatible with other implementations. #1 We should test for multiple web.config. NTFS and FAT are case insensitive and thus don't allow for Web.Config and web.config, but EXT3 and friends does. Could this be as easy as looping through the directories, lowercasing everything and then where the count is more than 1 per directory give an error? The 1.x configuration code checks for web.config first and, if not found, it tries Web.config. Of course, with NTFS you could have wEB.cONfig and it would work, but we just test for the 2 most common posibilities. . [...] We'll be waiting for the bug reports next week. Seems like you already have a test case for all of them... Thanks. -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [PATCH] System.Configuration.ConfigurationManager
Hi Chris, Thanks for the response - I saw your plethora of commits, so am about to do a fresh checkout, give it a whirl, and I'll let you know ;-) As for the Assembly.GetCallingAssembly() stuff, when I was looking at it and cooked up that patch, the assembly passed in to OpenExeConfigurationInternal was only used by the user.config stuff, and I couldn't see where that was ever actually being called anywhere else (but then again I didn't even realise you could have user.config files in your application data folder, so I left that bit well alone :-P). That's interesting that it looks like web.config and exe.config handling is separate, I didn't realise that, as the MS implementation hides it quite nicely. I can't think of anything of the top of my head to resolve the usage of Assembly.GetCallingAssembly()/GetEntryAssembly(), however if I do think of anything I'll let you know. In the meantime, I'll give the fixes you applied yesterday a go, and keep you posted as to how I get on :-) Cheers, Elliott On Thu, 26 Jan 2006 23:47:01 -0500, Chris Toshok [EMAIL PROTECTED] wrote: Hey Elliott, This was definitely something I knew was broken (and so did many others, who were bugging me to fix it :) I ran a few tests on MS's implementation, raised exceptions at the right place, and found that most likely the web.config handling was completely divorced from from exe.config handling. I've made some commits tonight that should fix most/all of the issues. I'm still very unhappy with the Assembly.GetCallingAssembly()/GetEntryAssembly() crap.. there needs to be a better way to do this, but coming up with tests of MS's behavior is very hard. Chris On Thu, 2006-01-26 at 01:22 +, Elliott Draper wrote: Hi guys, Attached is a patch for the System.Configuration.ConfigurationManager class, that fixes a bug I've found when using the NET-2.0 profile with the new configuration objects in a web application. The problem appeared to be with how the configuration file name was worked out internally within the ConfigurationManager - it appeared to correctly find configuration files for console apps etc, but couldn't work out the path to the web.config file for a web application. This seemed to result in it simply returning a null for custom configuration sections and app settings within web apps. The patch tidies that code up a bit, and uses AppDomain.CurrentDomain.SetupInformation.ConfigurationFile to retrieve the path to the configuration file. I've tested it with a test web app, which now can correctly retrieve custom configuration sections, app settings and the like. I've also tested a very simple console app to ensure that still works, which it does. As always, comments welcome, I haven't supplied a test case for this bug as it's reproducable by simply trying to retrieve an app setting or configuration section when using the NET-2.0 profile (xsp2/mod-mono-server2) on the latest version of Mono from svn head, however if anyone really wants my test code then give me a shout and I'll wrap it up for use elsewhere. Oh, and I'm aware that Chris Toshok is actively working on the Configuration 2.0 API, and so Chris, if your reading this, your probably the most knowledgable person when it comes to this particular bit of code - if you've got any comments, if I've missed the point, or if this was something that you knew was broken/was broken for a reason/you've fixed but haven't checked in yet, then let me know :-) Cheers, Elliott ___ 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-list] ByteFX or Connector/Net or ..?
What should i use to connect to a MySql server? I'm making an aplication which i intend to distribute (not personal use). There seems to be ByteFX. The problem is that, the last time i tried to use it, it completely failed to connect to the server (mono 1.1.11 in Suse). I was even starting to doubt the server was really accepting conections until i tried the MySql's Connector/Net for Ms.NET, which worked. Now, i'm on another system with mono 1.1.13 and, this time, ByteFX seems to be working but i don't know if i should trust it to work on all of my intended users's systems (most of them probably Windows). On the other hand, MySql's Connector/Net for Ms.NET is the «continuation» of ByteFX but i'm not completely sure if i should trust MySql's Connector/Net for Ms.NET since it may have problems working with mono. In this page: http://dev.mysql.com/tech-resources/interviews/rburnett.html ... Reggie, I understand you actually brought Connector/Net with you when joining MySQL AB? Reggie: Yes. I developed the original ByteFX connector, which was acquired by MySQL in April '04. It was renamed to Connector/Net, ... Can anyone give some insight on this? Sorry if this is asked alot but i don't find usefull information regarding this. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] ByteFX or Connector/Net or ..?
I've had no problems using the MySql Connector/Net under Mono, in the package available from the MySql site (http://dev.mysql.com/downloads/connector/net/1.0.html) there are separate binaries for .Net 1.0, 1.1, 2.0, and for Mono. I tend to use the .Net 2.0 binary actually, and that (for me at least) actually works fine when developing an app on Windows, running on .Net 2.0, and then deploying it on Linux, using the .Net 2.0 profile within the latest version of Mono (1.1.13). And seeing as how, like you said, the MySql Connector is in fact a continuation of the ByteFX provider, then I would use that, as I'd consider the ByteFX provider to be deprecated now. Cheers, Elliott On Thu, 26 Jan 2006 08:44:08 +, Paulo Augusto [EMAIL PROTECTED] wrote: What should i use to connect to a MySql server? I'm making an aplication which i intend to distribute (not personal use). There seems to be ByteFX. The problem is that, the last time i tried to use it, it completely failed to connect to the server (mono 1.1.11 in Suse). I was even starting to doubt the server was really accepting conections until i tried the MySql's Connector/Net for Ms.NET, which worked. Now, i'm on another system with mono 1.1.13 and, this time, ByteFX seems to be working but i don't know if i should trust it to work on all of my intended users's systems (most of them probably Windows). On the other hand, MySql's Connector/Net for Ms.NET is the �continuation� of ByteFX but i'm not completely sure if i should trust MySql's Connector/Net for Ms.NET since it may have problems working with mono. In this page: http://dev.mysql.com/tech-resources/interviews/rburnett.html ... Reggie, I understand you actually brought Connector/Net with you when joining MySQL AB? Reggie: Yes. I developed the original ByteFX connector, which was acquired by MySQL in April '04. It was renamed to Connector/Net, ... Can anyone give some insight on this? Sorry if this is asked alot but i don't find usefull information regarding this. ___ 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] Re: ByteFX or Connector/Net or ..?
Paulo, What should i use to connect to a MySql server? I'm making an aplication which i intend to distribute (not personal use). The MySql Connector/.NET is GPL, while ByteFX is LGPL. If your app is not licensed under GPL, you definitely have to check Connector's license at http://www.mysql.com There seems to be ByteFX. The problem is that, the last time i tried to use it, it completely failed to connect to the server (mono 1.1.11 in Suse). I was even starting to doubt the server was really accepting conections until i tried the MySql's Connector/Net for Ms.NET, which worked. Last time I checked, ByteFX didn't work with the new password encryption scheme of MySQL 4.1. Now, i'm on another system with mono 1.1.13 and, this time, ByteFX seems to be working but i don't know if i should trust it to work on all of my intended users's systems (most of them probably Windows). On the other hand, MySql's Connector/Net for Ms.NET is the «continuation» of ByteFX but i'm not completely sure if i should trust MySql's Connector/Net for Ms.NET since it may have problems working with mono. ByteFX is currently unmaintained, while MySql Connector/.NET is maintained by MySQL AB. Versions 1.0.6 and 1.0.7 work fine for me under Mono and MS.NET. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Named Mutex on Linux
I have a user who says a system named mutex is not being released on RedHat Enterprise Linux v3 using Mono 1.1.12.1. I don't have any particulars yet about how this is happening, so I'm trying to form a theory on why this is happening. I've examined the code, and I don't think it is a bug in there. The release of the mutex is found in a try/finally, so if the console encounters an exception, it is guaranteed the mutex would be released. Is it possible if a console app is killed while owning a system wide named mutex that the mutex is not released? (I wonder if that is what is happening in my reported case - Ctrl-C while owning the mutex.) On a different note, I'm looking for a way to release system wide mutexes. If I encounter a situation where a named mutex is in a hanged state is there a way to release it? I thought I read Mono used a daemon to handle system wide mutexes? If so, what is the name of that daemon? Would restarting it release the mutex? Are there other options here? Thanks for your help. Jeff Clausius SourceGear ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Getting parent process
Jonathan Pryor wrote: On Wed, 2006-01-25 at 11:03 -0300, Mariano Benedettini wrote: How can I build a process tree ? Say, starting from the current process id, get the parent of it and successively. With Mono.Unix.Process.GetCurrentProcessId() and Mono.Unix.UnixEnvironment.GetParentProcessId() I can get the current process and its parent, but cant go further :-( The short answer is that you don't, at least not while sticking strictly to POSIX. I don't know why, but that information is not exposed. This doesn't mean it's not possible, it just means it's not in POSIX (and thus not portable). pstree(1) reads the Linux /proc file system to build the process tree; see: http://cvs.sourceforge.net/viewcvs.py/psmisc/psmisc/src/pstree.c?rev=1.32view=markup - Jon Thanks for the tip, I was almost sure that looking in /proc was the only way (now I'm totally sure). I don't care about portability so I'll gonna make it that way. Mariano. -- Mariano Benedettini Ad Network SA [EMAIL PROTECTED] ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] mono-1.1.13.2-0.0.sunos8.novell.sparc.pkg Cryptographic Exception
After installing this package on my solaris box, I had to create /dev/random or everything Itried to compile came up with a CryptographicException: Couldn't access ramdom source. Once I created that directory I was able to compile ok. Is there any chance of getting MonoDevelop included in this package? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] mono-1.1.13.2-0.0.sunos8.novell.sparc.pkg Cryptographic Exception
Hello, On Thu, 2006-01-26 at 14:29 -0500, Geek Empire wrote: After installing this package on my solaris box, I had to create /dev/random or everything I tried to compile came up with a CryptographicException: Couldn't access ramdom source. Once I created that directory I was able to compile ok. AFAIK Solaris doesn't support /dev/random (or /dev/urandom). The other option (built-in the mono runtime) is to use EGD. More information is available in man mono. Is there any chance of getting MonoDevelop included in this package? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Sebastien Pouliot [EMAIL PROTECTED] Blog: http://pages.infinit.net/ctech/ ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] mono-1.1.13.2.0.0.sunos8.novell.sparc.pkg
Hi Melissa and Brian, The setup.sh needs three more environment variables: export MONO_PREFIX=/opt/mono export MONO_CFG_DIR=/opt/mono/etc export MONO_PATH=/opt/mono/lib This will be fixed in the next version of the package. Also, I've noticed that some mono programs access /dev/[u]random. Solaris patch 112438 for sunos8 sparc is required for this. Thanks for the quick feedback. I'll post another package once some other issues are worked out. (xsp currently segfaults, and I'm looking into it). Wade On Wed, 2006-01-25 at 10:14 -0500, Melissa Vandenbrink wrote: It's still looking in /tmp ([EMAIL PROTECTED]) ~ . /opt/mono/setup.sh ([EMAIL PROTECTED]) ~ cd bin/tools/mono/database/ ([EMAIL PROTECTED]) ~/bin/tools/mono/database mono sybaseConnectTest.exe Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.Dns --- System.Configuration.ConfigurationException: Cannot find /tmp/install/etc/mono/1.0/machine.config () in 0x00100 System.Configuration.DefaultConfig:Init () in 0xc System.Configuration.DefaultConfig:GetConfig (System.String sectionName) in 0x00028 System.Configuration.ConfigurationSettings:GetConfig (System.String sectionName) in 0x000f4 System.Net.Sockets.Socket:CheckProtocolSupport () in 0x4 System.Net.Dns:.cctor ()--- End of inner exception stack trace --- in 0x0 unknown method in 0x0002c Mono.Data.Tds.Protocol.TdsConnectionParameters:.ctor () in 0x00020 Mono.Data.SybaseClient.SybaseConnection:.ctor (System.String connectionString) in (wrapper remoting-invoke-with-check) Mono.Data.SybaseClient.SybaseConnection:.ctor (string) in 0x00044 Test:Main (System.String[] args) On 1/24/06, Wade Berrier [EMAIL PROTECTED] wrote: The Downloads page on the wiki has been updated with some Solaris package instructions. Wade On Tue, 2006-01-24 at 15:36 -0700, Wade Berrier wrote: Make sure that you load the environment file: /opt/mono/setup.sh (Or the corresponding setup.csh) You need to: /opt/mono/setup.sh in order to set up the environment. Let me know if that doesn't work. I'll add some instructions on the wiki about this. Wade On Tue, 2006-01-24 at 16:48 -0500, Melissa Vandenbrink wrote: I've installed the mono Solaris 8 mono package and after some work I've been able to get it to work.. however: ([EMAIL PROTECTED]) ~ mono ConnectSybaseODBC.exe The assembly mscorlib.dll was not found or could not be loaded. It should have been installed in the `/tmp/install/lib/mono/1.0/mscorlib.dll' directory. Mono keeps looking for it's dll files in /tmp - I can create a symlink to /opt/mono/lib to /tmp/install - but this will disappear if the machine is rebooted.. Does anyone know a fix for this? ___ 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 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
Re: [Mono-list] mono-1.1.13.2.0.0.sunos8.novell.sparc.pkg
A new Solaris package has been posted on www.mono-project.com . Wade On Thu, 2006-01-26 at 15:47 -0700, Wade Berrier wrote: Hi Melissa and Brian, The setup.sh needs three more environment variables: export MONO_PREFIX=/opt/mono export MONO_CFG_DIR=/opt/mono/etc export MONO_PATH=/opt/mono/lib This will be fixed in the next version of the package. Also, I've noticed that some mono programs access /dev/[u]random. Solaris patch 112438 for sunos8 sparc is required for this. Thanks for the quick feedback. I'll post another package once some other issues are worked out. (xsp currently segfaults, and I'm looking into it). Wade On Wed, 2006-01-25 at 10:14 -0500, Melissa Vandenbrink wrote: It's still looking in /tmp ([EMAIL PROTECTED]) ~ . /opt/mono/setup.sh ([EMAIL PROTECTED]) ~ cd bin/tools/mono/database/ ([EMAIL PROTECTED]) ~/bin/tools/mono/database mono sybaseConnectTest.exe Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.Dns --- System.Configuration.ConfigurationException: Cannot find /tmp/install/etc/mono/1.0/machine.config () in 0x00100 System.Configuration.DefaultConfig:Init () in 0xc System.Configuration.DefaultConfig:GetConfig (System.String sectionName) in 0x00028 System.Configuration.ConfigurationSettings:GetConfig (System.String sectionName) in 0x000f4 System.Net.Sockets.Socket:CheckProtocolSupport () in 0x4 System.Net.Dns:.cctor ()--- End of inner exception stack trace --- in 0x0 unknown method in 0x0002c Mono.Data.Tds.Protocol.TdsConnectionParameters:.ctor () in 0x00020 Mono.Data.SybaseClient.SybaseConnection:.ctor (System.String connectionString) in (wrapper remoting-invoke-with-check) Mono.Data.SybaseClient.SybaseConnection:.ctor (string) in 0x00044 Test:Main (System.String[] args) On 1/24/06, Wade Berrier [EMAIL PROTECTED] wrote: The Downloads page on the wiki has been updated with some Solaris package instructions. Wade On Tue, 2006-01-24 at 15:36 -0700, Wade Berrier wrote: Make sure that you load the environment file: /opt/mono/setup.sh (Or the corresponding setup.csh) You need to: /opt/mono/setup.sh in order to set up the environment. Let me know if that doesn't work. I'll add some instructions on the wiki about this. Wade On Tue, 2006-01-24 at 16:48 -0500, Melissa Vandenbrink wrote: I've installed the mono Solaris 8 mono package and after some work I've been able to get it to work.. however: ([EMAIL PROTECTED]) ~ mono ConnectSybaseODBC.exe The assembly mscorlib.dll was not found or could not be loaded. It should have been installed in the `/tmp/install/lib/mono/1.0/mscorlib.dll' directory. Mono keeps looking for it's dll files in /tmp - I can create a symlink to /opt/mono/lib to /tmp/install - but this will disappear if the machine is rebooted.. Does anyone know a fix for this? ___ 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 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] Problem setting up a contrinutor account to Mono-Project
Hiya folks, Not sure if this is the correct list to post to but I tried the mono doc list and it seemed all quiet there. I was trying to set up a mono-project contributor account so I clicked on the 'Create an Account or Login' button on the 'http://www.mono-project.com/Main_Page' page. This doesn't appear to give any option to create an account. Just by chance, I opened up the following page 'http://monodevelop.org/index.php?title=Special:Userloginreturnto=Creating_A_Simple_Solution' which does tell the user how to create a new account. So I think the text If you have some content you want to add and want to get an account, send an email to [EMAIL PROTECTED] needs to be added to the the 'http://www.mono-project.com/index.php?title=Special:Userlogin' page, where somebody is replaced with the account maintainer. Or else maybe I'm just crazy... Just a thought. Thanks for all the good work! Kind regards, Declan ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] ByteFX or Connector/Net or ..?
http://dev.mysql.com/downloads/connector/net/1.0.html) are separate binaries for .Net 1.0, 1.1, 2.0, and for Mono. ... This is interesting. It is not the first time i've heard people say that they downloaded a connector for mono from MySql's site. But everytime i go there, i find no such thing, only for Windows. My guess would be that there was, in the past, an official version for mono but they abandoned that. Actually if you download the zip file on the link above it includes mono, net-1.0, 1.1, and 2.0 builds in the bin directory. I've not bothered to determine the differences between them as the 1.1 build performs find on both windows and linux. Mike Glenn ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] ByteFX or Connector/Net or ..?
Em Qui, 2006-01-26 às 08:56 +, Elliott Draper escreveu: And seeing as how, like you said, the MySql Connector is in fact a continuation of the ByteFX provider, then I would use that, as I'd consider the ByteFX provider to be deprecated now. Why isn't MySQL Connector distributed inside Mono like ByteFX? -- Quem excele em empregar a força militar subjulga os exércitos dos outros povos sem travar batalha, toma cidades fortificadas dos outros povos sem as atacar e destrói os estados dos outros povos sem lutas prolongadas. Deve lutar sob o Céu com o propósito primordial da 'preservação'. Desse modo suas armas não se embotarão, e os ganhos poderão ser preservados. Essa é a estratégia para planejar ofensivas. -- Sun Tzu, em A arte da guerra ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] connection string errors
Hi The connection string seems fine and should work in mono.. Can u pls post the exception thrown ? Regards Senga Keith C. Perry [EMAIL PROTECTED] 1/25/2006 9:50 pm I have a test app designed in Visual Studio 2005 and the way it composes connection strings is throwing an exception in mono. In the Web.config file, the relevant lines are: connectionStrings add name=TestDBConnectionString connectionString=Data Source=10.1.1.16;Initial Catalog=TestDB;User ID=test;Password=tset321 providerName=System.Data.SqlClient / /connectionStrings Should this work in mono or is this one of the gotcha's porting things over to mono? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list