RE: [Mono-list] More mono-1.1.13-4/mod_mono issues - Issues withlibgdiplus.dll/postgresql fixed
Following a PostgreSQL restart issue this weekend, I have deleted the symlinks, and libreadline.so.4.3 from /opt/mono-1.1.13.4/lib. This leaves the system with only the libreadlines within /lib. System working fine again following ldconfig update. Chris > From: Wade Berrier [mailto:[EMAIL PROTECTED] > It's possible that the Linux Installer doesn't need to > include readline anymore. > > It was originally included for mono-debugger, but the > debugger may include it's own libraries. > > Can anyone confirm? If so, I can remove the libreadline from > the Installer. > > Thanks for looking into this, > > Wade > > On Thu, 2006-04-13 at 11:37 +0100, Chris Aitken wrote: > > I have solved my issues with Mono breaking PostgreSQL. > > > > Debian Sarge > > Mono-installer 1.1.13.4 > > Postgresql 7.4.7-6sarge1 > > > > An ASP.NET app I have written requires libgdiplus. It dynamically > > resizes JPG images so the same image can be used in full > size & for thumbnail. > > > > Adding "/opt/mono-1.1.13.4/lib" to /etc/ld.so.conf was breaking > > PostgreSQL (wouldn't stop/start, psql wouldn't work): > > [EMAIL PROTECTED]:/etc$ psql mono > > /usr/lib/postgresql/bin/psql: relocation error: > > /opt/mono-1.1.13.4/lib/libreadline.so.4: undefined symbol: BC > > > > Check on /opt/mono-1.1.13.4/lib, to see what libreadline.so.4 is: > > chimera:/opt/mono-1.1.13.4/lib# ls -la |grep libreadline > > lrwxrwxrwx 1 root root 23 libreadline.so.4 -> > libreadline.so.4.3 > > -rwxr-xr-x 1 root root 173000 libreadline.so.4.3 > > > > Delete symlink libreadline.so.4, and rename libreadline.so.4.3. > > Symlink > > libreadline.so.4.3 to /lib/libreadline.so.4.3, and > libreadline.so.4 to > > /lib/libreadline.so.4.3: > > > > chimera:/opt/mono-1.1.13.4/lib# ls -la |grep libreadline > > lrwxrwxrwx 1 root root 23 Apr 13 11:27 libreadline.so.4 -> > > /lib/libreadline.so.4.3 > > lrwxrwxrwx 1 root root 23 Apr 13 11:22 libreadline.so.4.3 -> > > /lib/libreadline.so.4.3 > > -rwxr-xr-x 1 root root 173000 Mar 15 21:22 > libreadline.so.4.3.bak > > > > Problem solved. PostgreSQL works, and the app works. > > > > Miguel - Shall I put this on the project website? > > > > Chris > > > > > > > > > -- > This message has been scanned for viruses and dangerous > content by MailScanner, and is believed to be clean. > > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Getting cursor position
How can I get the cursor position? I've done a little searching and I haven't found anything compatible with mono c#. Thanks. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] VB / VBScript support in Mono
Hi all, Can anyone please tell me what the status of Mono support for VB is? And, specifically, is there some component that can be used to interpret _vbscript_ code inside an application at runtime? (such as the Microsoft Script Control ) We are considering porting our product to Linux/Mono, and this -- the ability to continue interpreting _vbscript_ so as not to change too many things for our customers -- is what is stopping us at the moment. Thanks, G. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] VB / VBScript support in Mono
As far as I know there is NO support for VB. If, however, you mean VB.NET there is alpha support. But even with VB.NET you're probably out of luck since the VB.NET development has cooled down significantly. -Abe On 4/20/06, Geula Vainappel <[EMAIL PROTECTED]> wrote: > > Hi all, > > Can anyone please tell me what the status of Mono support for VB is? And, > specifically, is there some component that can be used to interpret VBscript > code inside an application at runtime? (such as the Microsoft Script Control > ) > > We are considering porting our product to Linux/Mono, and this -- the > ability to continue interpreting vbscript so as not to change too many > things for our customers -- is what is stopping us at the moment. > > Thanks, > > > G. > ___ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > > ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] ASP.NET 2 Compilation Problems
I solved my own problems. Turns out I was using the wrong port (and hence xsp and not xsp2). However, I still have one issue. It seems that the following config section causes a duplicate element error. It's in the system.web portion of the config file. ... ... I've included the stack trace below. Any suggestions on dealing with that? Patrick System.Configuration.ConfigurationException: Duplicate element in collection () in [0x000a5] System.Configuration.ConfigurationElementCollection:BaseAdd (System.Configuration.ConfigurationElement element, Boolean throwIfExists) in [0x8] (at mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs:148) System.Configuration.ConfigurationElementCollection:BaseAdd (System.Configuration.ConfigurationElement element) in [0x0004b] (at mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs:461) System.Configuration.ConfigurationElementCollection:OnDeserializeUnrecognizedElement (System.String elementName, System.Xml.XmlReader reader) in [0x00255] (at mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:335) System.Configuration.ConfigurationElement:DeserializeElement (System.Xml.XmlReader reader, Boolean serializeCollectionKey) in [0x00098] (at mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs:115) System.Configuration.ConfigurationSection:DeserializeSection (System.Xml.XmlReader reader) in [0x00095] (at mono-1.1.15/mcs/class/System.Configuration/System.Configuration/Configuration.cs:247) System.Configuration.Configuration:GetSectionInstance (System.Configuration.SectionInfo config, Boolean createDefaultInstance) in [0x0003c] (at mono-1.1.15/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionCollection.cs:68) System.Configuration.ConfigurationSectionCollection:get_Item (System.String name) in [0x00079] (at mono-1.1.15/mcs/class/System.Configuration/System.Configuration/Configuration.cs:216) System.Configuration.Configuration:GetSection (System.String path) in [0x8] (at mono-1.1.15/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:240) System.Web.Configuration.WebConfigurationManager:GetWebApplicationSection (System.String sectionName) in [0x00029] (at mono-1.1.15/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:201) System.Web.Configuration.WebConfigurationManager:GetSection (System.String sectionName) in [0x0001f] (at mono-1.1.15/mcs/class/System.Web/System.Web.Security/UrlAuthorizationModule.cs:68) System.Web.Security.UrlAuthorizationModule:OnAuthorizeRequest (System.Object sender, System.EventArgs args) in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in <0x0046d> System.Web.HttpApplication+__1:MoveNext () ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] ASP.NET 2 Compilation Problems
Removing only that section eliminated the duplicate element error. I don't have any web.config files in any parent folders. However, I do have my applications laid out in a manner which caused problems with an old version of mono. Here is a truncated list of the specified "--applications" that I'm using with XSP: / /FSWebApps/TuboDril <-- Error loading this app. /FSWebApps/WebRigs <-- Error loading this app. /FSWebServices/FSUserService /FSWebServices/FSIDService Is it possible it's confusing the configuration information a sibling application? All of the applications use the same authorization sections, and none of them load with xsp2. They all loaded properly under xsp. Patrick Chris Toshok wrote: Hm. Is this the only web.config file you have? or are there any in parent directories? Also, are you sure it's that section? I added it to my test web.config here and see no errors. Chris ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Sharing Streams between managed and unmanaged code
I have a relatively large C library that I do not want to reproduce in C#. Its core functionality (for better or worse) is based around reading/writing a very specific XML format. XML is created using libxml2's xmlWriter and parsed via libxml2's XmlReader like interface. My goal is to expose this functionality to .NET via streams. Essentially, I would like to be able to write XML to a .NET stream (say asp.net response) as well as read XML (from an asp.net request) from unmanaged code. Any suggestions on the best way to get this done would be greatly appreciated. ~ Matthew ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Sharing Streams between managed and unmanaged code
On Thu, 2006-04-20 at 16:10 -0500, [EMAIL PROTECTED] wrote: > I have a relatively large C library that I do not want to reproduce in C#. Its > core functionality (for better or worse) is based around reading/writing a > very > specific XML format. XML is created using libxml2's xmlWriter and parsed via > libxml2's XmlReader like interface. My goal is to expose this functionality to > .NET via streams. > > Essentially, I would like to be able to write XML to a .NET stream (say > asp.net > response) as well as read XML (from an asp.net request) from unmanaged code. > > Any suggestions on the best way to get this done would be greatly appreciated. libgdiplus already does something like this. I would use that approach plus some buffering to avoid switching from/to managed whenever possible. -Gonzalo ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Taking a screenshot
I've done a bit of searching and I can not find any information on how I can take a screenshot of the current desktop. I can find some information on how to do this under windows, but nothing under mono on linux. I know I can take a screenshot via a command which then saves it to the hard drive but that is rather slow. So is there a way in which I can take a screenshot from c#? Thanks. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Sharing Streams between managed and unmanaged code
[EMAIL PROTECTED] schrieb: > I have a relatively large C library that I do not want to reproduce in C#. Its > core functionality (for better or worse) is based around reading/writing a > very > specific XML format. XML is created using libxml2's xmlWriter and parsed via > libxml2's XmlReader like interface. My goal is to expose this functionality to > .NET via streams. > > Essentially, I would like to be able to write XML to a .NET stream (say > asp.net > response) as well as read XML (from an asp.net request) from unmanaged code. > > Any suggestions on the best way to get this done would be greatly appreciated. > Possibly via a native tool's stdin/stdout? Pro: simplicity Con: performance Andreas ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] ASP.NET 2 Compilation Problems
I did some more tests on the config file issue. It doesn't seem to have anything to do with multiple applications. I've included an example configuration file. The config file below works as is. If I uncomment the first section, I get the duplicate element error. Ideas? Patrick loginUrl="/FSWebApps/TuboDril/login.aspx" protection="All" timeout="30"> ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] XSP page rendering problem
Hi,I have been trying to port a relatively simple single page ASP.NET app to mono on XSP from VS 2003 and .Net 1.1. The behavior is inconsistent and even with the --verbose tag I am seeing no errors in the XSP or XSP2 consoles. After what seems like a random number of refreshes, XSP just dies, no fault displayed. On Windows XP in IE or Firefox with XSP or XSP 2 on Mono 1.1.15 or Mono 1.1.13.6. This happens when testing from vsprj2make in Visual Studio or when starting at the command line. 1.) If I refresh the browser multiple times. 2.) A different rendering of the page appears each time. 3.) The page never renders completely (just hangs at somerandom point halfway through). 4.) There is no code in the view of the page so it should just be rendering the form. if(IsPostBack){//do stuff}The more interesting rendition is pasted below.XML Parsing Error: syntax error Location: http://localhost:8080/InvestigatorApp.aspxLine Number 1, Column 1: X �/n���T���L�xl�n�Fm/�gO����1N��sy��y^sourcetext>parsererror> This was happening on my machine at work and when I tried it on the home system I get the same results.I am not sure where to start troubleshooting this. Any help appreciated.Thanks,-nate ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Re: XSP page rendering problem
I scp'd the c:\inetpub\wwwroot\ folder straight up, with no changes whatsoever, to a RH linux box into a directory configured with mono 1.1.4, mod_mono and apache. And the page serves correctly. So this really seems like it is a windows problem. Both machines that I tested on are dual core x64 XP systems. One is intel based and the other is an amd opteron based system. Could this be a compatibility issue with 32-bit mono on x64 Windows XP? -nate On 4/20/06, Nate Chadwick <[EMAIL PROTECTED]> wrote: > > Hi, > > I have been trying to port a relatively simple single page ASP.NET app to > mono on XSP from VS 2003 and .Net > 1.1. The behavior is inconsistent and even with the --verbose tag I am > seeing no errors in the XSP or XSP2 consoles. > > After what seems like a random number of refreshes, XSP just dies, no fault > displayed. > > > On Windows XP in IE or Firefox with XSP or XSP 2 on Mono 1.1.15 or Mono > 1.1.13.6. This happens when testing from vsprj2make in Visual Studio or when > starting at the command line. > > > > 1.) If I refresh the browser multiple times. > > 2.) A different rendering of the page appears each time. > > 3.) The page never renders completely (just hangs at somerandom point halfway > through). > > > 4.) There is no code in the view of the page so it should just be rendering > the form. if(IsPostBack){//do stuff} > > The more interesting rendition is pasted below. > > = > "http://www.mozilla.org/newlayout/xml/parsererror.xml";>XML Parsing Error: > syntax error > > Location: > http://localhost:8080/InvestigatorApp.aspx > Line Number 1, Column 1:X �/n���T���L�xl�n�Fm/�gO����1N��sy��y > ^ parsererror> > > > This was happening on my machine at work and when I tried it on the home > system I get the same results. > > I am not sure where to start troubleshooting this. > > Any help appreciated. > > Thanks, > > -nate > > > > > ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Sharing Streams between managed and unmanaged code
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gonzalo Paniagua Javier wrote: > On Thu, 2006-04-20 at 16:10 -0500, [EMAIL PROTECTED] wrote: >> I have a relatively large C library that I do not want to reproduce in C#. >> Its >> core functionality (for better or worse) is based around reading/writing a >> very >> specific XML format. XML is created using libxml2's xmlWriter and parsed via >> libxml2's XmlReader like interface. My goal is to expose this functionality >> to >> .NET via streams. >> >> Essentially, I would like to be able to write XML to a .NET stream (say >> asp.net >> response) as well as read XML (from an asp.net request) from unmanaged code. > > libgdiplus already does something like this. I would use that approach > plus some buffering to avoid switching from/to managed whenever > possible. Thanks for the heads up. Apparently libgdi doesn't support GdipLoadImageFromStream and GdipSaveImageToStream as stream is an IStream (COM). I'll take a look into IStream's and see what sort of structure it might be. ~ Matthew -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (MingW32) iD8DBQFESDYLLrcoBjlTBf0RAufGAKCBOvtZ/fT6lfOAyXTYkDaCHhDZeACgmqXc BDQjis1qDT392m0AIYrwMJs= =Ym5u -END PGP SIGNATURE- ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Sharing Streams between managed and unmanaged code
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > I have a relatively large C library that I do not want to reproduce in C#. Its > core functionality (for better or worse) is based around reading/writing a > very > specific XML format. XML is created using libxml2's xmlWriter and parsed via > libxml2's XmlReader like interface. My goal is to expose this functionality to > .NET via streams. > > Essentially, I would like to be able to write XML to a .NET stream (say > asp.net > response) as well as read XML (from an asp.net request) from unmanaged code. What exactly is the purpose of IntPtrStream? I can't seem to find its use anywhere. Anyway this (or something like it) could be used to gain interop with native libraries for stream support? ~ Matthew -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (MingW32) iD8DBQFESFjhLrcoBjlTBf0RAno+AJ0VULrTx/00hRF1NwEO+pJ2DxS06QCfS4hw sWQtmgwskqalBP7qltFQ3Xc= =lX2O -END PGP SIGNATURE- ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list