[Mono-list] Error 500 overnight

Charles Martin charles@acolytecommunication.com
Tue, 23 Nov 2004 09:16:15 -0500


This is a multi-part message in MIME format.
--------------060109090301010402050709
Content-Type: multipart/alternative;
 boundary="------------030204030000010102020103"


--------------030204030000010102020103
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Well guys,
    I finally got mod-mono working by changing the permissions on /root 
(probably the hackiest solution but it enables me to test my app..) But 
now I have this strange problem : My server (apache2 + mod-mono + 
xsp...)  is up and running the whole day without any troubles but, when 
I come back to work in the morning, I have this strange error :

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: Write failure ---> System.Net.Sockets.SocketException: The socket has been shut down


(I have attached the complete stack trace...)

If it may help diagnose the problem, I'm using the official 
MySql.Data.dll (supposedly Win32 only but it seems to work fine with 
mono) instead of the ByteFx one because it didn't support correctly the 
MediumText fields.

Thanks alot.

-- 


Charles Martin  Programmeur analyste
819.378.4242    *acolyte*communication.com
charles@acolytecommunication.com

--------------030204030000010102020103
Content-Type: multipart/related;
 boundary="------------010209070405080701060502"


--------------010209070405080701060502
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Well guys,<br>
&nbsp;&nbsp;&nbsp; I finally got mod-mono working by changing the permissions on /root
(probably the hackiest solution but it enables me to test my app..) But
now I have this strange problem : My server (apache2 + mod-mono +
xsp...)&nbsp; is up and running the whole day without any troubles but, when
I come back to work in the morning, I have this strange error : <br>
<pre>System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.IOException: Write failure ---&gt; System.Net.Sockets.SocketException: The socket has been shut down

</pre>
(I have attached the complete stack trace...)<br>
<br>
If it may help diagnose the problem, I'm using the official
MySql.Data.dll (supposedly Win32 only but it seems to work fine with
mono) instead of the ByteFx one because it didn't support correctly the
MediumText fields.<br>
<br>
Thanks alot.<br>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.05010901.04030007@acolytecommunication.com" alt=""
 border="0"><br>
<br>
<font style="font-size: 12px;" color="#60614d"
 face="Arial, Helvetica, Trebuchet MS, Avant Garde, AvantGarde Bk BT"><font
 color="#7096af">Charles Martin</font>&nbsp;&nbsp;Programmeur analyste<br>
819.378.4242&nbsp;&nbsp;&nbsp;&nbsp;<b>acolyte</b>communication.com<br>
<a class="moz-txt-link-abbreviated" href="mailto:charles@acolytecommunication.com">charles@acolytecommunication.com</a></font><br>
</div>
</body>
</html>

--------------010209070405080701060502
Content-Type: image/gif;
 name="acolytetag.gif"
Content-Transfer-Encoding: base64
Content-ID: <part1.05010901.04030007@acolytecommunication.com>
Content-Disposition: inline;
 filename="acolytetag.gif"

