HighTechTalks DotNet Forums  

IM002

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss IM002 in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Pachu
 
Posts: n/a

Default IM002 - 04-30-2007 , 02:49 PM






Hi, im building a connection string for Odbc data provider, without
DSN because i dont want to create a dsn in each client machine (there
are a lot) the string is complete, but i get this exception below the
text of mail.

I think is a problem with DRIVER=IBM INFORMIX ODBC DRIVER but i dont
understan putting the string via server explorer it connects ok, but
building it comes the error..


Message="ERROR [IM002] [Microsoft][Administrador de controladores
ODBC] No se encuentra el nombre del origen de datos y no se especificó
ningún controlador predeterminado"
Source=""
ErrorCode=-2146232009
StackTrace:
en System.Data.Odbc.OdbcConnection.HandleError(OdbcHa ndle
hrHandle, RetCode retcode)
en System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcCo nnection
connection, OdbcConnectionString constr, OdbcEnvironmentHandle
environmentHandle)
en
System.Data.Odbc.OdbcConnectionFactory.CreateConne ction(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool,
DbConnection owningObject)
en
System.Data.ProviderBase.DbConnectionFactory.Creat eNonPooledConnection(DbConnection
owningConnection, DbConnectionPoolGroup poolGroup)
en
System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection
owningConnection)
en
System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory)
en System.Data.Odbc.OdbcConnection.Open()

in settings:

<connectionStrings>
<add name="OrigenConfiguracionBaseDatos"
providerName="System.Data.Odbc"
connectionString="DRIVER={IBM INFORMIX ODBC
DRIVER};SRVR=desa1db;HOST=proteo;SERV=26000;DB=bas urero" />
</connectionStrings>

i try removing brackes with no result, if i use a DSN works fine

Some idea ??


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.