[Mono-list] Mono with Microsoft SQL Server

bhanu2217 bhanu2217 at yahoo.com
Wed Dec 17 06:14:41 EST 2008

I am using Mono on windows with Visual studio 2005 and SQL server 2005.

I have created a website which reads from database i.e Microsoft Sql
The site works fine on VS2005/IIS.

but when i run it on mono/XSP i get the following error.

An existing connection was forcibly closed by the remote host.
Description: HTTP 500. Error processing request.

Stack Trace:

System.Net.Sockets.SocketException: An existing connection was forcibly
closed by the remote host.

  at System.Net.Sockets.Socket.ReceiveFrom_nochecks (System.Byte[] buf,
Int32 offset, Int32 size, SocketFlags flags, System.Net.EndPoint&
remote_end) [0x00000] 
  at System.Net.Sockets.Socket.ReceiveFrom (System.Byte[] buf,
System.Net.EndPoint& remote_end) [0x00000] 
  at System.Net.Sockets.UdpClient.Receive (System.Net.IPEndPoint& remoteEP)
  at System.Data.SqlClient.SqlConnection+SqlMonitorSocket.DiscoverTcpPort
(Int32 timeoutSeconds) [0x00000] 
  at System.Data.SqlClient.SqlConnection.DiscoverTcpPortViaSqlMonitor
(System.String ServerName, System.String InstanceName) [0x00000] 
  at System.Data.SqlClient.SqlConnection.ParseDataSource (System.String
theDataSource, System.Int32& thePort, System.String& theServerName)
  at System.Data.SqlClient.SqlConnection.Open () [0x00000] 
  at _Default.Button1_Click (System.Object sender, System.EventArgs e)
  at System.Web.UI.WebControls.Button.OnClick (System.EventArgs e) [0x00000] 
  at System.Web.UI.WebControls.Button.RaisePostBackEvent (System.String
eventArgument) [0x00000] 
(System.String eventArgument) [0x00000] 
  at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler
sourceControl, System.String eventArgument) [0x00000] 
  at System.Web.UI.Page.RaisePostBackEvents () [0x00000] 
  at System.Web.UI.Page.ProcessRaiseEvents () [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)

Fedora 10
Version information:  
Mono Version: 2.0.50727.42
ASP.NET Version: 2.0.50727.42
Mono Develop Version: 2.0 Alpha1(1.9)
View this message in context: http://www.nabble.com/Mono-with-Microsoft-SQL-Server-tp21051371p21051371.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list