R0lGODlhhgAzAMQAALKzqfj4+JOUh+jo5W2UrlpbRtna1YmKe2lqV3Z3ZqipnsrKw8LCu7PH
1Jm0xtTUzoOkueHh3dfi6MrY4VRVP/Ly8Obt8V1eSvD09ru8s8/PyYCAcZ2ekuzs6mBhTf//
/yH5BAAAAAAALAAAAACGADMAAAX/4CeOZGmeaKquYme8RsXOdG3feE5mSY8suqBwSMQBCpcL
hVFsOp9CwMXjWUKv2KxJSrUKA5yD4MAJaM9YbpUprCQoyoQMTW+qvUF3wVOQ1/9Dd2x5CXt9
c4CJN4JDenx+ipE0jG2Fj4iJEg0QnJwODRgpFQsCPaYCDJglHRmlphsKBltTax8VHbgdqiS5
uLcRln0RuANmJBWtpgkCGR1CFg4E0tPUDScLhUnaSX0aJgEKfNvcFwIDJIwKcBcFGygMSHHh
tFQe2hQPJNjx2wUIGcZuYIBAreA0a+gK7LG3jYo/ICMqCEBCZVyXBBFGMIqAgF4+EwcWUlDA
oJ7JevhG/2RgV7EhOwU5GhR0QJMgNQsjHrDk42HDmI4OE5wToa7eBQQCBGzg+cjZB0oCK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LvKbMABv2w6qMECgtXa
7QodaADA+ws88B322vdwgALQ6hCAgOXWUMEAAPTeCToAwAH0DwfSSdQTCAjA6EkiEiOiwuYe
SMEzdOBtfFBRBTf4hArMjQPxOhIHR9gEq2zlWj4joQqHACumXWxgK4whDWAVDyQcIH8yzOEK
KgDCBJBBfjoMohCHSMQiGvGISEyiEpfIRA4OgAEAWIAZHvC+8TAAIBXISACueA4DnCMA1KkA
F5WWgf8MNOYBGUEGALxhADNEIIvniEAGIDIAZ1TAixlYYwkMAICPyNGPc3jjqyKggTKiUQZy
xMsD7JgRKjbmjq+ShQsekMcIyBEAEcgeADADMAUAYACeBIACHgA9DnjSHGMIwGb6ZcrsRSBt
ADgABgLgAZg8IAGtIIUzYgGADBiAGaYMQBQpxgxm+OmXrTDAA4AJEw7IAhyyYIACNCAGUr6A
mciKjAFGyYFWZGQAkckAAp4yNwWYEZYcAAAbDqABDjxABswYgDKjCJ0YtEsBGIAOA+o5gD5K
JAALuN8dD7OAtGkgAs5UpwCAUJwHMMAbCOXiaDQggAi8YANpvGEsbgYAWRT/VGVA6KOublbR
MWSgn6SQp1MEQEWdjW+UzlAnQns5sn3erwOvPEAf3weTbWaSoq0gCkxeuU0xlEGnCwXGJgcw
hlJkMgMHGAoHSpSPiG7gABMU4xgWAK50aWCjwszIRzPAhDW6Z2QLcCYzFICMpAxlkyTBzAXF
gAEF+CSdyXkARjkgAzAEoAPsHGVUOVJFYKjoAVG1iiflNz5YCGB85pDBAWTQUXW+j00C6AAU
VWZO8l0xXRnw5GAmu9HaMEG0ZH3KNm05WVkWrZtAWGhfEOAZpKRrDhtFxQGumg8QbuABARXA
C4ZDzXQWMiNBFUFAjWtGcnqmA6hYEAdiKkcpZm+jPTwUnxg3sIF5DQCEbAWHGDJi1w0w4IKw
kAEDgGBG8Qr3tk/55Bg8IwIMbEAWB0vXVReQAe5+SIfca2IJQgAAOw==
--------------010209070405080701060502--

--------------030204030000010102020103--

--------------060109090301010402050709
Content-Type: text/html;
 name="error500.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="error500.html"

<html>
<title>Error 500</title><body bgcolor="white"><h1><font color="red">Server error in '/' application</font></h1><hr>
<h2><font color="maroon"><i></i></font></h2>
<b>Description: </b>Error processing request.
<p>
<b>Error Message: </b>HTTP 500. 
<p>
<b>Stack Trace: </b><table summary="Stack Trace" width="100%" bgcolor="#ffffc">
<tr><td><code><pre>
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.IOException: Write failure ---&gt; System.Net.Sockets.SocketException: The socket has been shut down
in &lt;0x00078&gt; System.Net.Sockets.Socket:Send_nochecks (byte[],int,int,System.Net.Sockets.SocketFlags)
in &lt;0x000c3&gt; System.Net.Sockets.Socket:Send (byte[],int,int,System.Net.Sockets.SocketFlags)
in &lt;0x000dd&gt; System.Net.Sockets.NetworkStream:Write (byte[],int,int)
--- End of inner exception stack trace ---

