• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6203
  • Last Modified:

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

Hi ,
when ia m trying to unit test my application using Visual studio unit tests when i am testing the webservice call my test is failing and giving me this message .
as i am doing this as part of migration from earlier version..

"Test method BusinessLogicUnitTest.xxRepositoryTest.IsOpenTest threw exception:  System.Web.Services.Protocols.SoapException: Server was unable to process request. --> ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified."

System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
BusinessLogic.Info.Isxyz(String osAttrCode, String osDateInQuestion, String osTimeInQuestion) in
  • 2
1 Solution
The error message says Data Source Name not found.  If this is a webserver application, create a System Data Source Name on the webserver or if its a desktop application, create it on your desktop.
To create Data Source Name:
Control Panel => Administrative Tools => Data Souces (ODBC)

Please select System DSN so that it applies for all users
Swetha_aJaXAuthor Commented:
It is happening when i am calling web service from my application.
is there any problem withthe webservice or my app ?
From the error message, it appears the issue is in the WebService.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now