AW: [Mono-list] File IO Append
Hello Tracy, -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von Tracy Barlow Gesendet: Mi 26.05.2004 03:17 An: Mono-List Cc: Betreff: [Mono-list] File IO Append I log any errors in my web application to a text file. I have noticed that under Mono 0.91 the file is no longer being appended, instead the file is being overwritten. I recognized the same behaviour when opening a FileStream and using it with a StreamWriter. It works when you let the StreamWriter open the file. Code that shows this bug: FileStream fs = new FileStream (filename, ...); StreamWriter sw = new StreamWriter (fs, ...); Workaround: StreamWriter sw = new StreamWriter (filename, ...); HTH, Joerg
Re: [Mono-list] Linux (etc) .NET Stub
http://www.osnews.com/story.php?news_id=6795 2nd tip /Fredrik On Tue, 2004-05-25 at 15:50, Martin Olsson wrote: Hi Mono-guys, I saw in the FAQ that mono apps are called using mono hello.exe but in Windows you can run them directly because the hello.exe program is essentially just a stub that kicks the interpreter going. Now, I read in the FAQ that there is a hack which avoids the mono hello.exe problem but do you guys have any plans to implement real Linux/MacOS/HP-UX stubs? They would be basically the same as the Win dows .NET .exe files but they would be native to their respective system. Is anyone working on that? Regards, /m ___ 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
Re: [Mono-list] webservices / pb
oui, mais jaime pas trop les packages, pour moi ceszt juste une faco n de decouvrir quand cest necessaire (pour aller plus vite). je compile toujours les sources et je fais un petit checkinstall -D (je te le conseille ;) ) les deps sont bonnes je pense? Pour icu cest le 2.8 par les sources ! pour la glib cest la version debian sid pour pkgconfig cest pareil et pour la libc cest gcc3.4 par les sources jai u de gros pb materiels sur la machine entre la carte mere le proc et la ram qui maintenant sont neuves. Je navazis aps totalement refais le systeme de fichier mais juste formaté / /usr et /var /tmp /boot /lib /opt (et oui jai dotre parts apres mais secret professionnel ;-) ) pour reinstall. La je vais faire un petit wipe pour eraser tout ce qui ya comme cochonnerie restante sur le dd pour tester! cest long 35 passes mais apres je serais tranquille! donc je te tiens au courant.Des que la distrib d'accueil est prête. Jean-Marc André [EMAIL PROTECTED] a écrit : Essaye d'installer les package pré-compilés pour ta distrib. J'ai vu que Jonathan Stowe t'avais conseillé un site pour Debian. http://pkg-mono.alioth.debian.org/ Mono est toujours en cours de développement et les Makefiles ne sont pas encore très au point. Personnellement, je compile depuis CVS et il arrive fréquement que le processus n'arrive pas jusqu'au bout. Il faut prendre son mal en patience et attendre la prochaine version. Quoi qu'il en soit, je n'ai rencontré aucun problème pour compiler et installer mono-0.91 sur ma FC1 (configure --prefix=/tmp/mono; make; make install). Es tu sûr d'avoir installé les dépendances (icu, libicu...) ? PS: Ce n'est pas la peine de faire suivre ce message sur la liste. KiOrKY wrote: gt;apparement tu connais bien mono et tu parle francais... gt;est ce que par hazard tu pourrais maider au sujet de ca: http://bugzilla.ximian.com/show_bug.cgi?id=58945 gt; gt;ca me prends la tete depuis 2 semaines, je sais plus quoi faire. Jai deja reinstall le systeme entierement mais ca ny a rien fait. gt; gt;Jean-Marc André lt;[EMAIL PROTECTED]gt; a écrit : gt; gt; gt; gt;gt;Le fichier INSTALL dans le package mod_mono est très bien fait. gt;gt;Il explique en détail comment compiler et exécuter des services web. gt;gt; gt;gt;KiOrKY wrote: gt;gt; gt;gt;amp;gt;ho, gt;gt;amp;gt;how work the webserivces on mono? gt;gt;amp;gt;where can i find tutorial? gt;gt;amp;gt;regards gt;gt;amp;gt; gt;gt;amp;gt; gt;gt; gt;gt;-- gt;gt;Jean-Marc ANDRE gt;gt; gt;gt; gt; gt; gt; -- Jean-Marc ANDRE Tel: 06 14 34 40 06 -- - Gloire au monde libre- I{ i () r |{ Y Debian User - -- Mathieu PASQUET -- Testeur Debian SID -- irc: #debian-fr / irc.freenode.net port: 6667 -- Site: www.fr.debian.org - ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] mod_mono and SSL
El mié, 26-05-2004 a las 07:49, DI Mag. Rainer Burgstaller escribió: Hi Gonzalo thanks for the quick reply. I now changed it according to your template but it still does not work. Although, it looks better now (i.e. mod-mono-server.exe is now started) I still dont get a reply. It might be important to mention that I am using apache2. Here is my current configuration: Listen 443 VirtualHost _default_:443 ServerAdmin [EMAIL PROTECTED] ServerName webmail.foo.com DocumentRoot /share/secure-web SSLEngine on SSLCertificateKeyFile /etc/apache2/ssl/server.key SSLCertificateFile /etc/apache2/ssl/server.crt SSLCipherSuite bar Alias /mono /share/secure-web/mono MonoApplications /mono:/share/secure-web/mono MonoPath /usr/local/lib/mono/1.0:/usr/local/lib/mono/2.0 This path is incorrect. You should use /usr/local/lib. MonoExecutablePath /usr/local/bin/mono MonoServerPath /usr/local/bin/mod-mono-server.exe SetEnvIf User-Agent .*MSIE.* nokeepalive ssl-unclean-shutdown Directory /share/secure-web Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all /Directory Directory /share/secure-web/mono SetHandler mono /Directory ErrorLog /var/log/apache2/secure-error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/secure-access.log combined ServerSignature On /VirtualHost When I do lynx https://localhost/mono I get Alert!: Unexpected network read error; connection aborted. Is there any way to get a log from mono? Maybe somethings crashing there? any suggestions? Mmm, until I add a --logfile option (i'll do soon), you can do: -Remove /tmp/mod_mono_server -As any user run: * umask * mono [same parameters as mod_mono sets when running mod-mono-server] This way you can see the output from mod-mono-server. Also, as always, check the permissions. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Component services
Hi I ask myself about: How do the component services work in mono? where can we give the parameters? Regards -- - Gloire au monde libre- I{ i () r |{ Y Debian User - -- Mathieu PASQUET -- Testeur Debian SID -- irc: #debian-fr / irc.freenode.net port: 6667 -- Site: www.fr.debian.org - ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Monodevelop 0.2
You're missing gtkmozembed (now renamed gecko-sharp). I'd advise you to move to Beta 1 (we have RPMs for Fedora Core 1 or you can use yum or even better Red Carpet). You'll find most what you need there. Erik On May 26, 2004, at 10:07 AM, [EMAIL PROTECTED] wrote: Hi, I've Mono 0.31 on Linux Red Hat Fedora Core 1. I try to install MonoDevelop 0.2, but when I lunch ./configure, I obtain this: # [EMAIL PROTECTED] monodevelop-0.2]# ./configure --prefix='/usr' . . checking for mozilla-gtkmozembed = 1.2... Package mozilla-gtkmozembed was not found in the pkg-config search path. Perhaps you should add the directory containing `mozilla-gtkmozembed.pc' to the PKG_CONFIG_PATH environment variable No package 'mozilla-gtkmozembed' found Configuration summary * Installation prefix = /usr * GNOME prefix = /usr * Gtk# 0.18: yes * gnomevfs 2.0: yes * gtkmozembed 1.2: no * gtksourceview 0.7: yes * gtksourceview-sharp 0.1: yes * mono 0.31: yes * monodoc 0.12: yes * mono-debugger 0.6: yes NOTE: if any of the above say 'no' you may install the corresponding development packages for them, and rerun autogen.sh. If you are sure the proper libraries are installed, use PKG_CONFIG_PATH to point to their .pc file What can I do? Thanks, Valentina. ___ 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
Re: [Mono-list] Server.Transfer does not work
El mié, 26-05-2004 a las 07:21, Tracy Barlow escribió: Server.Transfer is supposed to accept either a single string parameter, or a string and a boolean value. When I attempt to pass a single string parameter Server .Transfer crashes with the following message. Server.Transfer Cannot cast from source type to destination type. Can you create a bug report and attach a test case in http://bugzilla.ximian.com ? (read http://www.go-mono.com/bugs.html if you've never filed a bug report before). -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Server.Transfer does not work
Sorry, wrong file ;) -- wbr, Sergey 'bopm' Moiseev. On Wed, 26 May 2004, Gonzalo Paniagua Javier wrote: El mi, 26-05-2004 a las 07:21, Tracy Barlow escribi: Server.Transfer is supposed to accept either a single string parameter, or a string and a boolean value. When I attempt to pass a single string parameter Server .Transfer crashes with the following message. Server.Transfer Cannot cast from source type to destination type. Can you create a bug report and attach a test case in http://bugzilla.ximian.com ? (read http://www.go-mono.com/bugs.html if you've never filed a bug report before). -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list Rotator.ascx.cs Description: Binary data
Re: [Mono-list] CodePage 1251 with Beta1
El mar, 11-05-2004 a las 18:12, Sergey Smirnov escribió: I'm using Mono on ASPLinux 9.2 (russian Fedora1 clone) with russian locale (cp1251 codepage) %@ Page CodePage=1251 % In Mono beta 1 this directive causes error unsupported codepage. The declaration in web.config globalization requestEncoding=windows-1251 Encoding=windows-1251 culture=ru-Ru uiCulture=ru-Ru / not working too, but in 0.31 it' OK. It works in CVS. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] mcs + CP1251
El mié, 26-05-2004 a las 19:24, bopm escribió: Sorry, wrong file ;) Please, reply to the same thread that you started. The file you attached is encoded with Little-endian UTF-16 Unicode and has no markers, so gedit/gvim cannot edit it and mcs cannot read it. However, the codepage for UTF-16 is 1200. So you can do: mcs -r:System.Data.dll -r:System.Drawing.dll -r:System.Web.dll -t:library -codepage:1200 Rotator.ascx.cs and it will compile. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] info on configuring mod_mono / mod-mono-server.exe - long...
Hi Chris! First of all, thanks for testing everything and tell everyone about your experience. El mié, 26-05-2004 a las 23:24, Chris Turchin escribió: Hi, it seems like every time I update xsp/mod_mono from cvs, I get to start over from zero again and reconfigure everything. Okay, perhaps that is the price of living on the cutting edge of software development, I can live with that. But it occurred to me today, things that used to work no longer do, and some things that should work still do not seem to, or not as one might expect. And I have no idea which is which... The one thing that really bothers / overwhelms me right now is the enormous variety of options available for configuring mod_mono / mod-mono-server.exe. Here I would like to just list off a few various options, I have discovered / stumbled over in the past few weeks which I wrote down today... The list is long, but in fact, if mod_mono has the same PREFIX as mono and xsp, you only need MonoApplications or MonoApplicationsConfigFile or MonoApplicationsConfigDir. The rest of the options have a sane default. [...] MonoApplicationsConfigFile file ### cool, a configuration file with an undocumented syntax. here is the syntax for those who would like to know: Ouch, this is fairly new and I have not documented it yet. I'll do it today. There's a sample in xsp/test, but well, that's not a public known location for it. apps web-application name{appname}/name vhost{virtual host for application}/vhost vport{port for the application}/vport vpath{virtual directory in apache}/vpath path{physical path to aspx files}/path /web-application /apps This I learned by trial and error today: if you do not need a setting (e.g. vhost or vport), get rid of the entire element! an emtpy element value e.g. vhost/vhost is does bad things... I will fix this too. ApplicationConfigDir Add ApplicationConfigDir and you can have a whole slew of config files with an undocumented syntax and undocumented naming convention to configure your webapps with... (they need to be named *.webapp, btw...). mod-mono-server.exe.config Same here, sorry. ## Almost forgot all about that one! The mod-mono-server.exe.config file which also has some settings and configuration options. I have to admit: i had forgotten about the settings here entirely, and the fact that blogx was being registered as an application twice (once here and once in httpd2.conf) was a source of strangeness in my setup i suspect...) Some settings here seem no longer supported - at least i get the message --applications option is depreciated when starting mod-mono-server.exe as a result of the MonoApplications setting in my config - but this was at least a good hint that i had better grep -R for blogx in /etc and /usr and /usr/local (I don't use it, but just in case) and /data/web and probably also /var/www (since that is where .wapi/ wants to live now) and maybe also /home - because _somewhere_ it is being read/referenced for the configuration and I had no idea where... so i did this, found that and removed it from there... For the record, these are the settings one can configure via mod-mono-server.exe.config: MonoApplications -- depreciated MonoServerRootDir -- analog MonoDocumentRootDir from httpd2.conf MonoServerDefaultIndexFiles -- e.g. index.aspx, if left blank it defaults to: index.aspx, Default.aspx, default.aspx, index.html, index.htm MonoApplicationsConfigDir -- analog httpd2.conf option MonoApplicationsConfigFile -- analog httpd2.conf option UnixSocketFileName -- analog MonoUnixSocket httpd2.conf option perhaps one could consolidate the naming in these two places? Right. Adding to my TODO list. Command Line Options to mod-mono-server.exe ### Most if not all settings above can be set via command line. See APP. 1 below for the output of mod-mono-server.exe --help More Useful references to mod_mono mod-mono-server.exe stuff include ## http://www.go-mono.com/archive/xsp-0.10.html -- good config info http://www.go-mono.com/asp-net.html#mod_mono -- general info I'll update this too. http://www.go-mono.com/faq.html#asp -- general info http://localhost/server-info -- your own module configuration ;-) http://apacheworld.org/modmono/ -- very old. That's the web page for Daniel Ridruejo's page. Really outdated info in there. http://primates.ximian.com/~gonzalo/mono/blog/index.php -- Gonzalo's blog [...] Case One: start mod-mono-server.exe via httpd2.conf with MonoRunXSP: ** doesn't work for me currently. following appears in err_log: [Wed May 26 21:30:00 2004] [error] Not running mod-mono-server.exe
[Mono-list] Custom marshaler lookup regression?
The problems I reported two days ago with incorrect values being passed into unmanaged code from custom marshalers have been fixed in CVS, but now I have run up against something that feels very familiar. Four months ago, I reported a problem in Mono 0.29 with inter-assembly lookups of custom marshalers associated with delegates: http://lists.ximian.com/archives/public/mono-list/2004-January/017851.html This was fixed in Mono 0.30. However, with today's 0.92 snapshot (mono-0.92.20040526), I am having *exactly* the same problems I did back in January. Essentially, my custom marshalers are not being found if they are not all in the same assembly. Is this a regression in Mono, or am I doing something wrong? I have recompiled everything I am using with the runtime from today's snapshot. -Patrick -- Patrick L. Hartling | Research Assistant, VRAC [EMAIL PROTECTED]| 2274 Howe Hall Room 2624 http://www.137.org/patrick/ | http://www.vrac.iastate.edu/ PGP: http://wwwkeys.gpg.cz:11371/pks/lookup?op=getsearch=0xEBF86398 signature.asc Description: This is a digitally signed message part
[Mono-list] missing reference
From my web service I want to call a class in a dll I have put the using statement in the code but how do I specify the reference to the dll for my asmx file? thanks for help so far --- ABS Web Site: www.abs.gov.au ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Monio Bets1 Testing on Mandrake 9.2
I downloaded the source for Mono Runtime 0.91 (mono-0.91.tar.gz) from http://www.go-mono.com/download.html, and built it, but it makes no difference. -- Regards Tracy Barlow TracyAnne Software Phone 07 4124 5092 Mobile 0416 00 38 61 Email [EMAIL PROTECTED] Webwww.tracyannesoftware.com/ ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] missing reference
El jue, 27-05-2004 a las 05:01, Peter Foley escribió: From my web service I want to call a class in a dll I have put the using statement in the code but how do I specify the reference to the dll for my asmx file? Look for the documentation of @Assembly directive. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] re: referencing a dll
I tried putting %@ Assembly Name=ABSSecurity.dll % in my asmx file but I get the error that the dll can't be found. It is is the same directory as the asmx file. Is this right? --- ABS Web Site: www.abs.gov.au ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] re: referencing a dll
El jue, 27-05-2004 a las 06:00, Peter Foley escribió: I tried putting %@ Assembly Name=ABSSecurity.dll % in my asmx file but I get the error that the dll can't be found. It is is the same directory as the asmx file. Is this right? No, you must use the assembly display name, not the file name, ie., just ABSSecurity. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] re: referencing a dll
tried that - no good does the dll have to be in a particular directory? permissions? do i need to specify it's namespace? |+ || Gonzalo | || Paniagua | || Javier| || [EMAIL PROTECTED]| || n.com| ||| || 27/05/2004| || 02:30 PM | || Please respond| || to| || gonzalo.lists | ||| |+ | || | To: [EMAIL PROTECTED]| | cc: (bcc: Peter Foley/Staff/ABS) | | Subject: Re: [Mono-list] re: referencing a dll| | El jue, 27-05-2004 a las 06:00, Peter Foley escribi --- ABS Web Site: www.abs.gov.au ó: I tried putting %@ Assembly Name=ABSSecurity.dll % in my asmx file but I get the error that the dll can't be found. It is is the same directory as the asmx file. Is this right? No, you must use the assembly display name, not the file name, ie., just ABSSecurity. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] re: referencing a dll
El jue, 27-05-2004 a las 06:56, Peter Foley escribió: tried that - no good does the dll have to be in a particular directory? permissions? do i need to specify it's namespace? You only need %@ Assembly Name=ABSSecurity % ABSSecurity.dll should be either in bin, MONO_PATH or the GAC. And for the namespaces from ABSSecurity you use, also: %@ Import namespace=blah % -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] New Windows installer from Mono CVS (mono-0.91.99-win32-4.exe)
Hi there, I uploaded a windows installer with current mono/mcs to http://primates.ximian.com/~gonzalo/mono/blog/files/mono-0.91.99-win32-4.exe It includes the new nunit, tons of fixes and improvements in the runtme and class libraries plus some fixes to the .bat files generated. It's also the first release that includes a translation of the installer, into Spanish, of course :). If you want to have the installer translated into your language, drop me an email and i'll send you the file with the strings to translate (just 6 or 7, don't be afraid). -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list