"Provider cannot be found. It may not be properly installed Error --2146824582"

mnaik

New Member
Hi,

We have a script file that excutes following code snippet:-

var gOledbProvider = "Exoledb.Datasource"
//var gOledbProvider = "MSDAIPP.DSO"

var oCon = CreateCOMObject("ADODB.Connection");
oCon.ConnectionString = sURL;
oCon.Provider = gOledbProvider;
oCon.Open( sURL );

The URL is valid, can be browsed successfully from IE. The last line throws an error for either of the providers. Error is as follows:-

"Provider cannot be found. It may not be properly installed" Error -2146824582

This piece of code excutes successfully if exchange is hosted on Windows 2008 and application using above code is also hosted on WIndows 2008.

However, if Exchange is hosted on Windows 2003 and application using above code is also hosted on Windows 2008 (64 bit), it fails with above error. Tried with both Office 2003 and Office 2007 in this case.

To add up, this code snippet is in a script file, no IIS required.

A quick solution is really appreciated.
 

My Computer

Back
Top