[Mono-dev] Method not found: 'System.Diagnostics.Process.get_SessionId'
Hi, I use today's RPM version of Mono on SuSE 9.3 (RPMs for Novell Linux Desktop 9 x86). My application is compiled with MS VisualStudio 2005. I would like to use System.Diagnostics.Process.SessionId in my application which method is presented in the documentation (documentation for that section has not yet been entered) but I get the error System.MissingMethodException: Method not found: 'System.Diagnostics.Process.get_SessionId' which tells me that there is no such method. I looked up the sources of System.Diagnostics/Process.cs and was not managed to find a property for SessionId. May it be somewhere else? Is it implemented at all? It should be becouse it is there in .NET 2.0. Help me please! Thanks! Karoly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] facing problems while running VB.Net application on Monoin Linux
Hi, Try the following: give the libclntsh.so path in the /etc/mono/config like: configuration ... dllmap dll=oci target=/opt/oracle/920/lib/libclntsh.so / ... /configuration (K) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Singh, Narendra Kumar Sent: Monday, May 29, 2006 5:52 AM To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] facing problems while running VB.Net application on Monoin Linux Hi , Actually we have developed an application which connects to Oracle 10G and accesses some tables. The application is working fine when it is build with Visual; Studio.Net 2003 But the sample application is not working on Linux in Mono The error is as follows Unhandled Exception: System.DllNotFoundException: oci in 0x00053 (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate (intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,i ntptr,intptr,int,intptr) in 0x00020 System.Data.OracleClient.Oci.OciCalls:OCIEnvCreate (intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,i ntptr,intptr,int,intptr) in 0x0005d System.Data.OracleClient.Oci.OciEnvironmentHandle:.ctor (System.Data.OracleClient.Oci.OciEnvironmentMode) in 0x0003c System.Data.OracleClient.Oci.OciGlue:CreateConnection (System.Data.OracleClient.OracleConnectionInfo) in 0x0002b System.Data.OracleClient.OracleConnection:Open () in 0x0004f (wrapper remoting-invoke-with-check) System.Data.OracleClient.OracleConnection:Open () in 0x0006a Test:Main (string[]) and the code is as follows: Imports System.Data Imports System.Data.OracleClient Public Class Form1 Inherits System.Windows.Forms.Form #Region Windows Form Designer generated code Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Friend WithEvents ListBox1 As System.Windows.Forms.ListBox System.Diagnostics.DebuggerStepThrough() Private Sub InitializeComponent() Me.ListBox1 = New System.Windows.Forms.ListBox Me.SuspendLayout() ' 'ListBox1 ' Me.ListBox1.Location = New System.Drawing.Point(72, 48) Me.ListBox1.Name = ListBox1 Me.ListBox1.Size = New System.Drawing.Size(104, 95) Me.ListBox1.TabIndex = 0 ' 'Form1 ' Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) Me.ClientSize = New System.Drawing.Size(292, 266) Me.Controls.Add(Me.ListBox1) Me.Name = Form1 Me.Text = Form1 Me.ResumeLayout(False) End Sub #End Region Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim con As New OracleConnection(Password=userdummy;User ID=dummyuser;Data Source=dot) con.Open() Dim da As New OracleDataAdapter(select USERID from dbuser, con) Dim ds As New DataSet da.Fill(ds, dbuser) ListBox1.DataSource = ds.Tables(dbuser) ListBox1.DisplayMember = USERID End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub End Class Please suggest some ways to solve this problem Regards Girish ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Help needed with UnixDriveInfo
Hi, I would like to try UnixDriveInfo but I can not know how to start. As I can see to construct a UnixDriveInfo object I have to give a mount point. How can I get the mount point part of a path? For example I have a different partition (and different mount points) for / and an other for /home but my application may not know anything about it. My application gets the path /home/pulcsi/Documents and it has to deceide what the mount point here is to give it to UnixDriveInfo constructor. How should it do it? Thaks! Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] DES problem
Hi, There is a little difference between .NET and Mono. When I call the routine below in .NET I get the results: True True With Mono it says: False True. Is it possible to set this CanReuseTransform property to true and reuse the transform once again or shall I reinitialize it every time? (I found that with Mono I can not decrypt two or more times with the same ICryptoTransform. I get different results with same inputs.) The code snippet: Private mobjEncryptTransform As ICryptoTransform Private mobjDecryptTransform As ICryptoTransform Private Function InitTripleDESCSP(ByVal tbytaDESKey As Byte(), ByVal tbytaDESIV As Byte(), Optional ByVal tlogForceInit As Boolean = False) As Boolean Dim lobjTripleDESCSP As TripleDESCryptoServiceProvider Try If lobjTripleDESCSP Is Nothing OrElse mobjDecryptTransform Is Nothing OrElse mobjEncryptTransform Is Nothing OrElse tlogForceInit Then lobjTripleDESCSP = New TripleDESCryptoServiceProvider() mobjDecryptTransform = lobjTripleDESCSP.CreateDecryptor(tbytaDESKey, tbytaDESIV) mobjEncryptTransform = lobjTripleDESCSP.CreateEncryptor(tbytaDESKey, tbytaDESIV) Console.WriteLine(mobjDecryptTransform.CanReuseTransform) Console.WriteLine(mobjDecryptTransform.CanTransformMultipleBlocks) End If Return True Catch ex As Exception End Try End Function ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] DES problem
Hi, I've got a service application which uses encrypted data over network. My decrypting function gives different results with the same inputs on Mono which does not occour on .NET. The other mighty thing is that when I grab this function out of the service and test it in itself this problem does not happen again. What is wrong here? My function looks as follows (test version): Friend Function DecryptDataDES(ByVal tbytaData As Byte(), ByVal tbytaDESKey As Byte(), ByVal tbytaDESIV As Byte(), ByRef tbytaDecryptedData As Byte()) As Boolean Dim lobjMemStream As MemoryStream Dim lobjCryptoStream As CryptoStream Dim lbytaDESKey As Byte() Dim lbytaDESIV As Byte() Try 'console.writeline() ReDim lbytaDESKey(tbytaDESKey.Length - 1) ReDim lbytaDESIV(tbytaDESIV.Length - 1) tbytaDESKey.CopyTo(lbytaDESKey, 0) tbytaDESIV.CopyTo(lbytaDESIV, 0) Console.WriteLine(tbytaData: Convert.ToBase64String(tbytaData)) Console.WriteLine(lbytaDESKey: Convert.ToBase64String(lbytaDESKey)) Console.WriteLine(lbytaDESIV: Convert.ToBase64String(lbytaDESIV)) 'teszt If Not InitTripleDESCSP(lbytaDESKey, lbytaDESIV) Then 'ak20050721: ha nem kényszerítjük ki az újrainicializálást, akkor linux/mono-n ugyanolyan bemenet mellett eltérő eredményt fog 'adni a DecryptDataDES függvény. Emiatt InitTripleDESCSP(lbytaDESKey, lbytaDESIV) helyett InitTripleDESCSP(lbytaDESKey, lbytaDESIV, True) 'szerepel a hívásban 'console.writeline(Forced reinit...) 'If Not InitTripleDESCSP(lbytaDESKey, lbytaDESIV, True) Then 'mobjApp.Errors.Add(mstrResName, CommErrEnum.CantDecryptDataDES, , , InitTripleDESCSP).Raise() Console.WriteLine(InitTripleDESCSP failed) End If Console.WriteLine(lbytaDESKey: Convert.ToBase64String(lbytaDESKey)) Console.WriteLine(lbytaDESIV: Convert.ToBase64String(lbytaDESIV)) lobjMemStream = New MemoryStream() lobjCryptoStream = New CryptoStream(lobjMemStream, mobjDecryptTransform, CryptoStreamMode.Write) 'Írás közben dekódolja az adatot lobjCryptoStream.Write(tbytaData, 0, tbytaData.Length) lobjCryptoStream.FlushFinalBlock() lobjCryptoStream.Close()'e nélkül nem működik!!! 'Kiolvassuk a dekódolt adatot tbytaDecryptedData = lobjMemStream.ToArray() Console.WriteLine(tbytaDecryptedData: Convert.ToBase64String(tbytaDecryptedData)) Return True Catch ex As Exception Console.WriteLine(DecryptDataDES failed) Finally Try If Not lobjMemStream Is Nothing Then lobjMemStream.Close() If Not lobjCryptoStream Is Nothing Then lobjCryptoStream.Close() Catch End Try End Try End Function Thanks! Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Comments are not allowed in HtmlTable (very similar to Bugzilla #77326)
Hi, !-- -- HTML comments cause the same malfunction as thead and tbody caused before. See Bugzilla #77326 with !-- -- instead of thead/thead. Cheers! Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] thead and tbody tags are discarded
Hi, I noticed that thead, /thead, tbody, /tbody tags are not present in the output, though tey are there in the source aspx. This is a difference between Mono and .Net as the last one writes these tags into the output. Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] After calling Connect method System.Net.Sockets.TcpClient looses settings
Hi, I do the following: System.Net.Sockets.TcpClient client = new System.Net.Sockets.TcpClient(); client.ReceiveTimeout = 3000; Console.WriteLine(client.ReceiveTimeout.ToString()); client.Connect(192.168.1.5, 80); Console.WriteLine(client.ReceiveTimeout.ToString()); And the response wit Mono is: 3000 0 With .Net it is: 3000 3000 Is this mode of connecting correct? When I set the value after calling Connect it is OK. Thanks Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Apache+Mono+Content-Length problem
Hi, This might be an Apache problem but someone may can help me. I would like to set the Content-Length header in a simple aspx page as follows: %Response.AddHeader(content-length, 1000);% a When using XSP instead of Apache it is good the Content-Length header in the captured traffic shows 1000 but in the Apache capture it is only 2. I tried the same thing with PHP and Apache: ?php header(Content-Length: 1000, true); ? a And the Content-Length header shows 1000 in the captured traffic again. But I can not get Apache with Mono to send the Content-Length header I want. What can I do? Thanks! Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFromSource commandline options
Hi, I use Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFromSource to compile a code snippet at runtime. There is a compilation error and first I want to se what the command is that does the compilation. Is it possible to see the full command? With Windows and .Net there is a file (.cmdline) which contains all the parameters that are passed to the vbc.exe. Is there something like this with Mono? Thanks! Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] RE: Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFromSource commandline options
As I can see in mcs/class/System/Microsoft.VisualBasic/VBCodeCompiler.cs CompilerParameters.CompilerOptions are never added to the command line arguments. For example BuildArgs now: static string BuildArgs (CompilerParameters options, string[] fileNames) { ... return args.ToString (); } But it should be something like this: static string BuildArgs (CompilerParameters options, string[] fileNames) { ... return args.ToString () + options.CompilerOptions; } Am I right? -Original Message- From: Arnhoffer Károly Sent: Monday, February 13, 2006 9:03 AM To: mono vb; mono-devel-list@lists.ximian.com Subject: Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFromSource commandline options Hi, I use Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFromSource to compile a code snippet at runtime. There is a compilation error and first I want to se what the command is that does the compilation. Is it possible to see the full command? With Windows and .Net there is a file (.cmdline) which contains all the parameters that are passed to the vbc.exe. Is there something like this with Mono? Thanks! Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] RE: [mono-vb] RE: Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFromSource commandline options
I have to note that the solution I previously adviced is bad (I tried it at my site). Temporarily I have patched for myself as follows (and it is working fine for me): static string BuildArgs (CompilerParameters options, string[] fileNames) { // add standard import to Microsoft.VisualBasic if missing if (!Reference2MSVBFound) args.AppendFormat (/r:\{0}\ , Microsoft.VisualBasic); args.AppendFormat ({0}, options.CompilerOptions); args.AppendFormat ( -- ); // makes mbas not try to process filenames as options foreach (string source in fileNames) args.AppendFormat (\{0}\ , source); return args.ToString (); } -Original Message- From: Rafael Teixeira [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 8:08 PM To: Arnhoffer Károly Cc: mono vb; mono-devel-list@lists.ximian.com Subject: Re: [mono-vb] RE: Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFromSource commandline options Looks like it. I'll try to fix it tomorrow. Thanks for the catch, On 2/13/06, Arnhoffer Károly [EMAIL PROTECTED] wrote: As I can see in mcs/class/System/Microsoft.VisualBasic/VBCodeCompiler.cs CompilerParameters.CompilerOptions are never added to the command line arguments. For example BuildArgs now: static string BuildArgs (CompilerParameters options, string[] fileNames) { ... return args.ToString (); } But it should be something like this: static string BuildArgs (CompilerParameters options, string[] fileNames) { ... return args.ToString () + options.CompilerOptions; } Am I right? -Original Message- From: Arnhoffer Károly Sent: Monday, February 13, 2006 9:03 AM To: mono vb; mono-devel-list@lists.ximian.com Subject: Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFro mSource commandline options Hi, I use Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFro mSource to compile a code snippet at runtime. There is a compilation error and first I want to se what the command is that does the compilation. Is it possible to see the full command? With Windows and .Net there is a file (.cmdline) which contains all the parameters that are passed to the vbc.exe. Is there something like this with Mono? Thanks! Károly ___ Mono-vb mailing list Mono-vb@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-vb -- Rafael Monoman Teixeira --- As I'm currently working a lot with Java and even fixing Java VMs (JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the title (Javaman) from my friend Bruno Souza and become the MonoNJavaMan. Yeah, I may currently be crazier than usual... ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] Controls in HTML comment block behave different in .Net and Mono
The Src directive won't work for me. I get compilation errors under both Mono and .Net (attached). (K) -Original Message- From: peter [mailto:[EMAIL PROTECTED] Sent: Friday, February 03, 2006 6:57 PM To: Arnhoffer Károly Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Controls in HTML comment block behave different in .Net and Mono You may have fallen foul of the same thing I did: Codebehind=WebForm1.aspx.cs is a Visual Studio thing, apparently. You want to replace CodeBehind with Src. It worked for me, anyway. Cheers Peter Arnhoffer Károly wrote: Hi, When I have an ASP.Net control in an HTML comment block of an aspx page it does not compile under Mono but it does compile under .Net. Exmple aspx: %@ Page language=c# Codebehind=WebForm1.aspx.cs AutoEventWireup=false Inherits=MonoCharsetTest.WebForm1 % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD titleWebForm1/title meta name=GENERATOR Content=Microsoft Visual Studio 7.0 meta name=CODE_LANGUAGE Content=C# meta name=vs_defaultClientScript content=JavaScript meta name=vs_targetSchema content=http://schemas.microsoft.com/intellisense/ie5; meta name=Content-Type content=text/html; charset=utf-8 /HEAD body form id=Form1 method=post runat=server !-- INPUT id=Button1 type=button value=Button name=Button1 runat=server -- /form /body /HTML Example cs: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace MonoCharsetTest { /// summary /// Summary description for WebForm1. /// /summary public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.HtmlControls.HtmlInputButton Button1; private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here Button1.Value=Hello; } #region Web Form Designer generated code override protected void OnInit(EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); base.OnInit(e); } /// summary /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// /summary private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } #endregion } } Results when running on mono: Server error in '/c' application Description: Error processing request. Error Message: HTTP 500. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object in 0x00012 MonoCharsetTest.WebForm1:Page_Load (System.Object sender, System.EventArgs e) in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in 0x00117 System.Web.UI.Control:OnLoad (System.EventArgs e) in 0x000e5 System.Web.UI.Control:LoadRecursive () in 0x0011e System.Web.UI.Page:InternalProcessRequest () in 0x000a4 System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context) With .Net I get a page without the button and no compilation error. Wich is the right behaviour? VS.Net project, Mono and .Net results are attached. Thanks! Károly Server error in '/c' application Description: Error processing request. Error Message: HTTP 500. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object in 0x00012 MonoCharsetTest.WebForm1:Page_Load (System.Object sender, System.EventArgs e) in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in 0x00117 System.Web.UI.Control:OnLoad (System.EventArgs e) in 0x000e5 System.Web.UI.Control:LoadRecursive () in 0x0011e System.Web.UI.Page:InternalProcessRequest () in 0x000a4 System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context) ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list Title: Compilation Error GFI MailSecurity's HTML threat engine found
RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent
+---BEGIN output xsp/mono/linux -- POST +/index.aspx HTTP/1.1 + +Host: 127.0.0.1:8080 + +User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) +Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1 + +Accept: +text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla +in;q=0.8,image/png,*/*;q=0.5 + +Accept-Language: en-us,en;q=0.5 + +Accept-Encoding: gzip,deflate + +Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 + +Keep-Alive: 300 + +Connection: keep-alive + +Referer: http://127.0.0.1:8080/index.aspx + +Cookie: ASPSESSION=C08469137C85BDA1013610C6951CB3 + +Content-Type: application/x-www-form-urlencoded + +Content-Length: 51 + + + +__EVENTTARGET=Button1__EVENTARGUMENT=__VIEWSTATE=HTTP/1.0 200 OK + +Server: Mono.WebServer/0.1.0.0 Unix + +Date: Tue, 24 Jan 2006 18:38:25 GMT + +Content-Length: 1061 + +Cache-Control: private + +Content-Type: text/html; charset=utf-8 + +Keep-Alive: timeout=15, max=97 + +Connection: Keep-Alive +---END output xsp/mono/linux -- Comparing this with my results: POST /c/WebForm1.aspx HTTP/1.1\r\n Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*\r\n Referer: http://192.168.1.200/c/WebForm1.aspx\r\n Accept-Language: hu\r\n Content-Type: application/x-www-form-urlencoded\r\n Accept-Encoding: gzip, deflate\r\n User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)\r\n Host: 192.168.1.200\r\n Content-Length: 51\r\n Connection: Keep-Alive\r\n Cache-Control: no-cache\r\n Cookie: ASPSESSION=5AF35BFB0FDA6F461DD15A3645864C\r\n \r\n HTTP/1.1 200 OK\r\n Date: Wed, 25 Jan 2006 08:01:08 GMT\r\n Server: Apache/2.0.50 (Linux/SUSE)\r\n Content-Length: 0\r\n Cache-Control: private\r\n Keep-Alive: timeout=15, max=99\r\n Connection: Keep-Alive\r\n Content-Type: text/html; charset=iso-8859-2\r\n \r\n It seems that something is bad at my side. Your Content-Length is as it is to be. But mine is allways 0. Hm... When I do this: private void Button1_ServerClick(object sender, System.EventArgs e) { Response.AddHeader(Content-Length, 1000); Response.SuppressContent = true; } Content-Length is still 0. Now it seems to me that it does not matter what content length I set programmatically Apache recalculates it or something like that. There is an other mysterious thing, when I do the following: private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here Response.AddHeader(Content-Length, 1000); } On IIS/.Net it is right (only a 1000 length response) but on Apache/Mono it gives me the following error in Apache's error_log: ** ERROR **: Invalid IL code at IL in MonoCharsetTest.WebForm1: OnInit (System.EventArgs): IL_: callvirt 0x0a10 aborting... Now I am goning to examine this Apache. (K) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gonzalo Paniagua Javier Sent: Wednesday, January 25, 2006 5:22 PM To: mono-devel-list@lists.ximian.com Subject: RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent Now the question is what does this Content-Length stuff? IIS or .Net? The answer for this one is easy: use xsp on windows to figure it out :-). XSP not sending the correct content-length is probably a bug on our side. Imagine this was a 'HEAD' request... -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent
Yes, XSP does as IIS sends Content-Length as it was not SuppressContent=true and lets the Response.AddHeader(Content-Length, 1000); call to be. Now does anyone know how to configure Apache not to overwrite headers? Thanks! (K) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gonzalo Paniagua Javier Sent: Wednesday, January 25, 2006 5:22 PM To: mono-devel-list@lists.ximian.com Subject: RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent Now the question is what does this Content-Length stuff? IIS or .Net? The answer for this one is easy: use xsp on windows to figure it out :-). XSP not sending the correct content-length is probably a bug on our side. Imagine this was a 'HEAD' request... -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent
Did you reproduce the problem with the same test that you attached to the bug report? I used your test, mono/xsp from svn and firefox. The 'view source' for the page was empty. I'll check later if any header is sent and update the bug. Right, with Firefox the 'view source' really gives an empty source. I tried with MSIE before. When I test with IIS/.Net after hitting the button the browser is waiting for the response: waitcursor, Waiting for localhost in the statusbar, and the most important the page remains in the browser. Testing with Apache/XSP/Mono an empty page loads in with Firefox or an empty page with that header loads in with MSIE. I captured the traffic with ethereal and I found that you are right both IIS/.Net and Apache/XSP/Mono sends a response when hitting the button. IIS/.Net's response: HTTP/1.1 200 OK\r\n Server: Microsoft-IIS/5.1\r\n Date: Wed, 25 Jan 2006 08:14:27 GMT\r\n X-Powered-By: ASP.NET\r\n X-AspNet-Version: 1.1.4322\r\n Cache-Control: private\r\n Content-Type: text/html; charset=iso-8859-2\r\n Content-Length: 1293\r\n \r\n Apache/XSP/Mono's response: HTTP/1.1 200 OK\r\n Date: Wed, 25 Jan 2006 08:01:08 GMT\r\n Server: Apache/2.0.50 (Linux/SUSE)\r\n Content-Length: 0\r\n Cache-Control: private\r\n Keep-Alive: timeout=15, max=99\r\n Connection: Keep-Alive\r\n Content-Type: text/html; charset=iso-8859-2\r\n \r\n And there is an interesting difference: the Content-Length field! IIS/.Net does the following: sends the HTTP headers as it was a normal response to a GET or POST request but sends no content and I think the missing content is what the browser is waiting for. :-) I attached the captured traffic as text files. Please have a look at Frame 584 and Frame 995 in net.txt and recognize that two responses are the same except second one has no content. Then have a look at Frame 1331 and Frame 1603 in mono.txt and recognize that in Frame 1603 Content-Length is 0 and of course there is no content. Now the question is what does this Content-Length stuff? IIS or .Net? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gonzalo Paniagua Javier Sent: Tuesday, January 24, 2006 10:31 PM To: mono-devel-list@lists.ximian.com Subject: RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent On Tue, 2006-01-24 at 11:30 -0500, Gonzalo Paniagua Javier wrote: On Tue, 2006-01-24 at 16:00 +0100, Arnhoffer Károly wrote: [...] So what should the problem be here? Why does my server write headers? And why does your not? There is a setting in Web.config: globalization requestEncoding=iso-8859-2 responseEncoding=iso-8859-2 / When I comment out the whole globalization setting the header is sent again. Any ideas what I should do now? Did you reproduce the problem with the same test that you attached to the bug report? I used your test, mono/xsp from svn and firefox. The 'view source' for the page was empty. I'll check later if any header is sent and update the bug. I tested this under MS and got the same results as with mono. The details are on the bug report. -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list No. TimeSourceDestination Protocol Info 583 5.087456192.168.1.200 192.168.1.109 HTTP GET /monocharsettest/webform1.aspx HTTP/1.1 Frame 583 (471 bytes on wire, 471 bytes captured) Ethernet II, Src: 00:d0:b7:aa:3a:89, Dst: 00:0c:f1:f3:cf:fb Internet Protocol, Src Addr: 192.168.1.200 (192.168.1.200), Dst Addr: 192.168.1.109 (192.168.1.109) Transmission Control Protocol, Src Port: 32831 (32831), Dst Port: http (80), Seq: 1, Ack: 1, Len: 405 Source port: 32831 (32831) Destination port: http (80) Sequence number: 1(relative sequence number) Next sequence number: 406(relative sequence number) Acknowledgement number: 1(relative ack number) Header length: 32 bytes Flags: 0x0018 (PSH, ACK) Window size: 5840 (scaled) Checksum: 0x9524 (correct) Options: (12 bytes) Hypertext Transfer Protocol GET /monocharsettest/webform1.aspx HTTP/1.1\r\n Connection: Keep-Alive\r\n User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)\r\n Accept: text/html, image/jpeg, image/png, text/*, image/*, */*\r\n Accept-Encoding: x-gzip, x-deflate, gzip, deflate\r\n Accept-Charset: utf-8, utf-8;q=0.5, *;q=0.5\r\n Accept-Language: en\r\n Host: 192.168.1.109\r\n Cookie: ASP.NET_SessionId=ktofpb45oic0ah451ulhzcmn\r\n \r\n No. TimeSourceDestination Protocol Info 584 5.088638192.168.1.109 192.168.1.200 HTTP HTTP/1.1 200 OK (text/html) Frame 584 (1514
RE: [Mono-dev] XSP Server Erorr Severity one
Hi Yogendra, I had very similar problem before. Do you use on the fly compilation? My problem was the following: the web app compiled a dll on the fly and a referenced assembly in the code to compile was missing. I simply copied referenced assemblies (idirect references as well!) to the webapp's bin folder and the problem was solved. :-) (K) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yogendra Thakur Sent: Wednesday, January 25, 2006 11:48 PM To: Gonzalo Paniagua Javier; mono-devel-list@lists.ximian.com Subject: [Mono-dev] XSP Server Erorr Severity one Importance: High Hi Gonzalo, I am using Mono 1.1.13 rpm installation version with XSP 1.1.13 rpm installation. I have production ready web-application build using .NET 1.1 framework and visual Studio 2003. Only thing holding our release is frequent occurrence of following error. Error Message : === System.IO.FileNotFoundException: /tmp/root-temp-aspnet-0/28bf7633/28579.dll : /tmp/root-temp-aspnet-0/28bf7633/28579.dll in 0x0 unknown method in (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool) in 0xc System.Reflection.Assembly:LoadFrom (System.String assemblyFile) in 0x003c0 Mono.CSharp.CSharpCodeCompiler:CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) in 0x00022 Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) in 0x00305 Mono.CSharp.CSharpCodeCompiler:CompileFromDomBatch (System.CodeDom.Compiler.CompilerParameters options, System.CodeDom.CodeCompileUnit[] ea) in 0x00022 Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDomBatch (System.CodeDom.Compiler.CompilerParameters options, System.CodeDom.CodeCompileUnit[] ea) in 0x0003c Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDom (System.CodeDom.Compiler.CompilerParameters . Once xsp is restarted pages will be displayed fine. But after some time this issue occurs pretty frequently. While some pages throw above error message others still work. I searched buglist and googled about it but no help so far. I appreciate your time and Help. -Yogendra Thakur ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent
Hi Gonzalo, I have seen you inspected the problem under Bugzilla and found it to be not a bug. Well I downloaded the newest sources from svn and installed and SuppressContent still does not work. :-( I may do some mistakes somewhere... But I still do not understand something in the implementation of HttpResponse (from HttpResponse.cs): internal void Flush (bool final_flush) { ... bool head = ((context != null) (context.Request.HttpMethod == HEAD)); if (suppress_content || head) { if (!headers_sent) WriteHeaders (true); output_stream.Clear (); if (WorkerRequest != null) output_stream.Flush (WorkerRequest, true); // ignore final_flush here. return; } ... } It says write the headers even suppress_content is true. And that seems to be the problem here: my response HTML contains only a header (Content-Type). That is it: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=Content-Type content=text/html; charset=iso-8859-2/HEAD BODY/BODY/HTML This header seems to be added by the WriteHeaders method here: internal void WriteHeaders (bool final_flush) { ... // // Content-Type // if (content_type != null){ string header = content_type; if (charset_set || header == text/plain || header == text/html) { if (header.IndexOf (charset=) == -1) { if (charset == null || charset == ) charset = ContentEncoding.HeaderName; header += ; charset= + charset; } } write_headers.Add (new UnknownResponseHeader (Content-Type, header)); } ... // // Flush // if (context != null) { HttpApplication app_instance = context.ApplicationInstance; if (app_instance != null) app_instance.TriggerPreSendRequestHeaders (); } if (WorkerRequest != null) { foreach (BaseResponseHeader header in write_headers){ header.SendContent (WorkerRequest); } } headers_sent = true; } So what should the problem be here? Why does my server write headers? And why does your not? There is a setting in Web.config: globalization requestEncoding=iso-8859-2 responseEncoding=iso-8859-2 / When I comment out the whole globalization setting the header is sent again. Any ideas what I should do now? Thanks! (K) -Original Message- From: Gonzalo Paniagua Javier [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 5:20 PM To: Arnhoffer Károly Subject: RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent On Fri, 2006-01-20 at 11:09 +0100, Arnhoffer Károly wrote: Sorry how can I attach a test case? http://www.mono-project.com/Bugs says Submit a test case, the smaller, the better. You can do this by clicking on the Create a new attachment link.. But I can not find a link like that. I've seen that you already figured out how to workaround that :). If you enter a new bug and you're logged in, you'll see the 'Create a new attachment' link below the 'Description' textbox. I'll fix that bug in the next few hours. Thanks. -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] System.Resources.ResourceManager:ReleaseAllResources() throws System.InvalidCastException
Hi, Any time I call System.Resources.ResourceManager:ReleaseAllResources() method I get System.InvalidCastException. For example I load texts from aspx.resx files to aspx pages with the function below. The text loads successfully, but becouse of the lobjRM.ReleaseAllResources() call it does not return the value. Is the lobjRM.ReleaseAllResources() call needed anyway? I found in the .Net docs that this method will shrink the working set in a running application. That is only why I use it. Public Function LoadRes(ByVal tstrResource As String, ByVal tstrResID As String) As String Dim lstrModul As String Dim lobjAssembly As System.Reflection.Assembly Dim lobjRM As System.Resources.ResourceManager Dim lstrText As String Try If tstrResource.IndexOf(.c) = 0 Then 'Ha a modulnv benne van az tadott resource nvben, akkor onnan veszi ki: lstrModul = tstrResource.Substring(0, tstrResource.IndexOf(.c)) End If lobjAssembly = System.Reflection.Assembly.LoadWithPartialName(lstrModul) If lobjAssembly Is Nothing Then Return Nothing Try lobjRM = New System.Resources.ResourceManager(tstrResource, lobjAssembly) lstrText = lobjRM.GetString(tstrResID) Catch Finally If Not lobjRM Is Nothing Then lobjRM.ReleaseAllResources() End Try Return lstrText Catch ex As Exception Response.Write(ex.GetType().ToString br / ex.StackTrace) End Try Thanks! Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] ASP.Net HttpResponse.SuppressContent
Hi, It seems that HttpResponse.SuppressContent behaves different in .Net and Mono. While .Net sends no response when using HttpResponse.SuppressContent Mono sends an empty HTML page like this: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=Content-Type content=text/html; charset=iso-8859-2/HEAD BODY/BODY/HTML If this behaviour is right how can I make Mono send no response to a request? Thanks! Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] System.Reflection.Assemby:LoadFrom question
Hi, I try to compile runtime the VB code below: Option Strict On Imports WFObj Imports NCore Imports NPartner Imports NFilter Imports System.Windows.Forms Imports Microsoft.VisualBasic Public Module WFProcedure_225737 Public Function WFExpression_226217(CurrentApp As WFApp, CurrentConnection As DB.Connection, CurrentOccurence As WF Occurence, CurrentCase As WFCase, CurrentElement As WFElement, CurrentAddressee As Person, Optional ByRef CurrentFieldValue As Object = Nothing) As Object Dim ALAIRO1 As Integer = CInt(WFFieldValue. CalculateValue(CurrentApp, CurrentConnection, ALAIRO1, Current Occurence, CurrentCase, CurrentElement)) Return ALAIRO10 End Function End Module With this code: . . . lobjCParams = New CompilerParameters() lobjCProvider = New Microsoft.VisualBasic.VBCodeProvider() With lobjCParams .GenerateExecutable = False .GenerateInMemory = True .IncludeDebugInformation = False If Not tstraReferences Is Nothing AndAlso tstraReferences.Length 0 Then For I = 0 To tstraReferences.Length - 1 If Not IsES(tstraReferences(I)) Then .ReferencedAssemblies.Add(tstraReferences(I)) End If Next End If .TempFiles = New TempFileCollection(IO.Path.Combine(/tmp, compile), True) .TreatWarningsAsErrors = False End With Try tobjResults = lobjCProvider.CreateCompiler.CompileAssemblyFromSource(lobjCParams, tstrSource) Catch ex As Exception End Try . . . There is an error and I get this stack trace: ERROR: Could not find file /tmp/compile/69597.dll. () 1/3/2006 3:29: 59 PM in 0x0 unknown method in (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool) in 0xc System.Reflection.Assembly:LoadFrom (System.String assemblyFile) in 0x00388 Microsoft.VisualBasic.VBCodeCompiler:CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) in 0x00171 Microsoft.VisualBasic.VBCodeCompiler:CompileFromSourceBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) in 0x00022 Microsoft.VisualBasic.VBCodeCompiler:CompileAssemblyFromSourceBatch (System.CodeDom.Compiler. CompilerParameter s options, System.String[] sources) in 0x0003c Microsoft.VisualBasic.VBCodeCompiler:CompileAssemblyFromSource (System.CodeDom.Compiler. CompilerParameters opt ions, System.String source) When I use .GenerateInMemory = False VB files are generated under /tmp/compile/ but dlls not again. What is wrong here? Thanks Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Oracle + clntsh
Hi, I try to run the first example at http://www.mono-project.com/Oracle and I get the following error: Unhandled Exception: System.DllNotFoundException: clntsh in (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate (intptr, System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr, intptr,int,intptr) in 0x0001f System.Data.OracleClient.Oci.OciCalls:OCIEnvCreate (System.IntPtr envhpp, OciEnvironmentMode mode, IntPtr ctxp, IntPtr malocfp, IntPtr ralocfp, IntPtr mfreep, Int32 xtramem_sz, IntPtr usrmempp) in 0x0003c System.Data.OracleClient.Oci.OciEnvironmentHandle:.ctor (OciEnvironmentMode mode) in 0x0006b System.Data.OracleClient.Oci.OciGlue:CreateConnection (OracleConnectionInfo conInfo) in 0x00042 System.Data.OracleClient.OracleConnectionPoolManager: CreateConnection (OracleConnectionInfo info) in 0x00038 System.Data.OracleClient.OracleConnectionPool: CreateConnection () in 0x0010a System.Data.OracleClient.OracleConnectionPool: GetConnection () in 0x000ce System.Data.OracleClient.OracleConnection:Open () in (wrapper remoting-invoke-with-check) System.Data.OracleClient. OracleConnection:Open () in 0x00061 Test:Main (System.String[] args) I have examinded my linux (SuSE 9.2 with Oracle 9i, Mono 1.1.10) and found that there is a line in /etc/mono/config saying: dllmap dll=oci target=clntsh /. What should this be? I tried /opt/oracle/920/lib/libclntsh.so.9.0 instead of clntsh here but I got errors again: Unhandled Exception: System.Data.OracleClient.OracleException: Could not allocate the Oracle environment. in 0x00291 System.Data.OracleClient.Oci.OciGlue:CreateConnection (OracleConnectionInfo conInfo) in 0x00042 System.Data.OracleClient.OracleConnectionPoolManager: CreateConnection (OracleConnectionInfo info) in 0x00038 System.Data.OracleClient.OracleConnectionPool: CreateConnection () in 0x0010a System.Data.OracleClient.OracleConnectionPool: GetConnection () in 0x000ce System.Data.OracleClient.OracleConnection:Open () in (wrapper remoting-invoke-with-check) System.Data.OracleClient. OracleConnection:Open () in 0x00061 Test:Main (System.String[] args) Thanks: Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] VB ASP.NET
Hi, I created two sample ASP.NET applications: a C# and a VB one. They contain the same controls, a System.Web.UI.HtmlControls.HtmlInputButton and a System.Web.UI.HtmlControls.HtmlInputText. The C# one works fine but with the VB one I always get error beginning as follows: Server Error in '/vb' Application Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Error message: /tmp/wwwrun-temp-aspnet-0/9eeab86/75772.0.vb(79,37) : error BC30524: Property 'Button1' lacks a 'get' accesor /tmp/wwwrun-temp-aspnet-0/9eeab86/75772.0.vb(82,37) : error BC30524: Property 'Text1' lacks a 'get' accesor /tmp/wwwrun-temp-aspnet-0/9eeab86/75772.0.vb(90,13) : error BC30524: Property 'Button1' lacks a 'set' accesor /tmp/wwwrun-temp-aspnet-0/9eeab86/75772.0.vb(101,13) : error BC30524: Property 'Text1' lacks a 'set' accesor /tmp/wwwrun-temp-aspnet-0/9eeab86/75772.0.vb(109,13) : error BC30524: Property 'TraceModeValue' lacks a 'set' accesor /tmp/wwwrun-temp-aspnet-0/9eeab86/75772.0.vb(52,27) : error BC30524: Property 'Context' lacks a 'get' accesor Should ASP.Mono work with VB or not? Thanks! Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Service crashes
Hi all, I am in the testing of a service application on Mono. This is a very simple multi-threading file server application. It usually works fine but when I overload it after a couple of time the process exits (without any log entries). In this case the processor is working about 100%, the process load average increases dramatically (from 5 to 25 procs/min), then I shut down client requests but it does not help: the server process dies (and that is the problem: the server application must be restarted). What should cause this? OS is SuSE 9.3 Professional. I think that the scheduler kills my process becouse of overloading the system but I am not sure... Please help me! Thanks! Arnhoffer Károly eCron Informatika Kft. 1119 Budapest, Hadak útja 9. tel./fax: +36 (1) 203-1535 mobil: +36 (30) 472-8855 e-mail: [EMAIL PROTECTED] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-devel-list] Compiling from sources
Hi, make[4]: Entering directory `/home/karnhoffer/Documents/mono_src/svn/mcs' make PROFILE=basic all make[5]: Entering directory `/home/karnhoffer/Documents/mono_src/svn/mcs' *** The compiler 'mcs' doesn't appear to be usable. *** The contents of your 'monolite' directory are out-of-date *** You may want to try 'make get-monolite-latest' make[5]: *** [do-profile-check] Error 1 make[5]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mcs' make[4]: *** [profile-do--basic--all] Error 2 make[4]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mcs' make[3]: *** [profiles-do--all] Error 2 make[3]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mcs' make[2]: *** [all-local] Error 1 make[2]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mono/runtime' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mono' make: *** [all] Error 2 [EMAIL PROTECTED]:~/Documents/mono_src/svn/mono Again. :) Mystic, becouse I have make get-monolite-latest Arnhoffer Károly -Original Message- From: Matthias Felgner [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 11:15 AM To: Arnhoffer Károly; mono-devel-list@lists.ximian.com Subject: AW: [Mono-devel-list] Compiling from sources Hi, Please follow: cd libgdiplus ./autogen.sh (./autogen.sh --prefix=/usr) make su make install /sbin/ldconfig (see Making sure gdiplus is found below) exit (takes you back to a normal user) cd ../mono ./autogen.sh (--prefix=/usr) --with-preview= {yes/no} (see below) make get-monolite-latest make su make install exit cd ../gtk-sharp ./bootstrap (-2.4 --prefix=/usr) (see below) make su make install exit cd ../monodoc ./autogen.sh (--prefix=/usr) make su make install source: http://www.all-the-johnsons.co.uk/mono/mono-compiling.html that gets you monolite in the process, which is a mono environment you can build mono from svn with... Please report back if you run into problems. --Matt -Ursprüngliche Nachricht- Von: Arnhoffer Károly [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 5. August 2005 11:12 An: Matthias Felgner; mono-devel-list@lists.ximian.com Betreff: RE: [Mono-devel-list] Compiling from sources Hi, Now I have MonoCharge installed I have the Mono sources but make fails: make[4]: Entering directory `/home/karnhoffer/Documents/mono_src/svn/mcs' make PROFILE=basic all make[5]: Entering directory `/home/karnhoffer/Documents/mono_src/svn/mcs' *** The compiler 'mcs' doesn't appear to be usable. *** You need a C# compiler installed to build MCS (make sure mcs works from thecommand line) *** Read INSTALL.txt for information on how to bootstrap a Mono installation. make[5]: *** [do-profile-check] Error 1 make[5]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mcs' make[4]: *** [profile-do--basic--all] Error 2 make[4]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mcs' make[3]: *** [profiles-do--all] Error 2 make[3]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mcs' make[2]: *** [all-local] Error 1 make[2]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mono/runtime' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/karnhoffer/Documents/mono_src/svn/mono' make: *** [all] Error 2 [EMAIL PROTECTED]:~/Documents/mono_src/svn/mono It says that mcs is missing (?). It is now biudling, is it not? Arnhoffer Károly -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Felgner Sent: Thursday, August 04, 2005 2:57 PM To: mono-devel-list@lists.ximian.com Subject: RE:[Mono-devel-list] Compiling from sources Try svn co http://svn.myrealbox.com/source/trunk/mcs --Matt -Ursprüngliche Nachricht- Von: Arnhoffer Károly [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 4. August 2005 15:01 An: Matthias Felgner; mono-devel-list@lists.ximian.com Betreff: RE: [Mono-devel-list] Compiling from sources Hi, I can not download from this svn: [EMAIL PROTECTED]:~ svn co svn://svn.myrealbox.com/source/trunk/mcs svn: Can't connect to host 'svn.myrealbox.com': Connection refused [EMAIL PROTECTED]:~ :( Arnhoffer Károly -Original Message- From: Matthias Felgner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 1:45 PM To: Arnhoffer Károly; mono-devel-list@lists.ximian.com Subject: AW: [Mono-devel-list] Compiling from sources Hi, please go here http://www.all-the-johnsons.co.uk/mono/mono-firstcompile.html and check out this tutorial. I used it and had no problems with it. Also make sure to check out the other sections regarding mono on this page. Note to Paul: Good Work there :-) Regards, --Matt -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Arnhoffer Károly Gesendet: Donnerstag, 4. August 2005 12:16 An: mono-devel-list@lists.ximian.com Betreff: [Mono-devel-list] Compiling from sources Hi all
[Mono-devel-list] Compiling from sources
Hi all, I am a very newbie in compiling Mono from sources (I have used RPMs so far) and I am not managed to do it successfully. I have sources from http://go-mono.com/sources/mono-1.1/mono-1.1.8.tar.gz and http://mono.ximian.com/daily/mono-1.1.8.20050803.tar.gz and 'make' runs into error here: make[7]: Entering directory `/usr/src/mono-1.1.8/mono-1.1.8/mcs/class/corlib' make all-local make[8]: Entering directory `/usr/src/mono-1.1.8/mono-1.1.8/mcs/class/corlib' make[8]: *** No rule to make target `System.Security.Cryptography/CryptographicUnexpectedOperationExcpetion.cs', needed by `../../class/lib/basic/mscorlib.dll'. Stop. make[8]: Leaving directory `/usr/src/mono-1.1.8/mono-1.1.8/mcs/class/corlib' make[7]: *** [do-all] Error 2 make[7]: Leaving directory `/usr/src/mono-1.1.8/mono-1.1.8/mcs/class/corlib' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/usr/src/mono-1.1.8/mono-1.1.8/mcs/class' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/usr/src/mono-1.1.8/mono-1.1.8/mcs' make[4]: *** [profile-do--basic--all] Error 2 make[4]: Leaving directory `/usr/src/mono-1.1.8/mono-1.1.8/mcs' make[3]: *** [profiles-do--all] Error 2 make[3]: Leaving directory `/usr/src/mono-1.1.8/mono-1.1.8/mcs' make[2]: *** [all-local] Error 2 make[2]: Leaving directory `/usr/src/mono-1.1.8/mono-1.1.8/runtime' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/mono-1.1.8/mono-1.1.8' make: *** [all] Error 2 It seems that files are needed. I found some files in the unpacked archive's root. I started to copy them to locations that were turned out while making. But it is a very slow practice. How should I do this the best? Thanks! Arnhoffer Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-devel-list] error BC0000
Hi All, I try to run an ASP.NET webapplication (compiled with MS Visual Studio, Windows XP Professional, code behind structure) on a Linux machine (SuSE 9.2) using Mono 1.1.8. The application is quite heavy weight so there can be several sources of errors but I can not now where to start to fix them. So when I try to run the application I get the following error page: Server Error in '/dms' Application Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Error message: (0,0) : error BC: Exception: System.NullReferenceException: Object reference not set to an instance of an object File name: /home/karnhoffer/public_html/WebDMS/Global.asax Source File: Line 1: ' -- Line 2: ' autogenerated Line 3: ' This code was generated by a tool. Line 4: ' Mono Runtime Version: 1.1.4322.573 Line 5: ' Line 6: ' Changes to this file may cause incorrect behavior and will be lost if Line 7: ' the code is regenerated. Line 8: ' /autogenerated Line 9: ' -- Line 10: Line 11: Option Explicit On Line 12: Option Strict Off Line 13: Line 14: Imports Microsoft.VisualBasic Line 15: Imports System Line 16: Imports System.Collections Line 17: Imports System.Collections.Specialized Line 18: Imports System.Configuration Line 19: Imports System.Text Line 20: Imports System.Text.RegularExpressions Line 21: Imports System.Web Line 22: Imports System.Web.Caching Line 23: Imports System.Web.Security Line 24: Imports System.Web.SessionState Line 25: Imports System.Web.UI Line 26: Imports System.Web.UI.WebControls Line 27: Imports System.Web.UI.HtmlControls Line 28: Line 29: Namespace ASP Line 30: Public Class Global_asax Line 31: Inherits WebDMS.Global Line 32: Line 33: Private Shared __intialized As Boolean = False Line 34: Line 35: Public Sub New() Line 36: If ((ASP.Global_asax.__intialized = False)) Then Line 37: ASP.Global_asax.__intialized = True Line 38: End If Line 39: End Sub Line 40: End Class Line 41: End Namespace The application runs fine on Windows IIS 5.1. Thanks in advance! Arnhoffer Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-devel-list] error BC0000
Hi, I have done what you had adviced and the results are the following: linux:/home/karnhoffer # mono --trace=NCore,mono_web_test /usr/lib/mono/1.0/xsp.exe --port 80 --root /home/karnhoffer/public_html/WebDMS/ --applications /dms:/home/karnhoffer/public_html/WebDMS/ xsp Listening on port: 80 Listening on address: 0.0.0.0 Root directory: /home/karnhoffer/public_html/WebDMS Hit Return to stop the server. EXCEPTION handling: FormatException EXCEPTION handling: FileNotFoundException EXCEPTION handling: FileNotFoundException EXCEPTION handling: FileNotFoundException ** (/usr/lib/mono/1.0/mbas.exe:23582): WARNING **: The class System.Windows.Forms.RichTextBox could not be loaded, used in /home/karnhoffer/public_html/WebDMS/bin/NCore.dll (token 0x011a) ** (/usr/lib/mono/1.0/mbas.exe:23582): WARNING **: The class System.Windows.Forms.RichTextBox could not be loaded, used in /home/karnhoffer/public_html/WebDMS/bin/NCore.dll (token 0x011a) ** (/usr/lib/mono/1.0/mbas.exe:23582): WARNING **: The class System.Windows.Forms.RichTextBox could not be loaded, used in /home/karnhoffer/public_html/WebDMS/bin/NCore.dll (token 0x011a) ** ERROR **: file critical-sections.c: line 89 (DeleteCriticalSection): assertion failed: (ret == 0) aborting... EXCEPTION handling: CompilationException EXCEPTION handling: SocketException EXCEPTION handling: IOException EXCEPTION handling: RequestLineException EXCEPTION handling: RequestLineException EXCEPTION handling: ThreadAbortException EXCEPTION handling: ThreadAbortException EXCEPTION handling: ThreadAbortException EXCEPTION handling: ThreadAbortException EXCEPTION handling: ThreadAbortException EXCEPTION handling: ThreadAbortException EXCEPTION handling: ThreadAbortException EXCEPTION handling: ObjectDisposedException linux:/home/karnhoffer # Ncore is a special assembly without wich this error does not occour, mono_web_test is the assembly of the web application. Arnhoffer Károly -Original Message- From: Matthias Felgner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 1:57 PM To: Arnhoffer Károly; mono-devel-list@lists.ximian.com Subject: AW: [Mono-devel-list] error BC Hi, Please try running the application using xsp. Try getting some valuable output with mono --trace (check man mono for options), and try limiting your point of failure with this. If you insist on using mod_mono, build mod_mono from source, passing the --enable-debug option to the autogen / configure script...Output is logged to /var/log/apache2/error.log What I mean is, call xsp as follows: mono --trace=[options_go_here] /path/to/xsp.exe Hope that helps to locate the issue --Matt -Ursprüngliche Nachricht- Von: Arnhoffer Károly [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 2. August 2005 13:56 An: Matthias Felgner Betreff: RE: [Mono-devel-list] error BC Hi, I am using mod_mono with Apache. Arnhoffer Károly -Original Message- From: Matthias Felgner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 1:46 PM To: Arnhoffer Károly Subject: AW: [Mono-devel-list] error BC Hi, Are you using XSP or Apache (Version?) with mod_mono? -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Arnhoffer Károly Gesendet: Dienstag, 2. August 2005 13:42 An: mono-devel-list@lists.ximian.com Betreff: [Mono-devel-list] error BC Hi All, I try to run an ASP.NET webapplication (compiled with MS Visual Studio, Windows XP Professional, code behind structure) on a Linux machine (SuSE 9.2) using Mono 1.1.8. The application is quite heavy weight so there can be several sources of errors but I can not now where to start to fix them. So when I try to run the application I get the following error page: Server Error in '/dms' Application Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Error message: (0,0) : error BC: Exception: System.NullReferenceException: Object reference not set to an instance of an object File name: /home/karnhoffer/public_html/WebDMS/Global.asax Source File: Line 1: ' -- Line 2: ' autogenerated Line 3: ' This code was generated by a tool. Line 4: ' Mono Runtime Version: 1.1.4322.573 Line 5: ' Line 6: ' Changes to this file may cause incorrect behavior and will be lost if Line 7: ' the code is regenerated. Line 8: ' /autogenerated Line 9: ' -- Line 10: Line 11: Option Explicit On Line 12: Option Strict Off Line 13: Line 14: Imports Microsoft.VisualBasic Line 15: Imports System Line 16: Imports System.Collections Line 17: Imports System.Collections.Specialized Line 18: Imports System.Configuration Line 19: Imports System.Text Line 20: Imports System.Text.RegularExpressions Line
[Mono-devel-list] NetworkStream
Hi, I have a server service created by Visual Studio .Net. It is using System.Net.Sockets.TcpClient.GetStream to get a stream to communicate on the network. When I run this service on a Windows machine (MS .NET framework) everything is fine, but when running on a Linux machine (SuSE 9.2, Mono 1.1.8 (from RPMs)) the service reads allways zeroes from the stream. Example: Private Function ReadData(ByRef tobjNetStream As NetworkStream, ByRef tbytBuffer As Byte(), ByVal tintFullSize As Integer) As Boolean Dim lintSize As Integer = 0 Dim llogReadEverything As Boolean Dim lintCounter As Integer ReDim tbytBuffer(tintFullSize - 1) While Not llogReadEverything While Not tobjNetStream.DataAvailable Thread.CurrentThread.Sleep(50) End While lintSize += tobjNetStream.Read(tbytBuffer, 0, tintFullSize) If lintSize = tintFullSize Then llogReadEverything = True End If End While Return True End Function A function like this gets zeroes from the stream when nonzero data was sent. Thanks! Arnhoffer Károly ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list