Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I created an application in vb.net.The application is working smoothly in localhost.While I hosted the application in another server.It is getting an error
"System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"


The ODBC Connection String is
XML
<add name="CStringODBC" connectionstring="DRIVER={MySQL ODBC 3.51 Driver}; SERVER=17.19.18.20;user id=testUser;Password=123456;database=testdb;OPTION=3;" providername="System.Data.Odbc" />


Please help
Posted
Updated 15-Jul-15 20:28pm
v2

1 solution

You either don't have the datasource defined on the Host machine or the account running the program doesn't see it.

Ensure that the DSN is defined on the other server. You can make the data source a system data source in order to be visible to all users.

Also check that you're using the correct version of the ODBC driver. If the app is 32 bit then 32 bit DSN and for 64 bit a 64 bit DSN.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900