Server Error in '/' Application.

The message received was unexpected or badly formatted

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: The message received was unexpected or badly formatted

Source Error:


Line 1084:            SqlCommand cmdselect = new SqlCommand(sqlselect, myconn);
Line 1085:            cmdselect.Parameters.AddWithValue("@product_id", qryvalue);
Line 1086:            myconn.Open();
Line 1087:            cmdselect.CommandType = CommandType.Text;
Line 1088:            dataReader = cmdselect.ExecuteReader();

Source File: c:\inetpub\mensitaly\Products.aspx.cs    Line: 1086

Stack Trace:


[Win32Exception (0x80004005): The message received was unexpected or badly formatted]

[SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The message received was unexpected or badly formatted.)]
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +353
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +118
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +268
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +315
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +128
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +265
   System.Data.SqlClient.SqlConnection.Open() +133
   Products.showReviews() in c:\inetpub\mensitaly\Products.aspx.cs:1086
   Products.Page_Load(Object sender, EventArgs e) in c:\inetpub\mensitaly\Products.aspx.cs:101
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4110.0