[Mono-aspnet-list] Error with precompiled + Mono SVN
Hello, I just got Mono from svn [Mono JIT compiler version 2.7 (/trunk/mono r151205 Wed Feb 10 12:01:41 UTC 2010)] I'm trying to run a precompiled site, and I get the following exception. I put a writeline on that method and it's saying that it can't find the @WebHandler directive on this line: This is a marker file generated by the precompilation tool, and should not be deleted! Am I missing something? Thank you. System.Web.Compilation.ParseException: No @webhandler directive found at System.Web.UI.SimpleWebHandlerParser.GetDirectivesAndContent () [0x0] in filename unknown:0 at System.Web.UI.SimpleWebHandlerParser..ctor (System.Web.HttpContext context, System.String virtualPath, System.String physicalPath, System.IO.TextReader reader) [0x0] in filename unknown:0 at System.Web.UI.WebHandlerParser..ctor (System.Web.HttpContext context, System.Web.VirtualPath virtualPath, System.String physicalPath, System.IO.TextReader reader) [0x0] in filename unknown:0 at System.Web.Compilation.WebHandlerBuildProvider.CreateParser (System.Web.VirtualPath virtualPath, System.String physicalPath, System.IO.TextReader reader, System.Web.HttpContext context) [0x0] in filename unknown:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].get_Parser () [0x0] in filename unknown:0 at System.Web.Compilation.SimpleBuildProvider.Parse () [0x0] in filename unknown:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].get_LanguageName () [0x0] in filename unknown:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].get_CodeCompilerType () [0x0] in filename unknown:0 at System.Web.Compilation.BuildManagerDirectoryBuilder.GetBuildProviderCodeDomType (System.Web.Compilation.BuildProvider bp) [0x0] in filename unknown:0 at System.Web.Compilation.BuildManagerDirectoryBuilder.AssignToGroup (System.Web.Compilation.BuildProvider buildProvider, System.Collections.Generic.List`1 groups) [0x0] in filename unknown:0 at System.Web.Compilation.BuildManagerDirectoryBuilder.Build (Boolean single) [0x0] in filename unknown:0 at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, Boolean debug) [0x0] in filename unknown:0 at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) [0x0] in filename unknown:0 at System.Web.Compilation.BuildManager.GetCompiledType (System.Web.VirtualPath virtualPath) [0x0] in filename unknown:0 at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.Web.VirtualPath virtualPath, System.Type requiredBaseType) [0x0] in filename unknown:0 at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x0] in filename unknown:0 at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) [0x0] in filename unknown:0 at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x0] in filename unknown:0 at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x0] in filename unknown:0 at System.Web.HttpApplication+Pipelinec__Iterator2.MoveNext () [0x0] in filename unknown:0 -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
Re: [Mono-list] cannot find metadata file
I also experienced that behavior. What we now do is precompile everything. That way our websites never get that error when mono tries to compile them. :-) On Thu, Apr 30, 2009 at 4:21 PM, Danny Waite dannywai...@hotmail.com wrote: Hi All, I've been through various mono versions over time and have seen this error throughout and it really has been beaten! It's an ASP.NET web app, quite a simple one. It works well for a while until we get the following error. If we kill the mod-mono-server2.exe process or restart apache, it stops. Could anyone shed any light onto it before I pull my hair out! :-) Best, Danny Server Error in '/' Application Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Compiler Error Message: CS0006: cannot find metadata file `/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_18ec48c7.dll'/manage/dynamic-interfaces.aspx Show Detailed Compiler Output: gmcs /target:library /debug+ /optimize- /warn:4 /out:/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_3639c1f1.dll /r:/usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll /r:/usr/local/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll /r:/usr/local/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll /r:/usr/local/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll /r:/usr/local/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll /r:/usr/local/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll /r:/usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll /r:/usr/local/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll /r:/usr/local/lib/mono/gac/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/a41b7686/305f42ab_9444342d_0001/Mono.Da ta.SqliteClient.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/0c44534b/98006766_9444342d_0001/Mono.Data.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/fa8669ae/6ec25d83_9444342d_0001/Mono.Posix.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/3c856a06/a8c15e2b_9444342d_0001/Xrio.Enterprise.DataTypes.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/7dcf53f1/e98b67dc_9444342d_0001/Xrio.Standalone.Configuration.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/c09555f0/54d161dd_9444342d_0001/Xrio.Standalone.Service.dll /r:/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_18ec48c7.dll /r:/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_632a571.dll /nowarn:0169 -- /tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_3639c1f1_0.cs error CS0006: cannot find metadata file `/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_18ec48c7.dll'error CS0006: cannot find metadata file `/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_632a571. dll' Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433 ___ Mono-list maillist - mono-l...@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] cannot find metadata file
Interesting! Thanks Pedro. What do you mean by precompile? I mean this: http://gonzalo.name/blog/archive/archive-2009-Feb.html Our deploy process sends everything to a Web folder and then we call (using nant); exec failonerror=false workingdir=. basedir=H:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 program=aspnet_compiler commandline=-nologo -f -c -fixednames -p Deploy/Web -v / Deploy/WebPrecompiled/ / This creates a WebPrecompiled folder with everything precompiled. The first access is faster because mono doesn't need to compile aspx/master/etc. Hope this helps, BR On Thu, Apr 30, 2009 at 4:49 PM, Danny Waite dannywai...@hotmail.com wrote: Interesting! Thanks Pedro. What do you mean by precompile? I'm using the publish function in Visual Studio (gulp) I saw that there is better support for that in 2.4 however maybe thats a bad way to do things. Date: Thu, 30 Apr 2009 16:33:03 +0100 Subject: Re: [Mono-list] cannot find metadata file From: donbonifa...@gmail.com To: dannywai...@hotmail.com CC: mono-list@lists.ximian.com I also experienced that behavior. What we now do is precompile everything. That way our websites never get that error when mono tries to compile them. :-) On Thu, Apr 30, 2009 at 4:21 PM, Danny Waite wrote: Hi All, I've been through various mono versions over time and have seen this error throughout and it really has been beaten! It's an ASP.NET web app, quite a simple one. It works well for a while until we get the following error. If we kill the mod-mono-server2.exe process or restart apache, it stops. Could anyone shed any light onto it before I pull my hair out! :-) Best, Danny Server Error in '/' Application Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Compiler Error Message: CS0006: cannot find metadata file `/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_18ec48c7.dll'/manage/dynamic-interfaces.aspx Show Detailed Compiler Output: gmcs /target:library /debug+ /optimize- /warn:4 /out:/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_3639c1f1.dll /r:/usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll /r:/usr/local/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll /r:/usr/local/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll /r:/usr/local/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll /r:/usr/local/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll /r:/usr/local/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll /r:/usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll /r:/usr/local/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll /r:/usr/local/lib/mono/gac/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/a41b7686/305f42ab_9444342d_0001/Mono.Da ta.SqliteClient.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/0c44534b/98006766_9444342d_0001/Mono.Data.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/fa8669ae/6ec25d83_9444342d_0001/Mono.Posix.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/3c856a06/a8c15e2b_9444342d_0001/Xrio.Enterprise.DataTypes.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/7dcf53f1/e98b67dc_9444342d_0001/Xrio.Standalone.Configuration.dll /r:/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/c09555f0/54d161dd_9444342d_0001/Xrio.Standalone.Service.dll /r:/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_18ec48c7.dll /r:/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_632a571.dll /nowarn:0169 -- /tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_3639c1f1_0.cs error CS0006: cannot find metadata file `/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_18ec48c7.dll'error CS0006: cannot find metadata file `/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_632a571. dll' Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Mono/XSP mem/cpu usage
Hello, I'm using mono-fastcgi-server2 for a while and I've noticed the following: » the amount of memory that mono uses increases a lot, I used to have mono with 600Mb, Now I restart mono every couple of hours (it stays at an average of 250M) » Sometimes mono uses a _lot_ of CPU, even though we don't have much load at that time Here's a snap of top at the server: top - 16:18:26 up 25 days, 3:15, 1 user, load average: 2.03, 2.09, 2.14 Tasks: 107 total, 1 running, 106 sleeping, 0 stopped, 0 zombie Cpu(s): 32.6%us, 8.9%sy, 0.0%ni, 49.9%id, 0.0%wa, 0.0%hi, 8.6%si, 0.0%st Mem: 1033300k total, 838260k used, 195040k free, 152352k buffers Swap: 1510068k total,95716k used, 1414352k free, 256572k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 26810 root 20 0 327m 266m 33m S 200 26.4 325:03.89 mono The mono process is running for about 3h and is using 200% of CPU. If I restart the web process, it stays steady at 0-30, but at some time it increases to 100/200% and stays there. I really don't know if this is mono's fault or my application's fault. How can I troubleshoot this? Thank you, PS: I'm using everything 2.4 -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Error compiling mono 2.4 on amd64
Hello, I'm trying to build mono 2.4 on slicehost(amd64) by following these rules: http://www.bscheiman.org/2009/03/18/compiling-mono-22-on-slicehost/ I'm able to build/run mono 2.2, but mono 2.4 fails with the error at the end of the e-mail. I created a fresh slice (vps), installed all the dependencies and called ./configure with: ./configure --prefix=/usr/local/mono-2.4 --with-large-heap=yes --with-xen_opt=yes Then I got: ... Assembly mscorlib.dll signed. AOT [net_1_1] mscorlib.dll make[8]: *** [../../class/lib/net_1_1/mscorlib.dll] Error 134 make[8]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs/class/corlib' make[7]: *** [do-all] Error 2 make[7]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs/class/corlib' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs/class' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs' make[4]: *** [profile-do--net_1_1--all] Error 2 make[4]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs' make[3]: *** [profiles-do--all] Error 2 make[3]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs' make[2]: *** [all-local] Error 2 make[2]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/runtime' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/mono/mono-2.4/mono-2.4' make: *** [all] Error 2 Any ideas? -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] XSP Compilation Error
Can I please get some feedback on this? Just woke up and realized that we had our institutional website [orionsbelt.eu] with that error all night long... :s Thank you for your time, 2009/3/31 Pedro Santos donbonifa...@gmail.com: Hello, Yesterday I installed Mono and XSP 2.4 from SVN (after Miguel announced mono 2.4). Today I got this error while accessing a page: Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Compiler Error Message: CS0006: cannot find metadata file `/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.601c5071.dll' /Admin/default.aspx Show Detailed Compiler Output: gmcs /target:library /debug- /optimize+ /warn:0 /out:/tmp/root-temp-aspnet-0/6f3f8f0/App_Web_3e10ed3f.dll /r:/usr/local/mono/mono-2.4_svn/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll /r:/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll /r:/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll /r:/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll /r:/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll /r:/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll /r:/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Castle.Core.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Castle.DynamicProxy2.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Commons.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/DesignPatterns.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/FreeTextBox.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Iesi.Collections.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Institutional.Core.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Institutional.DataAccessLayer.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Institutional.WebAdmin.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Institutional.WebComponents.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Institutional.WebUserInterface.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Loki.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/Mono.GetOptions.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/MySql.Data.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/NHibernate.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/NVelocity.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/log4net.dll /r:/opt/orionsbelt/prd/institutional/public/Bin/nunit.framework.dll /r:/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.601c5071.dll /r:/tmp/root-temp-aspnet-0/6f3f8f0/App_Web_2101ed92.dll /nowarn:0169 -- /tmp/root-temp-aspnet-0/6f3f8f0/App_Web_3e10ed3f_0.cs error CS0006: cannot find metadata file `/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.601c5071.dll' error CS0006: cannot find metadata file `/tmp/root-temp-aspnet-0/6f3f8f0/App_Web_2101ed92.dll' Mono version: # mono --version Mono JIT compiler version 2.4 (/branches/mono-2-4/mono r130583 Mon Mar 30 23:10:23 WEST 2009) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: x86 Disabled: none -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Unstable XSP 2.4 RC1
Today I got mono from svn and compiled installed branch mono-2-4. I am still testing to see it this problem is fixed, but I run with a problem that I got on mono 2.2 that was fixed on 2.4. The problem was that the assembly's CodeBase was wrong, was the same as the Location. This today's snapshot I got that error again. The bug was: http://www.mail-archive.com/mono-b...@lists.ximian.com/msg57369.html And I'm running: # mono --version Mono JIT compiler version 2.4 (/branches/mono-2-4/mono r128706 Thu Mar 5 17:07:32 WET 2009) # ps ax | grep mono 30792 ?Sl 0:12 /usr/local/mono/mono-2.4_svn//bin/mono /usr/local/mono/mono-2.4_svn//lib/mono/2.0/fastcgi-mono-server2.exe Is this a regression or some problem with my configurations? Thank you. On Wed, Mar 4, 2009 at 7:10 PM, Marek Habersack gren...@twistedcode.net wrote: On Wed, 2009-03-04 at 17:44 +, Pedro Santos wrote: Hello, Hello, We have several applications running on mono on a beta stage. We recently migrated from win to mono and we have the following setup: » nginx + mono fastcgi server » only one instance of fastcgi-mono-server2 but with several applications (4) [snip] After having this error for the first time we start to get it on several pages, but if we restart fastcgi-mono-server2 it starts to work ok. After some time the error comes again. Is there anything else I can do to help fixing this? I have gathered two related exceptions from our logs: - ERROR -- System.Web.Compilation.CompilationException: CS0006: cannot find metadata file `/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.f105942.dll' [snip] All of the issues are most likely caused by a race condition in system.web's application domain shutdown code. Namely, just before AppDomain.Unload is called, the dynamic base directory (where the .dll and code files created while compiling the .as?x are kept) is cleared which may, under certain time conditions, cause the build manger (and possibly other code) to fail because the files it expected to find are no longer there. The commits to svn trunk, revision 128602, and to the 2.4 branch, revision 128603 should fix that. best regards, marek -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Unstable XSP 2.4 RC1
Hello, We have several applications running on mono on a beta stage. We recently migrated from win to mono and we have the following setup: » nginx + mono fastcgi server » only one instance of fastcgi-mono-server2 but with several applications (4) From our current experience we noticed that when deploying, fastcgi-mono-server2 becomes unstable and/or crashes. So at this moment every time we deploy something we also restart fastcgi-mono-server2. This is inconvenient but we get ok with it. The other problem is that without any apparent reason, mono starts throwing errors that we don't understand. For example, this page: http://manual.orionsbelt.eu/en/Battles/BattleConcepts.aspx When we restart mono it displays ok. After some time it may display an error. I copied the error to here: http://manual.orionsbelt.eu/en/Battles/BattleConcepts.Error.aspx It isn't only this page, this is an example. However, it seams to be only with this application. After having this error for the first time we start to get it on several pages, but if we restart fastcgi-mono-server2 it starts to work ok. After some time the error comes again. Is there anything else I can do to help fixing this? I have gathered two related exceptions from our logs: - ERROR -- System.Web.Compilation.CompilationException: CS0006: cannot find metadata file `/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.f105942.dll' at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x0] at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath) [0x0] at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Collections.Generic.List`1 buildItems, System.Web.VirtualPath virtualPath, BuildKind buildKind) [0x0] at System.Web.Compilation.BuildManager.BuildAssembly (System.Web.VirtualPath virtualPath) [0x0] at System.Web.Compilation.BuildManager.GetCompiledType (System.String virtualPath) [0x0] at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.String virtualPath, System.Type requiredBaseType) [0x0] at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x0] at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) [0x0] at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x0] at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x0] at System.Web.HttpApplication+Pipelinec__Iterator2.MoveNext () [0x0] - ERROR -- System.Web.Compilation.CompilationException: : at System.IO.Directory.GetCurrentDirectory () [0x0] at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x0] at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath) [0x0] at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Collections.Generic.List`1 buildItems, System.Web.VirtualPath virtualPath, BuildKind buildKind) [0x0] at System.Web.Compilation.BuildManager.BuildAssembly (System.Web.VirtualPath virtualPath) [0x0] at System.Web.Compilation.BuildManager.GetCompiledType (System.String virtualPath) [0x0] at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.String virtualPath, System.Type requiredBaseType) [0x0] at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x0] at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) [0x0] at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x0] at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x0] at System.Web.HttpApplication+Pipelinec__Iterator2.MoveNext () [0x0] -- -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Precompiled ASP.NET web sites in Mono
Hello, I saw that mono now supports precompiled sites: http://gonzalo.name/blog/archive/Mono/2009/Feb-20.html Is this available on mono 2.4 RC1? I'm trying and I get the following output: This is a marker file generated by the precompilation tool, and should not be deleted! I'm using: # fastcgi-mono-server2 --version fastcgi-mono-server2.exe 2.4.0.0 # xsp2 --version xsp2.exe 2.4.0.0 Thank you, -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Precompiled ASP.NET web sites in Mono
Hello Gonzalo, Our build process precompiles it using: exec failonerror=false workingdir=. basedir=H:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 program=aspnet_compiler commandline=-nologo -f -c -fixednames -p Deploy/Web -v / Deploy/WebPrecompiled/ / We have an IIS server, and we send the full contents of Deploy/WebPrecompiled to deploy our application. We tried it to the Linux machine and we got the result I reported. We also have mono2.2 on this machine, I don't know if it may cause some troubles. I don't think so, cause the launched process seams ok: /usr/local/mono/mono-2.4_RC1//bin/mono /usr/local/mono/mono-2.4_RC1//lib/mono/2.0/fastcgi-mono-server2.exe Is there anything I can do to troubleshoot this? On Thu, Feb 26, 2009 at 12:58 PM, Gonzalo Paniagua Javier gonzalo.m...@gmail.com wrote: On Thu, 2009-02-26 at 12:54 +, Pedro Santos wrote: Hello, I saw that mono now supports precompiled sites: http://gonzalo.name/blog/archive/Mono/2009/Feb-20.html Is this available on mono 2.4 RC1? I'm trying and I get the following output: This is a marker file generated by the precompilation tool, and should not be deleted! I'm using: # fastcgi-mono-server2 --version fastcgi-mono-server2.exe 2.4.0.0 # xsp2 --version xsp2.exe 2.4.0.0 You probably precompiled your site to be run on a virtual path like /mysite and are trying to run it on / instead. -Gonzalo ___ Mono-list maillist - mono-l...@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Precompiled ASP.NET web sites in Mono
Never mind, it was bad configuration from my part... it' working as expected. On Thu, Feb 26, 2009 at 1:05 PM, Pedro Santos donbonifa...@gmail.com wrote: Hello Gonzalo, Our build process precompiles it using: exec failonerror=false workingdir=. basedir=H:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 program=aspnet_compiler commandline=-nologo -f -c -fixednames -p Deploy/Web -v / Deploy/WebPrecompiled/ / We have an IIS server, and we send the full contents of Deploy/WebPrecompiled to deploy our application. We tried it to the Linux machine and we got the result I reported. We also have mono2.2 on this machine, I don't know if it may cause some troubles. I don't think so, cause the launched process seams ok: /usr/local/mono/mono-2.4_RC1//bin/mono /usr/local/mono/mono-2.4_RC1//lib/mono/2.0/fastcgi-mono-server2.exe Is there anything I can do to troubleshoot this? On Thu, Feb 26, 2009 at 12:58 PM, Gonzalo Paniagua Javier gonzalo.m...@gmail.com wrote: On Thu, 2009-02-26 at 12:54 +, Pedro Santos wrote: Hello, I saw that mono now supports precompiled sites: http://gonzalo.name/blog/archive/Mono/2009/Feb-20.html Is this available on mono 2.4 RC1? I'm trying and I get the following output: This is a marker file generated by the precompilation tool, and should not be deleted! I'm using: # fastcgi-mono-server2 --version fastcgi-mono-server2.exe 2.4.0.0 # xsp2 --version xsp2.exe 2.4.0.0 You probably precompiled your site to be run on a virtual path like /mysite and are trying to run it on / instead. -Gonzalo ___ Mono-list maillist - mono-l...@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Bug within ASP.NET WebControls?
Hello, I'm moving an application from a windows to mono. Today I got a problem while rendering a custom web control. This works fine on a windows machine. I use it on the aspx as: Institutional:ExceptionInfoNameEditor runat=server / And the contents of the control are basically: http://pastebin.com/m214a6c22 This control renders in MS .NET as: textarea name=ctl00$content$ctl02$Mid_StringEditor__name rows=2 cols=20 id=ctl00_content_ctl02_Mid_StringEditor__name/textarea span id=ctl00_content_ctl02_ctl00 style=color:Red;display:none;/spanspan id=ctl00_content_ctl02_ctl01 style=color:Red;display:none;/span But on Mono 2.2 I get the following exception: Object reference not set to an instance of an object Description: HTTP 500. Error processing request. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object at System.Web.UI.WebControls.Style.AddAttributesToRender (System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebControl owner) [0x0] at System.Web.UI.WebControls.WebControl.AddAttributesToRender (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.WebControls.TextBox.AddAttributesToRender (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.WebControls.WebControl.RenderBeginTag (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.WebControls.TextBox.Render (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at Institutional.WebComponents.Controls.StringEditor`1[Institutional.Core.ExceptionInfo].Render (System.Web.UI.HtmlTextWriter writer, Institutional.Core.ExceptionInfo t, Int32 renderCount, Boolean flipFlop) [0x0] at Institutional.WebComponents.Controls.BaseFieldControl`1[Institutional.Core.ExceptionInfo].Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at Institutional.WebComponents.Controls.BaseEntityItem`1[Institutional.Core.ExceptionInfo].Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.HtmlControls.HtmlForm.RenderChildren (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.HtmlControls.HtmlContainerControl.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.HtmlControls.HtmlForm.Render (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.HtmlControls.HtmlForm.RenderControl (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Page.RenderPage () [0x0] at System.Web.UI.Page.InternalProcessRequest () [0x0] at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0] Could I have some assistance? May this considered a bug? Is it already known? What should I do? If it's known, is there any quick workaround? Thank you for your time. -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Bug within ASP.NET WebControls?
Please don't use pastebin for mailing list posts, as those pastes usually expire too soon to be useful for other people looking for the same problem in the future. Yes, you're right, didn't think of that. BTW, I commented the following line: text.CssClass = CssClass; On my Render method, and the exception isn't thrown. Here's the code: public abstract class StringEditorT : BaseEntityFieldEditorT where T : IDescriptable { #region Fields Properties protected TextBox text = new TextBox(); public string Text { get { return text.Text; } set { text.Text = value; } } public bool Enabled { get { return text.Enabled; } set { text.Enabled = value; } } public int Length { get { return text.MaxLength; } set { text.MaxLength = value; } } public bool ReadOnly { get { return text.ReadOnly; } set { text.ReadOnly = value; } } public TextBox TextBox { get { return text; } } #endregion Fields Properties #region Events protected override void OnInit( EventArgs args ) { base.OnInit(args); text.ID = TargetName; Controls.Add(text); } protected override void Render( HtmlTextWriter writer, T t, int renderCount, bool flipFlop ) { text.CssClass = CssClass; SetCaption(t); foreach (Control control in Controls) { control.RenderControl(writer); } } private void SetCaption(T t) { if (Page.IsPostBack !string.IsNullOrEmpty(text.Text)) { // let's just use the post back value return; } text.Text = GetCaption(t); } #endregion Events #region Abstract Members protected abstract string GetCaption( T t ); protected abstract string TargetName { get; } #endregion }; On Mon, Feb 23, 2009 at 11:10 AM, Robert Jordan robe...@gmx.net wrote: Pedro Santos wrote: http://pastebin.com/m214a6c22 Please don't use pastebin for mailing list posts, as those pastes usually expire too soon to be useful for other people looking for the same problem in the future. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Sqlite debugging messages on Mono 1.2.3
Hi I just wanted to note that when using Mono.Data.SqliteClient on Mono 1.2.3, I get this kind of debugging message: Executing reader on sql 'SELECT A,B FROM C WHERE D = ?whatever' per every single sql reader sentence I have in my code (and it doesn't happen when running the same application against a MySQL server). It's only quite annoying, but I note it just in case anyway. Thank you, Pedro - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Basic authentication with HttpListener
Hi again! I have finally tried it under Microsoft .NET and the same code seems to be run correctly. I guess authentication is not implemented in System.Net.HttpListener. Pedro Santos Gomez [EMAIL PROTECTED] escribió: Hi! I'm having problems with enabling Basic authentication in System.Net.HttpListener. I am trying code from a lot of forums and so on, with no result. This code, for example: using System.IO; using System.Web; using System.Net; using System; public class A { static void Main(){ HttpListener listener = new HttpListener(); /* Here is the important code */ listener.AuthenticationSchemeSelectorDelegate += delegate{ Console.WriteLine(Asking for authentication scheme); return AuthenticationSchemes.Basic; }; /* end of important code */ listener.Prefixes.Add(http://*:1234/;); listener.Start(); HttpListenerContext context = listener.GetContext(); HttpListenerRequest request = context.Request; Console.WriteLine(Received: {0} {1} from {2},request.HttpMethod,request.Url,request.RemoteEndPoint); if(context.User == null){ Console.WriteLine(No user!); }else{ Console.WriteLine(context.User.Identity == null); HttpListenerBasicIdentity identity = (HttpListenerBasicIdentity)context.User.Identity; Console.WriteLine(Name = {0}; password = {1},identity.Name,identity.Password); } HttpListenerResponse response = context.Response; string responseString = HTMLBODY Hello world!/BODY/HTML; byte[] buffer = System.Text.Encoding.UTF8.GetBytes(responseString); response.ContentLength64 = buffer.Length; System.IO.Stream output = response.OutputStream; output.Write(buffer,0,buffer.Length); output.Close(); listener.Stop(); } } and entering in http://localhost:1234/ returns the Hello World... but it never says Asking for authentication scheme and context.User is null. And I don't find any way to force the browser to ask for authentication. Neither even entering in http://user:[EMAIL PROTECTED]:1234/ helps. Replacing the important code by: listener.AuthenticationSchemes = AuthenticationSchemes.Basic; does have the same effect. Did anybody manage to make this work under Mono? Thank you very much. By the way, I'm running: $ mcs --version Mono C# compiler version 1.2.2.1 $ mono --version Mono JIT compiler version 1.2.2.1, (C) 2002-2006 Novell, Inc and Contributors. www.mono-project.com TLS: normal GC:Included Boehm (with typed GC) SIGSEGV: normal Disabled: none from the Mono 1.2.2.1 generic Linux on x86 installer. - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Killing xsp softly
Hello! Is there a way to kill XSP softly? In a way that XSP will still call Application_End? Right now, I am doing: kill -9 XSP_PID BR -- Pedro Santos www.psantos.net ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Migrating ASP.NET
Hello, We are migrating our larger web application [1] from a Windows/IIS/MS SQL Server to Linux/Mono/PostgreSQL. Note that our application incorporates other two applications: flexwiki[2] and yaf[3]. We already have all this working very fine on Mono but we are two programmers, so we would like some advice on the administrantion part. :-) The server available to us, uses Plesk and apache. However, they said that Plesk does not like that someone messes around with the apache configuration. Does anyone has experience with Plesk/apache/mod_mono that can give us some help? The other option is simply using XSP. At this moment is there any reason why we should not use XSP? I've been using XSP for a while and I like it a lot. However, it seems that XSP does not create logs (like apache does, so that stats apps can operate over them). Any hints on this issue? Is there any reading material regarding this kind of migration and setting up the server? Thanks. [1] http://orionsbelt.zi-yu.com [2] http://flexwiki.com [3] http://yetanotherforum.net -- Pedro Santos www.psantos.net ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] MonoDoc
Hello, where can I get documentation about using MonoDoc to document my projects? This one[1] seems to be outdated. Thanks [1] http://people.mosaix.net/chris/tutorials/monodoc/monodoc-tutorial.html -- Pedro Santos www.psantos.net ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] MonoDoc
Humz... I am under the impression that monodoc had some webservices that allowed a user to generate documentation online (without the need to use MonoDoc). If not, in a project with programmers developing in both Windows(MS.net) and Linux(Mono), is Monodoc a good choice? Thanks. On Saturday 10 September 2005 12:15, you wrote: Pedro Santos wrote: Hello, where can I get documentation about using MonoDoc to document my projects? http://mono-project.com/Generating_Documentation I'm not sure if that's linked from anywhere now. The 'manuals docs' link at the top right of the site should probably point to http://mono-project.com/Documentation instead of the API docs (nudge nudge to someone who can fix that). -- Pedro Santos www.psantos.net ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Web Services and patents
Hi David, Thank for your answer. And, I know, and yes, I worry more about innovation than about patents :-) Once said that, in the following map: http://www.mono-project.com/Image:Monocomponentsmap.png I see that Soap Web Clients and Soap Web Servers have same colour as ADO.NET (which is not the cyan colour - called Patent free, neither the green colour - part of the Mono stack). I know that even the Patent free coloured components could be using patented code even by third parties, and I agree that this stuff should not worry as much as innovation. But, what I'm wondering is basically that, in the same way I might use GDA instead of ADO.NET, or GTK# instead of Windows Forms, there is any component safer (ok, no software is safe, but nobody says that GTK# could ever be removed from Mono as they do with Windows Forms -in the worst of worst cases, of course-, so maybe we can say that gtk# is safer than windows forms), than the Web Services from ASP.NET. And, if there is no one, what is the worst case that could happen? The fact that Novell itself uses this web services (for example here): http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ifolder/gaim-ifolder/src/GaimDomain/#dirlist gives me some security. I mean, all what I want is to have a solid answer to any question my project director could ask. And this is the point where my doubts are bigger, because I can't just tell him dont think about patents or other patents could destroy our project anyway. Thank you again :) --- David Waite [EMAIL PROTECTED] escribió: There is no application of knowledge on a computer (including writing a Hello, World application) which is completely safe from US patent lawsuit. There is nothing to prevent someone from having a patent against the concept of SOAP, or for that matter the concept of XML, or network-based data interchange. Whether or not these patents could be struck down in court is another matter. I suggest you worry less about patents and more about innovation. Otherwise you will spend so much time learning international patent law and researching patents that you will never produce anything. There is no guaranteed safe ground, no matter what programming language you write your implementation in, or which vendor designed the API you use. The only sanity comes from not letting the problems stop you from meeting your potential, and fighting tooth and nail the problems in the system every chance you get. -David Waite __ Renovamos el Correo Yahoo! 1GB de capacidad, nuevos servicios y más seguridad http://correo.yahoo.es ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Web Services and DIME
Hi, And in Mono I find that WSE1 at least is mostly implemented, but I don't find the Microsoft.Web.Services anywhere in version 1.1.7. In the SVN I can find the code, but I didn't find a way to use it. WSE1 is mostly unimplemented. There is some code, but nothing you can really use in an application. Ooops 0:-) , I misunderstood what says in Assembly: Microsoft.Web.Services in: http://www.go-mono.com/crypto.html Is this the only way to transfer files? If it is, any help on it? I fear there isn't any way other than POST. Well, you could also send the files as a byte array parameter, but you should only do it if the files are known to be small. Thanks then (also thanks to Robert, I'm probably using your answer). Anyway, what happens if I send a big file in a byte array? All what I've read is that it's not too nice for the XML parser, and that it's not an optimal solution because it send *much* more information that it should. I mean, I'm not going to do that, but if I offer a web method like: void method(byte [] data); is it risky in any way for my server if somebody sends a really big chunk of data (I guess the xml parser is in my server)? I don't imagine how could I control that before the petition has been done. It's just for curiosity. Thank you in advance, Pablo __ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Web Services and DIME
Hi all, I'd like to transfer files through Web Services (if possible, without sending them by parameter neither by programming a POST petition to a .aspx) to a XSP server. All I've found is that in .NET there are a couple of stacks: WSE1, WSE2, incompatible between them. And in Mono I find that WSE1 at least is mostly implemented, but I don't find the Microsoft.Web.Services anywhere in version 1.1.7. In the SVN I can find the code, but I didn't find a way to use it. Is this the only way to transfer files? If it is, any help on it? Thank you so much in advance, Pedro __ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Errors compiling gtkmozembed-sharp
Hello. I am getting errors compiling gtkmozembed-sharp. Am I missing something or is gtkmozembed-sharp SVN unstable at the moment? I have mono and gtk# SVN. I get this output: pre:~/mono-svn/gtkmozembed-sharp $ make Making all in sources make[1]: Entering directory `/home/pre/Programs/Mono/mono-svn/gtkmozembed-sharp/sources' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/pre/Programs/Mono/mono-svn/gtkmozembed-sharp/sources' Making all in gtkmozembed make[1]: Entering directory `/home/pre/Programs/Mono/mono-svn/gtkmozembed-sharp/gtkmozembed' mcs --unsafe --target library -r:/home/pre/bin/mono-svn//lib/mono/gtk-sharp-2.0/glib-sharp.dll -r:/home/pre/bin/mono-svn//lib/mono/gtk-sharp-2.0/pango-sharp.dll -r:/home/pre/bin/mono-svn//lib/mono/gtk-sharp-2.0/atk-sharp.dll -r:/home/pre/bin/mono-svn//lib/mono/gtk-sharp-2.0/gdk-sharp.dll -r:/home/pre/bin/mono-svn//lib/mono/gtk-sharp-2.0/gtk-sharp.dll \ ./NewWindowOrphan_handler.cs ./NewWindow_delegate.cs ./NewWindow_handler.cs AssemblyInfo.cs generated/*.cs -o gecko-sharp.dll ./NewWindow_delegate.cs(12) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' ./NewWindow_delegate.cs(45) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' ./NewWindow_delegate.cs(68) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' WebControl.custom(75) error CS1502: The best overloaded match for method 'void Gecko.WebControl.gtk_moz_embed_set_profile_path ( System.IntPtr, System.IntPtr)' has some invalid arguments WebControl.custom(75) error CS1503: Argument 0: Cannot convert from 'string' to ' System.IntPtr' WebControl.custom(75) error CS1501: No overload for method `gtk_moz_embed_set_profile_path' takes `2' arguments WebControl.custom(81) error CS1502: The best overloaded match for method 'void Gecko.WebControl.gtk_moz_embed_set_profile_path ( System.IntPtr, System.IntPtr)' has some invalid arguments WebControl.custom(81) error CS1503: Argument 0: Cannot convert from 'string' to ' System.IntPtr' WebControl.custom(81) error CS1501: No overload for method `gtk_moz_embed_set_profile_path' takes `2' arguments WebControl.custom(39) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' WebControl.custom(45) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' WebControl.custom(36) warning CS0618: 'GLib.Object.BeforeHandlers' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(37) warning CS0618: 'GLib.Object.BeforeSignals' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(39) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' WebControl.custom(39) warning CS0618: 'GLib.Object.BeforeSignals' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(40) warning CS0618: 'GLib.Object.BeforeHandlers' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(42) warning CS0618: 'GLib.Object.AfterHandlers' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(43) warning CS0618: 'GLib.Object.AfterSignals' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(45) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' WebControl.custom(45) warning CS0618: 'GLib.Object.AfterSignals' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(46) warning CS0618: 'GLib.Object.AfterHandlers' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(56) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' WebControl.custom(56) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' WebControl.custom(50) warning CS0618: 'GLib.Object.AfterHandlers' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(51) warning CS0618: 'GLib.Object.AfterSignals' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(53) warning CS0618: 'GLib.Object.BeforeHandlers' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(54) warning CS0618: 'GLib.Object.BeforeSignals' is obsolete: 'Replaced by GLib.Signal marshaling mechanism.' WebControl.custom(61) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' WebControl.custom(65) warning CS0618: 'GLib.SignalCallback' is obsolete: 'Replaced by GLib.Signal.' Compilation failed: 6 error(s), 23 warnings make[1]: *** [gecko-sharp.dll] Error 1 make[1]: Leaving directory `/home/pre/Programs/Mono/mono-svn/gtkmozembed-sharp/gtkmozembed' make: *** [all-recursive] Error 1 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Memory Usage
I would like to know how much memory is using some object that I use (let's call it Buu). This Buu is a very big object with lot's of complex fields. Are there any to get this information? I would like to know this at run time (OS performance couters and profilers are not an option cause this is a web aplication running on a remote server). From time to time, I serialize the Buu object(using BinaryFormatter). I am wondering if the size of the stream has some relation to the amount of memory that the object is using. For example, if I serialize Buu and I got a stream with 5 M, is the memory used by Buu less than 5 M? Or does BinaryFormatter performs some king of compression? Any more ideias? Thanks. -- Pedro Santos www.psantos.net ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] BinaryFormatter Issue
Hello. I Use BinaryFormatter to serialize an Object and it runs just fine. However, when I desserialize it, I get the following exception: Serializable objects must be marked with the Serializable attribute Any help on this? ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] BinaryFormatter Issue
On Sat, 2004-11-27 at 08:47 +, Pedro Santos wrote: Hello. I Use BinaryFormatter to serialize an Object and it runs just fine. However, when I desserialize it, I get the following exception: Serializable objects must be marked with the Serializable attribute Any help on this? Well, using SoapFormatter I got a better expcetion Message and find out I neglected to use [Serializable] in a nested class. Is this a bug? However, now I have another problem. I get the following exception form either IFormatter: System.Runtime.Serialization.SerializationException: The constructor to deserialize an object of type Chronos.Alliances.AllianceCollection was not found. And I have AllianceCollection like this: [Serializable] public class AllianceCollection : Hashtable { public AllianceCollection() { // ... some stuff } }; Any help? If I create a ctor with the SerializationInfo and StreamingContext I have other several problems. What's the best way to serialize AllianceCollection? ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] BinaryFormatter Issue
Oh!Just to say that SoapFormatter executes with no exceptions! And BinaryFormatter throws the following: PersistenceTests.init:0# System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.ArgumentNullException: null key Parameter name: key in 0x00072 System.Collections.Hashtable:PutImpl (object,object,bool) in 0x00019 System.Collections.Hashtable:Add (object,object) in 0x003e7 System.Collections.Hashtable:.ctor (System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) in (unmanaged) (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[]) in 0x4 (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[]) in 0x00097 System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) --- End of inner exception stack trace --- in 0x000fb System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) in 0x00021 System.Reflection.MethodBase:Invoke (object,object[]) in 0x00220 System.Runtime.Serialization.ObjectRecord:LoadData (System.Runtime.Serialization.ObjectManager,System.Runtime.Serialization.ISurrogateSelector,System.Runtime.Serialization.StreamingContext) in 0x0011c System.Runtime.Serialization.ObjectManager:DoFixups () in 0x00044 System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObject (System.IO.BinaryReader) in 0x000b1 System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGraph (System.IO.BinaryReader,bool,object,System.Runtime.Remoting.Messaging.Header[]) in 0x00191 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize (System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler) in 0x00017 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize (System.IO.Stream) in 0x00043 Chronos.Persistence.UniverseSerializer:load () in 0x005ed Chronos.Tests.PersistenceTests:init (Chronos.IPersistence) On Sat, 2004-11-27 at 09:50 +, Pedro Santos wrote: On Sat, 2004-11-27 at 08:47 +, Pedro Santos wrote: Hello. I Use BinaryFormatter to serialize an Object and it runs just fine. However, when I desserialize it, I get the following exception: Serializable objects must be marked with the Serializable attribute Any help on this? Well, using SoapFormatter I got a better expcetion Message and find out I neglected to use [Serializable] in a nested class. Is this a bug? However, now I have another problem. I get the following exception form either IFormatter: System.Runtime.Serialization.SerializationException: The constructor to deserialize an object of type Chronos.Alliances.AllianceCollection was not found. And I have AllianceCollection like this: [Serializable] public class AllianceCollection : Hashtable { public AllianceCollection() { // ... some stuff } }; Any help? If I create a ctor with the SerializationInfo and StreamingContext I have other several problems. What's the best way to serialize AllianceCollection? ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Int32
In 64 bits processor arquitectures(64BA) will Int32 still have 32 bits? Would that be a performance issue? And if we have 512BA? My issue is: wouldn't be better to have a C/C++ style int? Like IntPtr in the CLI? What are the benefits of a fixed 32 bit integer? Thanks. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] XSP Issues
Hello! I just installed the latest Mono and XSP (1.0.1) and I am having some strange behaviors: When I press ENTER XSP does not stop. However, If I make a request after pressing ENTER the browser says to me that there is no Web Server and XSP closes. I have tested this in some web applications I have and it's the same for all. On the other hand, I have a handler for the application end: protected void Application_End( object src, EventArgs e ) { Console.Write(Shuting down application... ); } This is never called. Better: I never got XSP to call that method since I remember (it's not just with this latest version). So, can I be doing something wrong to cause this strange behavior? I use a lot of Module's and Handler's. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Mono: Bridge from Windows to Linux?
Hello, I am here to share my experience in the portuguese .NET community. I have been a Mono user from version 0.3, and always have talked about mono in my blog. In the last few days, I have been asked several times on how to install Linux, what's the best distribuition to install, etc. This curiosity comes from Windows users that had never touched Linux. Mainly VB .NET programmers, but also C# programmers, that question them selfs if Mono is a valid .NET development environment, and want to try it. There where also some blog entries from the guys concerning the possibility of companies starting to use Mono and Linux, and they do not want to be left behind. I am curious about communitys from other countries, is this an isolated case? -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Some benchmarks
Hello, hello! I have an aplication with many, many objects in memory that I have to save/load to have persistence. I implemented an abstract framework that enables me to make several persistence implementations. At this point, I have implemented persistence in XML (I write, I read to DOM and parse -- can't use XmlSerializer cause I have some Hastables... :( ), and implemented with the help of the BinaryFormatter. Before saving, I transform all my OO model in some simple classes that contain only the necessary info to save/load. That's why I can apply a BinaryFormatter easily. I first tryed it in Microsoft .NET and found out that saving is much more slower than loading... I wonder why! On the other hand, the same test ou Mono/Linux got me that saving was faster than loading... Now, I would like to understand the results, so I ask these questions: 1) Is writing to a file very much slower than reading from a file in Windows? Does the oposite happens in Linux? 2) Any information on can add on this results? Are they expected results? Thanks. Running on Microsoft .NET, I got this: --- XmlPersistenceTester --- Alliances: 2 Rulers: 1011 Planets: 1011 Save time: 00:02:23.9421060 Load time: 00:00:44.6889300 Size: 4,81 MB in 13146 files --- BinaryPersistenceTester --- Alliances: 2 Rulers: 1011 Planets: 1011 Save time: 00:02:34.7549520 Load time: 00:00:47.3296395 Size: 10,2 MB in 13146 files Running on Linux, Mono JIT compiler version 0.95, I got this: --- XmlPersistenceTester --- Alliances: 2 Rulers: 1011 Planets: 1011 Save time: 00:01:07.6105670 Load time: 00:02:47.9479530 --- BinaryPersistenceTester --- Alliances: 2 Rulers: 1011 Planets: 1011 Save time: 00:01:20.1833240 Load time: 00:03:13.55315 -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] MS ASP .NET Bug
Hello, hello! I just found a bug in ASP .NET, I am at work and can't test this in Mono, so I wonder if it would happen in Mono too. The bug is simple, supose we have the following in an aspx: script runat=server void ProcessClick( object sender, EventArgs args ) { string sql = @script language='javascript'; sql += @alert('; sql += nome.Value; sql += ');; sql += @/script; // Here is the PROBLEM! this.RegisterClientScriptBlock( JJ, sql ); } /script The parser will only copy to the class definition the code from script runat=server to script. The problem is that he thinks that the /script literal is the tag end... So in the class definition we will have only: void ProcessClick( object sender, EventArgs args ) { string sql = @script language='javascript'; sql += @alert('; sql += nome.Value; sql += ');; sql += @ Witch produces a compiler error. Would this happen in Mono? If not, should it happen? ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Assembly.CodeBase
Hello. If I call CodeBase in Mono/Linux, I get: file:///path/to/assembly/assemly.dll In Microsoft .NET/Windows I get: file:///c:/path/to/assembly/assembly.dll Doens't MS.NET code have an extra '/' afer 'file:' ? I need to isolate the URL from the CodeBase, and this way I can't have a way that works everywhere. Because Linux I have to remove `file://`, and in win `file:///`. Any workaround? I would not want to be checking in with operating system I am running. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] when is Application_End called?
Hello. When I press Enter to end XSP will Application_End be called? This is crutial for my application. I have this in my application class: protected void Application_End( object src, EventArgs e ) { Console.Write(Shuting down application... ); UserUtility.bd.resetUserRulerId(); Console.WriteLine(Done); } This must be called! And it's not. I am using xsp.exe 0.10.0.0, on Mono JIT compiler version 0.31. Thanks. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] Database Schema
Hello. What's the best way to get the Database schema? The only way I see is to perform a query to a DataSet and get get the schema from the DataSet. Is there any other way? I want to generate an application to CRUD a database. For example, to generate the form/page to modify a row I would create one control for each field (based on the filed type), and then update the Database on submit. Whats the best way to accomplish this? Also, where can I get you code to generate typed Dataset's? I think it would help me on this task. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] ASP.NET/XSP problem
Hi. I have an application that usas several languages, based on the current User. In user preferences, when the user changes the language and submits, I get an exception that I do not understand: //- Server error in '/' application String returned by HttpRuntime.GetResourceStringFromResourceManager Description: Error processing request. Error Message: HTTP 500. String returned by HttpRuntime.GetResourceStringFromResourceManager //- What can be causing this? -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] ASP .NET bug?
I do not know if this is a bug, or simply something not suported. I have: %@ Register TagPrefix=orion Namespace=Alnitak Assembly=Alnitak % %@ Register TagPrefix=orion TagName=LoginControl Src=../controls/LoginControl.ascx % Notice that they both have the same TagPrefix. When I use on the page orion:LoginControl runat=server /, this control is not rendered. If I change the TagPrefix to a diferent one, it is rendered. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] foreach issues
Hi, I was wondering what would be faster when using foreach: an ArrayList ou an Array. At first, would be expected that foreach with an ArrayList would be slower than with an array, and it is a lot slower. But, doesn't foreach see the Array and the ArrayList has a IEnumerable? Whouldnt it be the same in the foreach prespective? It appears not to be, If I do the same, but pass an IEnumerable to the foreach it is alot faster, in this case the foreach with the ArrayList is faster. The test is in attachement. This were the times: bash-2.05b$ mono test.exe foreach list: : 00:00:00.0159550 foreach array:: 00:00:00.420 IEnumerable list : 00:00:00.830 IEnumerable array : 00:00:00.0001040 Can someonte elaborate on this? I am curious. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... using System; using System.Collections; public class Test { private static ArrayList povoate( int quantity ) { ArrayList array = new ArrayList(); for( int i = 0; i quantity; ++i ) { array.Add( i + ); } return array; } private static void doSomething( IEnumerable e ) { string tmp; foreach( string s in e ) { tmp = s; } } public static void Main( string[] args ) { ArrayList list = povoate(1000); // fazer um clone string[] array = (string[]) ((ArrayList)list.Clone()).ToArray(typeof(string)); // jitar doSomething( new string[] {} ); string tmp; DateTime t1 = DateTime.Now; foreach( string s in list ) { tmp = s; } DateTime t2 = DateTime.Now; foreach( string s in array ) { tmp = s; } DateTime t3 = DateTime.Now; doSomething( list ); DateTime t4 = DateTime.Now; doSomething( array ); DateTime t5 = DateTime.Now; Console.WriteLine(foreach list: : {0}, t2 - t1); Console.WriteLine(foreach array:: {0}, t3 - t2 ); Console.WriteLine(IEnumerable list : {0}, t4 - t3); Console.WriteLine(IEnumerable array : {0}, t5 - t4); } }; signature.asc Description: This is a digitally signed message part
[Mono-list] NUnit and gnunit problems
Hi, I am playing around with NUnit in Mono and I have some problems. I downloaded NUnit for Mono from the NUUnit home page. The first wierd thing happens when I run NUnit tests: // bash-2.05b$ mono nunit-console.exe nunit.tests.dll NUnit version 2.1.5 Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole. Copyright (C) 2000-2003 Philip Craig. All Rights Reserved. OS Version: Unix 5.1.2600.0Mono Version: 1.1.4322.573 F..F.F..F.F.FF.F.F.F.F.F.F.F.F.F.F.F...F.F.F.F.F.F.F..F.F.F..GC Warning: Finalization cycle involving d659260 Segmentation fault // Then I tried a simple test program: using System; using NUnit.Framework; [TestFixture] public class TextF { [Test] public void buu() { Assert.IsTrue(true); } }; Compiled: bash-2.05b$ mcs a.cs -r:nunit.framework.dll -t:library Compilation succeeded But when I run it: // bash-2.05b$ mono ../../downloads/www/nunit/NUnit-2.1.5/bin/nunit-console.exe a.dll NUnit version 2.1.5 Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, C harlie Poole. Copyright (C) 2000-2003 Philip Craig. All Rights Reserved. OS Version: Unix 5.1.2600.0Mono Version: 1.1.4322.573 . Tests run: 1, Failures: 0, Not run: 0, Time: 0.055477 seconds Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. //- Then I tryed gnunit, I loaded the a.dll test assemlby, but I got a file not found exception (note that the file exist): System.IO.FileNotFoundException: File '/home/pre/tmp/unit-test/a.dll' not found. in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1c) [0x4009333c] in (unmanaged) /usr/local/lib/libmono.so.0 [0x400b6963] in 0x0006c (wrapper remoting-invoke-with-check) System.AppDomain:LoadAssembly (string,System.Security.Policy.Evidence) in 0x0006b System.AppDomain:Load (string) in 0x00058 (wrapper remoting-invoke-with-check) System.AppDomain:Load (string) in 0x0001d System.Reflection.Assembly:Load (string) in 0x0001f Mono.NUnit.GUI.AssemblyStore:Load () Any ideias? -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] XSP and Mono-0.31 bug
Hi. Since I upgraded from mono-0.30 to mono-0.31 I am having some problems with XSP. I all runs fine, but when I press ENTER to quit, I get exceptions or the program crashes. Example: bash-2.05b$ run-orionsbelt Listening on port: 8080 Listening on address: 0.0.0.0 Root directory: /home/pre/Projects/orionsbelt/alnitak Hit Return to stop the server. Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. Sometimes I get errors in the sokect Finalize call also. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
Re: [Mono-list] gdiplus
Well, I am having some troubles. I just installed mono-0.31, libgdi, wine, etc. I am just running a simple Hello World and I got this: bash-2.05b$ mono h.exe Unhandled Exception: System.EntryPointNotFoundException: GdipCreateFontFamilyFromName in 0x00053 (wrapper managed-to-native) System.Drawing.GDIPlus:GdipCreateFontFamilyFromName (string,intptr,intptr) in 0x0007c System.Drawing.FontFamily:.ctor (string,System.Drawing.Text.FontCollection) in 0x00012 System.Drawing.FontFamily:.ctor (string) in 0x00056 (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (string) in 0x0005b System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool) in 0x00028 System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in 0x00083 (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in 0x00039 System.Drawing.Font:FromHfont (intptr) in 0x00018 System.Windows.Forms.Control:get_DefaultFont () in 0x00055 System.Windows.Forms.Control:get_Font () in 0x0002d System.Windows.Forms.Control:OnHandleCreated (System.EventArgs) in 0x00026 System.Windows.Forms.Form:OnHandleCreated (System.EventArgs) in 0x0025a System.Windows.Forms.Control:CreateHandle () in 0xa System.Windows.Forms.Form:CreateHandle () in 0x00033 System.Windows.Forms.Control:CreateControl () in 0x0004f (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:CreateControl () in 0x00015 System.Windows.Forms.Application:Run (System.Windows.Forms.Form) in 0x00024 Microsoft.Samples.WinForms.Cs.SimpleHelloWorld.SimpleHelloWorld:Main (string[]) Segmentation fault On Fri, 2004-03-19 at 12:24, Ravindra wrote: Hello Kevin, On Fri, 2004-03-19 at 17:22, Kevin Jones wrote: I've installed the libgdiplus RPM, I assume from your reply that this isn't enough? Actually, I meant you do not need gdiplus.dll separately. You need this dll, only if you are running mono on windows. On Linux, you just need libgdiplus library as all the calls to gdiplus.dll are passed to libgdiplus library. So, just go ahead and try it out :-) If you are facing any problems in using it, please let us know the exact error with the relevant details. Hope this helps! -Ravindra. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
Re: [Mono-list] gdiplus
Well, I am having some troubles. I just installed mono-0.31, libgdi, wine, etc. I am just running a simple Hello World and I got this: bash-2.05b$ mono h.exe Unhandled Exception: System.EntryPointNotFoundException: GdipCreateFontFamilyFromName in 0x00053 (wrapper managed-to-native) System.Drawing.GDIPlus:GdipCreateFontFamilyFromName (string,intptr,intptr) in 0x0007c System.Drawing.FontFamily:.ctor (string,System.Drawing.Text.FontCollection) in 0x00012 System.Drawing.FontFamily:.ctor (string) in 0x00056 (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (string) in 0x0005b System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool) in 0x00028 System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in 0x00083 (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in 0x00039 System.Drawing.Font:FromHfont (intptr) in 0x00018 System.Windows.Forms.Control:get_DefaultFont () in 0x00055 System.Windows.Forms.Control:get_Font () in 0x0002d System.Windows.Forms.Control:OnHandleCreated (System.EventArgs) in 0x00026 System.Windows.Forms.Form:OnHandleCreated (System.EventArgs) in 0x0025a System.Windows.Forms.Control:CreateHandle () in 0xa System.Windows.Forms.Form:CreateHandle () in 0x00033 System.Windows.Forms.Control:CreateControl () in 0x0004f (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:CreateControl () in 0x00015 System.Windows.Forms.Application:Run (System.Windows.Forms.Form) in 0x00024 Microsoft.Samples.WinForms.Cs.SimpleHelloWorld.SimpleHelloWorld:Main (string[]) Segmentation fault On Fri, 2004-03-19 at 12:24, Ravindra wrote: Hello Kevin, On Fri, 2004-03-19 at 17:22, Kevin Jones wrote: I've installed the libgdiplus RPM, I assume from your reply that this isn't enough? Actually, I meant you do not need gdiplus.dll separately. You need this dll, only if you are running mono on windows. On Linux, you just need libgdiplus library as all the calls to gdiplus.dll are passed to libgdiplus library. So, just go ahead and try it out :-) If you are facing any problems in using it, please let us know the exact error with the relevant details. Hope this helps! -Ravindra. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
Re: [Mono-list] gdiplus
Hi Jordi: # pkg-config --modversion libgdiplus 0.2 # pkg-config --modversion cairo 0.1.18 This is the example: //- namespace Microsoft.Samples.WinForms.Cs.SimpleHelloWorld { using System; using System.Windows.Forms; public class SimpleHelloWorld : Form { [STAThread] public static int Main(string[] args) { Application.Run(new SimpleHelloWorld()); return 0; } public SimpleHelloWorld() { this.Text = Hello World; } } } And this is the complete output: //- $ mono h.exe When you are running with a native NT directory specify 'Profile=profiledirectory' or disable loading of Windows registry (LoadWindowsRegistryFiles=N) Unhandled Exception: System.EntryPointNotFoundException: GdipCreateFontFamilyFromName in 0x00053 (wrapper managed-to-native) System.Drawing.GDIPlus:GdipCreateFontFamilyFromName (string,intptr,intptr) in 0x0007c System.Drawing.FontFamily:.ctor (string,System.Drawing.Text.FontCollection) in 0x00012 System.Drawing.FontFamily:.ctor (string) in 0x00056 (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (string) in 0x0005b System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool) in 0x00028 System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in 0x00083 (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in 0x00039 System.Drawing.Font:FromHfont (intptr) in 0x00018 System.Windows.Forms.Control:get_DefaultFont () in 0x00055 System.Windows.Forms.Control:get_Font () in 0x0002d System.Windows.Forms.Control:OnHandleCreated (System.EventArgs) in 0x00026 System.Windows.Forms.Form:OnHandleCreated (System.EventArgs) in 0x0025a System.Windows.Forms.Control:CreateHandle () in 0xa System.Windows.Forms.Form:CreateHandle () in 0x00033 System.Windows.Forms.Control:CreateControl () in 0x0004f (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:CreateControl () in 0x00015 System.Windows.Forms.Application:Run (System.Windows.Forms.Form) in 0x00024 Microsoft.Samples.WinForms.Cs.SimpleHelloWorld.SimpleHelloWorld:Main (string[]) On Fri, 2004-03-19 at 14:49, Jordi Mas wrote: En/na Pedro Santos ha escrit: Well, I am having some troubles. I just installed mono-0.31, libgdi, wine, etc. I am just running a simple Hello World and I got this: Hello Pedro, Can you make sure that you are running libgdiplus 0.2? If this is the case, please send me the example that you are trying to run and gives you that error. Thanks Pedro, Jordi, -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] Microsoft ASP .NET Bug
Hi there! I just heard of a peculiar bug in a ASP .NET validator. I tryed to test it on mono, but it looks like mono isn't performing client validation. Well, to start, just create an aspx with: form runat=server table tr td asp:TextBox ID=tbFirst Runat=server/asp:TextBox asp:RangeValidator Runat=server ID=rfv Type=Integer ControlToValidate=tbFirst MinimumValue=0 MaximumValue=5 Display=Dynamic ErrorMessage=This is a really long error message blah blah blah blah. /asp:RangeValidator/td /tr tr tdasp:TextBox ID=tbSecond Runat=server/asp:TextBox/td /tr /table /form Now, just follow the instructions: Throw that in an asp.net page and run it. Resize the IE window until it is just a little bigger than the controls. It needs to be small enough that when the validator is tripped the text wraps to the next line. Type something in the top text box that will trip the validator. Before tripping the validator move the mouse cursor over the upper box and slowly move it down towards the lower box. When the cursor is about half way between the boxes it will switch from a pointer to a text insert cursor. When it does this, single click at that location. You will now be able to type in the validator label. You will also be able to delete the validator text. Best of all, you can even delete the text box. Yeah, baby! I could not test it, I do not know if is a general validator bug, or an only-in-IE bug, or whatever. On the other hand, is it normal that Mono isn't performing client side validation? -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] Web.config and Custom Configuration Section Handler
I get a: System.Configuration.ConfigurationException: Cannot get Type for Alnitak.OrionSectionHandler,Alnitak() while XSP is parsing Web.config. Alnitak.OrionSectionHandler derives from NameValueFileSectionHandler. configSections sectionGroup name=OrionGroup section name=databasetype=Alnitak.OrionSectionHandler,Alnitak / section name=pagePath type=Alnitak.OrionSectionHandler,Alnitak / /sectionGroup /configSections OrionGroup database add key=connectionString value=asd / /database pagePath add key=basePage value=/default.aspx / /pagePath /OrionGroup This works fine with Microsoft .NET. Am I doing something wrong or it's a bug? -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] Where to get Mono
I can't get Mono channel listed in Red Carpet... is it down? Is there some other place to get it? (SuSE9.0) -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] -doc
Does mcs generate the XML documentation file? I run it with -doc:buu.xml, but buu.xml is not created. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] NAnt
Hi, I am having several dificulties running nant in Linux/Mono. The version in mcs throws a lot of exceptions, and I get several Win32 related errors when using the latest nant. Does anyone that use NAnt care to give some guidelines? Tanks. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] ASP .NET Debug/Trace
Hi. I am wondering about the implemented debug facilities. * Can we access a generated .cs file relative to the compiled aspx assemby? In what directory are these dlls stored? * I can not get any trace output (page and application relative). Is it not implemented yet? Having Trace.Warn(buu,buu) throws a null pointer exception, and this is a major problem because of win compatibility. * Is there support to web.config and machine.config files? I am using XSP at the moment. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
Re: [Mono-list] ASP .NET Debug/Trace
%@ Page Language=C# Trace=True % html body % Trace.Warn(Buu,Buu); % /body /html I was wondering in the code when I notice that Trace property in System.Web.UI.Page is not initialized with an instance of TraceContext (so that code throws a null reference execption). I also noticed that all the TraceContext methods (Warn, Write) eventualy throw a NotImplementedException. You guys could create an instace of TraceContext, so that the programmer would be notified that this resource is not implemented. But that would lead to incompatibility with win code... :P -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part