[Mono-dev] Strange SEGV crashes in mono executing mod_mono_server
Hi! I was preparing a new serwer to run my webapp I started experiencing random SEGV crashes in mono. I submitted a bug report #384176 with information from gdb. If I there is more information I could provide, please let me know. Best regards, Michał Ziemski ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Problems with IHttpHandler
Hi! Are you sure you run it with mod_mono_server2 rather than the default mod_mono_server? Cheers, Michał Ziemski Nik Radford pisze: > Yes, this I've already done. > > Basically I'm doing a catch all for the http handler, the entry for my web > config looks like so > > > type="TerminalDischarge.Web.HttpHandler.HttpHandler, > TerminalDischarge.Web"/> > > > I'm using for URL rewritting. and the HttpHandler i'm using looks like this: > > (sorry if its a bit much, I just copy pasted the whole file) > > using System; > using System.Collections.Generic; > using System.Configuration; > using System.IO; > using System.Text; > using System.Web; > using System.Web.UI; > using System.Xml; > using TerminalDischarge.Web.Mapping; > > namespace TerminalDischarge.Web.HttpHandler > { > public class HttpHandler : IHttpHandler > { > #region Internals > private readonly List m_Maps; > #endregion > > #region Constructors > public HttpHandler() > { > m_Maps = new List(); > } > #endregion > > #region Public Members > /// > ///Enables processing of HTTP Web requests by a custom HttpHandler > that implements the > interface. > /// > /// > ///An cref="T:System.Web.HttpContext"> object that provides > references to the intrinsic server objects (for example, Request, > Response, Session, and Server) used to service HTTP requests. > > public void ProcessRequest(HttpContext context) > { > AddPaths(context); > string url = context.Request.Path; > > foreach (Map m in m_Maps) > { > if (m.DoesMatch(url)) > { > string destination = m.MapUrl(url); > try > { > string fileName = > context.Server.MapPath(destination); > > Page page = > PageParser.GetCompiledPageInstance(destination, > fileName, context) as Page; > if (page != null) > { > context.RewritePath(destination); > page.ProcessRequest(context); > return; > } > } > catch (HttpException) > { > PageNotFound(context); > return; > } > } > } > > { > //no match found, so palm off to default handler > System.Web.DefaultHttpHandler defaultHttpHandler = new > DefaultHttpHandler(); > defaultHttpHandler.BeginProcessRequest(context, null, null); > return; > } > } > #endregion > > #region Private Members > /// > /// Displays a simple error if a path isn't found > /// > /// > private void PageNotFound(HttpContext context) > { > context.Response.StatusCode = 404; > context.Response.Write(string.Format("The page {0} was not > found", context.Request.Path)); > } > > > /// > /// Parses the path mapping file and populates the map list > /// > /// An cref="T:System.Web.HttpContext"> object that provides > references to the > /// intrinsic server objects (for example, Request, Response, > Session, and Server) used to service HTTP requests. > private void AddPaths(HttpContext context) > { > > m_Maps.Clear(); > > //get mapping filename > string mapFile = > context.Server.MapPath(ConfigurationManager.AppSettings["PathMap"]); > > //Load it > XmlDocument xDoc = new XmlDocument(); > xDoc.Load(mapFile); > XmlNodeList mapNodes = xDoc.SelectNodes("/Mapping/Map"); > > //we should get back a list of all our document mapping > //parse it and populate our map list > foreach (XmlNode node in mapNodes) > { > XmlNode xSearchFor = node.SelectSingleNode("./SearchFor"); > XmlNode xSendTo = node.SelectSingleNode("./SendTo"); > > if (xSearchFor != null && xSendTo != null) >
Re: [Mono-dev] Problems with IHttpHandler
Hi! I assume you precompile the assambly and put it in bin. In this case you sould put the name of the assembly in httpHandlers section in web.config Let's say the assembly is named "fooAssembly.dll". In that case add: If that doesn't help, please, post some code and the contents of web.config. Cheers, Michał Ziemski Nik Radford pisze: > Hello all, > > I was wondering if someone could help me with this. > I've written an ASP.NET website using visual studio 2005, and have written > my own custom IHttpHandler. All works well, except when I move it over to > my linux server and run it under mono. > > I get the error "(my http handler type) does not implement IHttpHandler or > IHttpHandlerFactory" > > I then wrote a little program which I compiled under mono, to load the > assembly my IHttpHandler type is in, and make sure that IHttpHandler could > indeed be assigned from my type. > > typeof(IHttpHandler).IsAssignableFrom(t); > > returned true. > > So I'm a little lost as to what is happening here. > > thanks in advance. > > Nik. > > -- > E-Mail:[EMAIL PROTECTED] > (We)Blog: http://blog.terminaldischarge.net > > ___ > 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 1.9
Hi! Try http://www.mono-project.com/Class_Status Best regards, Michał Ziemski Scott Fluto pisze: > > I was wondering if anyone knows what percentage of support 1.9 has > with regards to .net 3.0 and 3.5 , is there a place to see the > percentage of method coverage it has or will have? > > > > thanks > > > > scott > > > > ___ > 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 1.9.0 Preview 2 is out!!
Hi! There seems to be a problem handling anonymous methods returning multidimensional arrays. I have submitted a bug report #363218 Best regards, Michał Ziemski Thomas Wiest pisze: > Hey Everyone, > We've just released Mono 1.9.0 Preview 2 today! This preview has Windows > and Mac OS X installers. Please help us out by giving it a try with your > applications. > > As always, you can get the preview releases here: > http://mono.ximian.com/monobuild/preview/download-preview/ > > Please report any bugs that you may find using our Bugs page, AND reply to > this thread with the bug numbers so we can track them! > http://www.mono-project.com/Bugs > > > The earlier you file the bugs and reply to this message, the more likely your > bugs will get fixed. > > Special attention is given to regressions, so if you can tell us a version of > Mono where the bug worked and you tag the summary of the bug with > [Regression], then it is much more likely your bug will get fixed. > > Please help the Mono team to make 1.9.0 the best release of Mono ever. > > Thanks again! > > Mono QA > > ___ > 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] Using block inside an anonymous method crashes GMCS 1.2.6
Hi! I consider this to be serious so I decided to post to the group. I have filed a bug with a testcase (#351157) Everything was fine with 1.2.5. I would be grateful for information if the issue can be resolved more or less quickly. Best regards, Michał Ziemski ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Double multiplication
Hi! Floating point operations have finite precision. Thus 128.2 * 100 might yield 12819...., which in turn yields 12819 after applying Floor. I beleve you would get an analogous result from a C program. Maybe you should try rounding rather than Floor? Beast regards, Michał Ziemski Vladimir Dimitrov pisze: > > Today was one of the strangest days that I had recently. I woke up > today to discover another way of thinking about numbers …J > > > > To cut the long story short let me ask a simple question. Do you know > the result that the following code will produce as a console output: > > > > using System; > > > > namespace MultTest > > { > > class Program > > { > > static void Main (string [] args) > > { > > double d1 = 127.2; > > double d2 = 128.2; > > double hundred = 100; > > > > Console.WriteLine ("{0} * {1} = {2}", d1, hundred, > Math.Floor (d1 * 100)); > > Console.WriteLine ("{0} * {1} = {2}", d2, hundred, > Math.Floor (d2 * 100)); > > Console.ReadKey (); > > } > > } > > } > > > > Well what I get from it is: > > > > 127.2 * 100 = 12720 > > 128.2 * 100 = 12819 > > > > Am I the only one that thinks this is wrong? The things are even worse > because I noticed the problem on MS.NET first, and then on Mono and > since Microsoft is very unlikely to care about what I have to say, I > decided that you guys can be a lot more helpful. > > > > Thanks > > Vladimir Dimitrov > > > > P.S. I tried it on different machines Core 2 Duo (T7200) and Pentium 4. > > > > ___ > 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] [Beginners] Problem to do a simple makefile
Hi! Try using gmcs rather than mcs. AFAIR System.IO.Ports doesn't exist in NET 1.1 Cheers! Michał Ziemski David Arnaud-Goddet pisze: > Hi all, > I use Sharpdevelop to work with mono. It compiles and executes my > source code properly. > But I would like to do my own makefile. > I try this : > mcs -out:test.exe > MyFile.cs -r:System.dll -r:atk-sharp.dll -r:gdk-sharp.dll -r:glib-sharp.dll > -r:gtk-sharp.dll -r:pango-sharp.dll > I copy the references from Mono-1.2.4\lib\mono\gac to the current folder. > In my cs file I use System.IO and System.IO.Ports. On Sharpdevelop the > assembly works but when I use my Makefile I obtaint : > > Empty2.cs(3,7): error CS0234: The type or namespace name `Ports' does > not exist > in the namespace `System.IO'. Are you missing an assembly reference? > Empty2.cs(3,1): error CS0246: The type or namespace name `IO.Ports' > could not be > found. Are you missing a using directive or an assembly reference? > Empty2.cs(3,7): error CS0234: The type or namespace name `Ports' does > not exist > in the namespace `System.IO'. Are you missing an assembly reference? > Empty2.cs(3,1): error CS0246: The type or namespace name `IO.Ports' > could not be > found. Are you missing a using directive or an assembly reference? > Compilation failed: 4 error(s), 0 warnings > > I don't understand! The references are the same in the 2 cases... > Thanks in advance. > > > > > > > > > David ARNAUD-GODDET > > > ___ > 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] Warnings in mono 1.2.5
Hi! I am running a vanilla mono 1.2.5 on Suse 10.0. My app (Amazon S3 backup utility) occasionally (like 1 in 20 runs) produces warnings: WARNING **: _wapi_thread_abandon_mutexes: error looking up thread handle 0x408 WARNING **: _wapi_thread_set_termination_details: error looking up thread handle (nil) Despite the warnings, app works fine. My app mostly uses synchronous HttpWebRequests, no threading. Any ideas what might be the cause? I considered filing a bug, but I cannot provide any simpe testcase yet, so I decided to ask here first. Cheers, Michał Ziemski ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Getting Server Certificate with HttpWebRequest?
Hi! Try setting System.Net.ServicePointManager.CertificatePolicy There you will have access to the server's cert. Cheers, Michał Ziemski Valon Cross pisze: > > Hi, if this question is better posted to a list, please let me know: > > > > I want to query a server’s SSL Certificate so I can test the “Not > After” value and see when the cert is about to expire. > > > > I tried the following technique (with my employer’s URL) and can get > the HTML back. But I need to trap the SSL handshake conversation > before the HTML is returned: > > > > sURL = "https://thornburgmortgage.loanadministration.com/";; > > this.webRequest = > (HttpWebRequest)System.Net.WebRequest.Create(sURL); > > > > // BuildReqStream(ref webrequest); > > HttpWebResponse webresponse; > > webresponse = > (HttpWebResponse)this.webRequest.GetResponse(); > > > > Encoding enc = System.Text.Encoding.GetEncoding(1252); > > StreamReader loResponseStream = new > > StreamReader(webresponse.GetResponseStream(),enc); > > > > string Response = loResponseStream.ReadToEnd(); > > > > loResponseStream.Close(); > > webresponse.Close(); > > System.Console.WriteLine("Response Stream: " + Response); > > > > Do you know how to get the SSL information? Is there something like > java’s httpCommons for .NET 2005? > > > > Thanks, > > > > Valon Cross > > > > ___ > 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] Returning a remote object reference from a remote procedure
/* Sorry if this is double post. I've had some problems with the previous post */ Hi! I have been toying with remoting on Mono today. It seems it is not possible for a remote procedure to return any object reference. This results in a crash in the client app. Is this already supported in Mono? I have posted a bug report (with a small test case) under #81653. Cheers! Michał Ziemski ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Using httpHandler with handlers in App_Code
Hi! It seems you cannot use the httpHandlers compiled from App_Code. I had posted a bug about this (#80897) a while ago but it had no further input yet. I would really appreciate if someone would investigate. I have tried myself but I have too little experience with mono code to find the problem myself :( Cheers! Michał Ziemski ___ 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 MySql connection
Hi! You still have Version=1.0.8.0 somewhere. Find it, remove it (along with any Culture, PKT) and you should be fine. grep your source tree (.aspx Global.asax web.config) for Version. It has to be somewhere, the complier wouldn't invent '1.0.8.0' on its own. Cheers! Michał Ziemski Dariusz Linowski napisał(a): > Thanks Michał, > but it haven't worked still. > > Error message: > (0,0) : error CS0006: cannot find metadata file `1.0.8.0' > > I checked for your suggestion without/with ( Version, Culture, PTK ) > and with symbolic link to mono/2.0 directory. > I always add MySql.Data.dll to /bin application direcrory and I don't > understand why apllication look for this .dll in other places ! > > > 06-12-20, Michał Ziemski <[EMAIL PROTECTED]> napisał(a): > >> Hi! >> >> Now for the tricky part: >> go to /usr/lib/mono/1.0 (2.0 if you are using 2.0) >> make a symbolic link here to MySql.Data.dll in gac (ln -s >> ../gac/MySql.Data/1.0.8.0__c5687fc88969c44d/MySql.Data.dll) >> It should work now (at least it worked for me :)). >> >> In case of emergency, you can always copy MySql.Data to bin directory >> in your application path. >> >> Cheers! >> >> Dariusz Linowski napisał(a): >> >>> Hello, >>> thanks for response. >>> I used reference in Web.config and change relate to you advice from: >>> >>> >>> >>> to: >>> >>> >>> >>> and received new error message: >>> >>> Error message: >>> /tmp/asterisk-temp-aspnet-0/841db34f/4ef743b7._1.cs(8,2) : error >>> CS0246: The type or namespace name `DataObject' could not be found. >>> Are you missing a using directive or an assembly reference? >>> >>> >>> >>> >>> Source File: /tmp/asterisk-temp-aspnet-0/841db34f/4ef743b7._1.cs >>> >>> 06-12-19, Michał Ziemski <[EMAIL PROTECTED]> napisał(a): >>> >>> >>>> Hi! >>>> >>>> Is the error message still the same? >>>> Then perhaps you have analogous references in Global.asax? >>>> Try removing Version, Culture, PTK from there. >>>> >>>> Try leaving only the module name. >>>> >>>> Cheers! >>>> Michał Ziemski >>>> >>>> Dariusz Linowski napisał(a): >>>> >>>> >>>>> it didn't help for my application ): >>>>> >>>>> >>>>> >>>>> >>>>> ; >>>>> >>>>> 2006/12/19, Michał Ziemski <[EMAIL PROTECTED]>: >>>>> >>>>> >>>>> >>>>>> Hi! >>>>>> >>>>>> Got the same problem yesterday. >>>>>> I removed Version, Culture, PTK leaving only the name and it worked. >>>>>> >>>>>> Still I am not certain if this new behaviour is a bug or a feature. >>>>>> >>>>>> Cheers! >>>>>> Michał Ziemski >>>>>> Dariusz Linowski napisał(a): >>>>>> >>>>>> >>>>>> >>>>>>> Hello, >>>>>>> I rewrote my code skiped VDW toolbox controls and now is more better >>>>>>> but not good (: >>>>>>> Currently I receive message: >>>>>>> error CS0006: cannot find metadata file `1.0.8.0' What is wrong? >>>>>>> >>>>>>> In the GAC i see this assmembles: >>>>>>> [EMAIL PROTECTED] conf]# gacutil -l |grep MySql >>>>>>> MySql.Data, Version=1.0.7.30072, Culture=neutral, >>>>>>> PublicKeyToken=c5687fc88969c44d >>>>>>> MySql.Data, Version=1.0.7.30073, Culture=neutral, >>>>>>> PublicKeyToken=8e323390df8d9ed4 >>>>>>> MySql.Data, Version=1.0.8.0, Culture=neutral, >>>>>>> PublicKeyToken=c5687fc88969c44d >>>>>>> >>>>>>> On the Web.config i have: >>>>>>> >>>>>> assembly="MySql.Data,Version=1.0.8.0,Culture=neutral,PublicKeyToken=c5687fc88969c44d"/> >>>>>>> >>>>>>> >>>>>>> On the httpd.conf I have: >>>>>>> MonoPath visual /usr/lib/mono/gac/MySql.Data/1.0.8.0__c5687fc88969c44d >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> >>>> >>> >>> >> >> > > > ___ 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 MySql connection
Hi! Now for the tricky part: go to /usr/lib/mono/1.0 (2.0 if you are using 2.0) make a symbolic link here to MySql.Data.dll in gac (ln -s ../gac/MySql.Data/1.0.8.0__c5687fc88969c44d/MySql.Data.dll) It should work now (at least it worked for me :)). In case of emergency, you can always copy MySql.Data to bin directory in your application path. Cheers! Dariusz Linowski napisał(a): > Hello, > thanks for response. > I used reference in Web.config and change relate to you advice from: > > > > to: > > > > and received new error message: > > Error message: > /tmp/asterisk-temp-aspnet-0/841db34f/4ef743b7._1.cs(8,2) : error > CS0246: The type or namespace name `DataObject' could not be found. > Are you missing a using directive or an assembly reference? > > > > > Source File: /tmp/asterisk-temp-aspnet-0/841db34f/4ef743b7._1.cs > > 06-12-19, Michał Ziemski <[EMAIL PROTECTED]> napisał(a): > >> Hi! >> >> Is the error message still the same? >> Then perhaps you have analogous references in Global.asax? >> Try removing Version, Culture, PTK from there. >> >> Try leaving only the module name. >> >> Cheers! >> Michał Ziemski >> >> Dariusz Linowski napisał(a): >> >>> it didn't help for my application ): >>> >>> >>> >>> >>> ; >>> >>> 2006/12/19, Michał Ziemski <[EMAIL PROTECTED]>: >>> >>> >>>> Hi! >>>> >>>> Got the same problem yesterday. >>>> I removed Version, Culture, PTK leaving only the name and it worked. >>>> >>>> Still I am not certain if this new behaviour is a bug or a feature. >>>> >>>> Cheers! >>>> Michał Ziemski >>>> Dariusz Linowski napisał(a): >>>> >>>> >>>>> Hello, >>>>> I rewrote my code skiped VDW toolbox controls and now is more better >>>>> but not good (: >>>>> Currently I receive message: >>>>> error CS0006: cannot find metadata file `1.0.8.0' What is wrong? >>>>> >>>>> In the GAC i see this assmembles: >>>>> [EMAIL PROTECTED] conf]# gacutil -l |grep MySql >>>>> MySql.Data, Version=1.0.7.30072, Culture=neutral, >>>>> PublicKeyToken=c5687fc88969c44d >>>>> MySql.Data, Version=1.0.7.30073, Culture=neutral, >>>>> PublicKeyToken=8e323390df8d9ed4 >>>>> MySql.Data, Version=1.0.8.0, Culture=neutral, >>>>> PublicKeyToken=c5687fc88969c44d >>>>> >>>>> On the Web.config i have: >>>>> >>>> assembly="MySql.Data,Version=1.0.8.0,Culture=neutral,PublicKeyToken=c5687fc88969c44d"/> >>>>> >>>>> >>>>> On the httpd.conf I have: >>>>> MonoPath visual /usr/lib/mono/gac/MySql.Data/1.0.8.0__c5687fc88969c44d >>>>> >>>>> >>>>> >>>>> >>>> >>> >>> >> >> > > > ___ 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 MySql connection
Hi! Is the error message still the same? Then perhaps you have analogous references in Global.asax? Try removing Version, Culture, PTK from there. Try leaving only the module name. Cheers! Michał Ziemski Dariusz Linowski napisał(a): > it didn't help for my application ): > > > > > ; > > 2006/12/19, Michał Ziemski <[EMAIL PROTECTED]>: > >> Hi! >> >> Got the same problem yesterday. >> I removed Version, Culture, PTK leaving only the name and it worked. >> >> Still I am not certain if this new behaviour is a bug or a feature. >> >> Cheers! >> Michał Ziemski >> Dariusz Linowski napisał(a): >> >>> Hello, >>> I rewrote my code skiped VDW toolbox controls and now is more better >>> but not good (: >>> Currently I receive message: >>> error CS0006: cannot find metadata file `1.0.8.0' What is wrong? >>> >>> In the GAC i see this assmembles: >>> [EMAIL PROTECTED] conf]# gacutil -l |grep MySql >>> MySql.Data, Version=1.0.7.30072, Culture=neutral, >>> PublicKeyToken=c5687fc88969c44d >>> MySql.Data, Version=1.0.7.30073, Culture=neutral, >>> PublicKeyToken=8e323390df8d9ed4 >>> MySql.Data, Version=1.0.8.0, Culture=neutral, >>> PublicKeyToken=c5687fc88969c44d >>> >>> On the Web.config i have: >>> >> assembly="MySql.Data,Version=1.0.8.0,Culture=neutral,PublicKeyToken=c5687fc88969c44d"/> >>> >>> >>> On the httpd.conf I have: >>> MonoPath visual /usr/lib/mono/gac/MySql.Data/1.0.8.0__c5687fc88969c44d >>> >>> >>> >> >> > > > ___ 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 MySql connection
Hi! Got the same problem yesterday. I removed Version, Culture, PTK leaving only the name and it worked. Still I am not certain if this new behaviour is a bug or a feature. Cheers! Michał Ziemski Dariusz Linowski napisał(a): > Hello, > I rewrote my code skiped VDW toolbox controls and now is more better > but not good (: > Currently I receive message: > error CS0006: cannot find metadata file `1.0.8.0' What is wrong? > > In the GAC i see this assmembles: > [EMAIL PROTECTED] conf]# gacutil -l |grep MySql > MySql.Data, Version=1.0.7.30072, Culture=neutral, > PublicKeyToken=c5687fc88969c44d > MySql.Data, Version=1.0.7.30073, Culture=neutral, > PublicKeyToken=8e323390df8d9ed4 > MySql.Data, Version=1.0.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d > > On the Web.config i have: > assembly="MySql.Data,Version=1.0.8.0,Culture=neutral,PublicKeyToken=c5687fc88969c44d"/> > > > On the httpd.conf I have: > MonoPath visual /usr/lib/mono/gac/MySql.Data/1.0.8.0__c5687fc88969c44d > > ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Heap-shot and mod-mono-server2
Hi again! Probably a problem with direcotry permissions. After short examination of source code I found that invoking mono --profile=heap-shot:/tmp/objdump [exe] ill use /tmp/objdump as the output file! What a nice undocumented feature :) Cheers! Michał Ziemski Michał Ziemski napisał(a): > Hi! > > I was trying to use heas-shot to look into my app running on > mod-mono-server2 > When I kill -PROF the process I get the an error im my error_log: > > Is it possible at all to use this tool to heap-shot a mod-mono-server2? > > Cheers! > Michał Ziemski > > Stacktrace: > > > Native stacktrace: > > /usr/bin/mono [0x815b8ed] > /usr/bin/mono [0x81457b7] > [0x7c6440] > > /usr/lib/libmono-profiler-heap-shot.so(outfile_writer_open_objectmap+0x55) > [0x72d68d] > /usr/lib/libmono-profiler-heap-shot.so [0x72e0f4] > [0x7c6420] > [0x2cd29c00] > > Debug info from gdb: > > > > = > Got a SIGSEGV while executing native code. This usually indicates > a fatal error in the mono runtime or one of the native libraries > used by your application. > = > > > ___ > 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] Heap-shot and mod-mono-server2
Hi! I was trying to use heas-shot to look into my app running on mod-mono-server2 When I kill -PROF the process I get the an error im my error_log: Is it possible at all to use this tool to heap-shot a mod-mono-server2? Cheers! Michał Ziemski Stacktrace: Native stacktrace: /usr/bin/mono [0x815b8ed] /usr/bin/mono [0x81457b7] [0x7c6440] /usr/lib/libmono-profiler-heap-shot.so(outfile_writer_open_objectmap+0x55) [0x72d68d] /usr/lib/libmono-profiler-heap-shot.so [0x72e0f4] [0x7c6420] [0x2cd29c00] Debug info from gdb: = Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. = ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] A group that doesn't works any more
Hi! Please provide the full query and the body of the error. Cheers! Michał Ziemski Marco Aurelio Castro napisał(a): > Hi, > >In FireBird 1.5 I have a query with a group like this > >Group by ae.Author, l.Book, Price, >case >When op.StockChange in (23,24) Then 21 >When op.StockChange in (43,44) Then 22 >Else Mode end, DA > >It works in 1.5 but raises an error in 2.0. Any idea how to work > around this? > >Thanks, > >Marco Castro > > ___ > 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-list] mod_mono causes "[mono] " zombie processes
Hi! I have the same on FC4 with mono 1.2-rc0. There was a bug about this (75678) bu it is marked as RESOLVED. Shoould I file another one? Cheers! Michał Ziemski Jurek Bartuszek napisał(a): > Hi there, > > I have a problem with mod_mono. Every time I access an .aspx web page > hosted by mono, a new zombie process is shown in the list of processes: > > apache 26531 0.1 0.0 0 0 ?Z18:26 0:00 [mono] > > apache 26551 0.2 0.0 0 0 ?Z18:26 0:01 [mono] > > apache 26554 0.2 0.0 0 0 ?Z18:26 0:01 [mono] > > > After some time, apache refuses to serve asp.net applications anymore > and I'm forced to restart it. > > This behavior is independent of whether MonoRunXSP is set to True or > False (mod-mono-server is started either manually or automatically). > > Any ideas? > > Best regards, > Jurek Bartuszek > ___ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Assembly.GetEntryAssembly() returns null
Hi! The code I posted originally in the bug report might have been a little misleading. I did an additional comment with more appropriate code later. I wasn't realy sure where the real bug belonged System.Reflection.Assembly or System.Runtime.WaitHandle. There seems to ba a patch posted for that already (great job guys!!) for System.Runtime.WaitHandle, so I assume the problem was there. But IMHNRBOAIKO (in my humble, not really based on any indepth knwoledge, opinion) Assembly.GetEntryAssembly shouldn't be null inside an assembly loaded by mod_mono. MS Docs state that this could be null if loaded from an unmanaged code and mod-mono-server2 doesn't count as such. The thread I followed up was in fact about a different bug. I've relied too much on the title. Sorry for confusing that and thank you for pointing it out. Cheers! Michał Ziemski Atsushi Eno napisał(a): > Hi, > > If WaitHandle.WaitAll itself or its internal expects that the entry > assembly must not be null, then it is likely a bug. However, to my > understanding your bug #79859 expects its existence at *your* code. > So, it is your code which is buggy since it should consider null > entry assembly. > > Also notice that this thread is basically about different bug (it > is rather about ConfigurationManager, which should not always expect > entry assembly existence). > > 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] Assembly.GetEntryAssembly() returns null
Hi! I've just tripped on this one. This time under mod_mono. This is very bad as it crashes WaitHandle.WaitAll under mod_mono. Filed a bug #79859. Cheers! Michał Ziemski Janne Rantala napisał(a): > Hi, > > I've loaded assembly (compiled in VS.NET <http://VS.NET>) in embedded > environment. This assembly is supposed to work as a client for web > service. However this does not work because Assembly.GetEntryAssembly > returns null when called from managed code. This causes > ConfigurationManager to throw ArgumentException stating that "exePath > must be specified when not running inside a stand alone exe". > > MSDN > http://msdn2.microsoft.com/en-us/library/system.reflection.assembly.getentryassembly.aspx > > says that > > "Return Value > The Assembly that is the process executable in the default application > domain, or the first executable that was executed by > AppDomain.ExecuteAssembly. Can return a null reference (Nothing in > Visual Basic) when called from unmanaged code." > > But since this call is made from managed code it should return > something else than null? Both Assembly.GetCallingAssembly() and > Assembly.GetExecutingAssembly return the assembly I've loaded. > > Is this a bug? > > Here's the full stack trace if it's any help: > > Unhandled Exception: System.TypeInitializationException : An exception > was thrown > by the type initializer for System.Net.WebRequest ---> > System.ArgumentException > > : exePath must be specified when not running inside a stand alone exe. > at > System.Configuration.ConfigurationManager.OpenExeConfigurationInternal > (Con > figurationUserLevel userLevel, System.Reflection.Assembly > calling_assembly, Syst > em.String exePath) [0x0] > at > System.Configuration.ClientConfigurationSystem.System.Configuration.Interna > > l.IInternalConfigSystem.GetSection (System.String configKey) [0x0] > at System.Configuration.ConfigurationManager.GetSection > (System.String section > Name) [0x0] > at System.Net.WebRequest..cctor () [0x0] --- End of inner > exception stack > trace --- > > at <0x0> > at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest > (System.Uri u > ri) [0x0] > at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest > (System.U > ri uri) [0x0] > at > System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest > (System. > Uri uri) [0x0] > at > System.Web.Services.Protocols.SoapHttpClientProtocol.GetRequestForMessage > ( > System.Uri uri, System.Web.Services.Protocols.SoapClientMessage > message) [0x > 0] > at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke > (System.String > method_name, System.Object[] parameters) [0x0] > at WSTest.net.xmethods.www.CurrencyExchangeService.getRate > (System.String coun > try1, System.String country2) [0x0] > at (wrapper remoting-invoke-with-check) > WSTest.net.xmethods.www.CurrencyExchan > geService:getRate (string,string) > at WSTest.Class1.WebServiceTest () [0x0] > > Cheers, > > Janne > > > ___ > 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] Where clause on generic delegates
Hi! GMCS crashes when a "where" clause is used on a generic delegate. I am using Mono C# compiler version 1.1.16.1 on FC4 Should I file a bug for this one? I would be grateful for assistance as this hinders my work :( Compiling public interface IReplaceable { bool Valid { get; } } public class NalBase { private delegate void AddAlgStrDelegate(T als) where T : IReplaceable; } Crashes with: Unhandled Exception: System.ArgumentNullException: null key Parameter name: key at System.Collections.Hashtable.get_Item (System.Object key) [0x0] at Mono.CSharp.AttributeTester.GetObsoleteAttribute (System.Type type) [0x0] at Mono.CSharp.Expression.ResolveAsTypeTerminal (IResolveContext ec, Boolean silent) [0x0] at Mono.CSharp.TypeArguments.Resolve (IResolveContext ec) [0x0] at Mono.CSharp.ConstructedType.DoResolveType (IResolveContext ec) [0x0] at Mono.CSharp.ConstructedType.ResolveConstructedType (IResolveContext ec) [0x0] at Mono.CSharp.ConstructedType.DoResolveAsTypeStep (IResolveContext ec) [0x0] at Mono.CSharp.TypeExpr.ResolveAsTypeStep (IResolveContext ec, Boolean silent) [0x0] at Mono.CSharp.SimpleName.ResolveAsTypeStep (IResolveContext ec, Boolean silent) [0x0] at Mono.CSharp.Constraints.Resolve (IResolveContext ec) [0x0] at Mono.CSharp.TypeParameter.Resolve (Mono.CSharp.DeclSpace ds) [0x0] at Mono.CSharp.Delegate.DefineType () [0x0] at Mono.CSharp.TypeContainer.DefineNestedTypes () [0x0] at Mono.CSharp.TypeContainer.DefineType () [0x0] at Mono.CSharp.Class.DefineType () [0x0] at Mono.CSharp.RootContext.ResolveTree () [0x0] at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x0] at Mono.CSharp.Driver.Main (System.String[] args) [0x0] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Icomplete System.Data.IsolationLevel
Hi! There seems to be missing "Snapshot" member from System.Data.IsolationLevel enumeration. Anyone cares to add Snapshot = 16777216 I haven't yet set up my local mono sources to create a patch. Cheers Michał Ziemski ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-devel-list] Find Object instance that called a method..
Hi, Is there a mechanism to figure out the object instance that called a method.. Ex. class A { public void m1() { //some code.. } } Class B { private m2() { A aa = new A(); aa.m1(); } } From method m1 in class A is it possible for me to figure out the object instance aa? Use "this" keyword (I hope this is what you are asking for). public void m1() { this.ToString(); } Regards! Michal Ziemski ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list