in &lt;0x0011e&gt; System.Net.Sockets.NetworkStream:Write (byte[],int,int)
in &lt;0x0008f&gt; System.IO.BufferedStream:Flush ()
in &lt;0x000f9&gt; MySql.Data.MySqlClient.PacketWriter:Flush ()
in &lt;0x0008d&gt; MySql.Data.MySqlClient.NativeDriver:ExecuteCommand (MySql.Data.MySqlClient.DBCmd,byte[])
in &lt;0x00020&gt; MySql.Data.MySqlClient.NativeDriver:Close ()
in &lt;0x00179&gt; MySql.Data.MySqlClient.MySqlPool:GetPooledConnection ()
in &lt;0x0004e&gt; MySql.Data.MySqlClient.MySqlPool:GetConnection ()
in &lt;0x00124&gt; MySql.Data.MySqlClient.MySqlPoolManager:GetConnection (MySql.Data.MySqlClient.MySqlConnectionString)
in &lt;0x00078&gt; MySql.Data.MySqlClient.MySqlConnection:Open ()
--- End of inner exception stack trace ---

in &lt;0x000fb&gt; System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in &lt;0x0001d&gt; System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in &lt;0x00044&gt; System.Reflection.ConstructorInfo:Invoke (object[])
in &lt;0x00153&gt; System.Activator:CreateInstance (System.Type,bool)
in &lt;0x00010&gt; System.Activator:CreateInstance (System.Type)
in &lt;0x0002e&gt; System.Web.UI.TemplateControlParser:GetCompiledInstance ()
in &lt;0x00050&gt; System.Web.UI.PageParser:GetCompiledPageInstance (string,string,System.Web.HttpContext)
in &lt;0x00011&gt; System.Web.UI.PageHandlerFactory:GetHandler (System.Web.HttpContext,string,string,string)
in &lt;0x0034e&gt; System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext,string,string,string)
in &lt;0x0011f&gt; CreateHandlerState:Execute ()
in &lt;0x00084&gt; StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&amp;)

</pre></code>
</td></tr>
</table>
<p>
<hr>
</body>
</html>
<!--
System.Web.HttpException:  ---&gt; System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.IOException: Write failure ---&gt; System.Net.Sockets.SocketException: The socket has been shut down
in &lt;0x00078&gt; System.Net.Sockets.Socket:Send_nochecks (byte[],int,int,System.Net.Sockets.SocketFlags)
in &lt;0x000c3&gt; System.Net.Sockets.Socket:Send (byte[],int,int,System.Net.Sockets.SocketFlags)
in &lt;0x000dd&gt; System.Net.Sockets.NetworkStream:Write (byte[],int,int)
--- End of inner exception stack trace ---

in &lt;0x0011e&gt; System.Net.Sockets.NetworkStream:Write (byte[],int,int)
in &lt;0x0008f&gt; System.IO.BufferedStream:Flush ()
in &lt;0x000f9&gt; MySql.Data.MySqlClient.PacketWriter:Flush ()
in &lt;0x0008d&gt; MySql.Data.MySqlClient.NativeDriver:ExecuteCommand (MySql.Data.MySqlClient.DBCmd,byte[])
in &lt;0x00020&gt; MySql.Data.MySqlClient.NativeDriver:Close ()
in &lt;0x00179&gt; MySql.Data.MySqlClient.MySqlPool:GetPooledConnection ()
in &lt;0x0004e&gt; MySql.Data.MySqlClient.MySqlPool:GetConnection ()
in &lt;0x00124&gt; MySql.Data.MySqlClient.MySqlPoolManager:GetConnection (MySql.Data.MySqlClient.MySqlConnectionString)
in &lt;0x00078&gt; MySql.Data.MySqlClient.MySqlConnection:Open ()
--- End of inner exception stack trace ---

in &lt;0x000fb&gt; System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in &lt;0x0001d&gt; System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in &lt;0x00044&gt; System.Reflection.ConstructorInfo:Invoke (object[])
in &lt;0x00153&gt; System.Activator:CreateInstance (System.Type,bool)
in &lt;0x00010&gt; System.Activator:CreateInstance (System.Type)
in &lt;0x0002e&gt; System.Web.UI.TemplateControlParser:GetCompiledInstance ()
in &lt;0x00050&gt; System.Web.UI.PageParser:GetCompiledPageInstance (string,string,System.Web.HttpContext)
in &lt;0x00011&gt; System.Web.UI.PageHandlerFactory:GetHandler (System.Web.HttpContext,string,string,string)
in &lt;0x0034e&gt; System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext,string,string,string)
in &lt;0x0011f&gt; CreateHandlerState:Execute ()
in &lt;0x00084&gt; StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&amp;)
--- End of inner exception stack trace ---

-->

--------------060109090301010402050709--