Timeout expired

 


Unable to cast object of type 'System.String' to type 'System.Data.OleDb.OleDbConnection'.

Server Error in '/' Application.

Unable to cast object of type 'System.String' to type 'System.Data.OleDb.OleDbConnection'.

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.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Data.OleDb.OleDbConnection'.

Source Error:


Line 183:        
Line 184:
Line 185:        cmdSelect = New System.Data.OleDb.OleDbCommand(presql + sql, conn)
Line 186:        try    
Line 187:            dtrReader = cmdSelect.ExecuteReader()

Source File: C:\Inetpub\wwwroot\worldsurfaris\webroot\_smi\secure\functions.aspx    Line: 185

Stack Trace:


[InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Data.OleDb.OleDbConnection'.]
   ASP.au_boat_package_aspx.GetRS(Object conn, Object sql) in C:\Inetpub\wwwroot\worldsurfaris\webroot\_smi\secure\functions.aspx:185
   ASP.au_boat_package_aspx.IP2Loc(Object ip) in C:\Inetpub\wwwroot\worldsurfaris\webroot\_smi\secure\functions.aspx:707
   ASP.au_boat_package_aspx.GetGsCode() in C:\Inetpub\wwwroot\worldsurfaris\webroot\_smi\secure\functions.aspx:61
   ASP.au_boat_package_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\Inetpub\wwwroot\worldsurfaris\webroot\_smi\secure\functions.aspx:32
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Version Information: Microsoft .NET Framework Version:2.0.50727.3634; ASP.NET Version:2.0.50727.3634