Server Error in '/' Application.

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

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.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Source Error:


Line 121:            Cmd.CommandText = sqlStr2
Line 122:            Cmd.Connection = cn
Line 123:            cn.Open()
Line 124:            rs = Cmd.ExecuteReader(CommandBehavior.CloseConnection)
Line 125:            Do While rs.Read()

Source File: D:\w003527\bystromdesign.se\WWWRoot\usercontrols\StartPageUserControl.ascx.vb    Line: 123

Stack Trace:


[OdbcException (0x80131937): ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified]
   System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) +1156818
   System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle) +95
   System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection, OdbcConnectionString connectionOptions) +53
   System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +55
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +29
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4928028
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.Odbc.OdbcConnection.Open() +40
   usercontrols_StartPageUserControl.getLatestNews(Object numPosts) in D:\w003527\bystromdesign.se\WWWRoot\usercontrols\StartPageUserControl.ascx.vb:123
   usercontrols_StartPageUserControl.initControl() in D:\w003527\bystromdesign.se\WWWRoot\usercontrols\StartPageUserControl.ascx.vb:57
   MasterPage4.Page_load(Object obj, EventArgs e) in D:\w003527\bystromdesign.se\WWWRoot\MasterPage4.master.vb:84
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175