mutu
asked on
provider is not registered on the local machine
Hello Experts,
I'm new to web services and connecting to Oracle. I am using Oracle Express Edition 11.2.0.2.0 and running on Windows 7 64 bit machine. the connection string I'm using is:
Provider=OraOLEDB.Oracle;D ata Source=XE;User ID=system;Password=pwd01
I get the following error when the web service tries to connect to the DB:
System.InvalidOperationExc eption: The 'OraOLEDB.Oracle' provider is not registered on the local machine.
at System.Data.OleDb.OleDbSer vicesWrapp er.GetData Source(Ole DbConnecti onString constr, DataSourceWrapper& datasrcWrapper)
at System.Data.OleDb.OleDbCon nectionInt ernal..cto r(OleDbCon nectionStr ing constr, OleDbConnection connection)
at System.Data.OleDb.OleDbCon nectionFac tory.Creat eConnectio n(DbConnec tionOption s options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
at System.Data.ProviderBase.D bConnectio nFactory.C reateNonPo oledConnec tion(DbCon nection owningConnection, DbConnectionPoolGroup poolGroup)
at System.Data.ProviderBase.D bConnectio nFactory.G etConnecti on(DbConne ction owningConnection)
at System.Data.ProviderBase.D bConnectio nClosed.Op enConnecti on(DbConne ction outerConnection, DbConnectionFactory connectionFactory)
at System.Data.OleDb.OleDbCon nection.Op en()
at RealPropertyWebServices.cl sDataAcces s.OpenData base() in C:\Users\kmfrancis\Documen ts\Visual Studio 2010\Projects\RealProperty Services\R ealPropert yApplicati onSolution \RealPrope rtyWebServ ices\clsDa taAccess.v b:line 6984
at RealPropertyWebServices.Re alProperty WebService s.GetDocum entTypes() in C:\Users\kmfrancis\Documen ts\Visual Studio 2010\Projects\RealProperty Services\R ealPropert yApplicati onSolution \RealPrope rtyWebServ ices\RealP ropertyWeb Services.a smx.vb:lin e 189
What am I doing wrong?
I'm new to web services and connecting to Oracle. I am using Oracle Express Edition 11.2.0.2.0 and running on Windows 7 64 bit machine. the connection string I'm using is:
Provider=OraOLEDB.Oracle;D
I get the following error when the web service tries to connect to the DB:
System.InvalidOperationExc
at System.Data.OleDb.OleDbSer
at System.Data.OleDb.OleDbCon
at System.Data.OleDb.OleDbCon
at System.Data.ProviderBase.D
at System.Data.ProviderBase.D
at System.Data.ProviderBase.D
at System.Data.OleDb.OleDbCon
at RealPropertyWebServices.cl
at RealPropertyWebServices.Re
What am I doing wrong?
Did you install the Oracle client tools on the machine too?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes the .Net web service is 32Bit and the web service is running on the same server as the XE instance. The Oracle install is 32Bit - I don't think Oracle has a 64Bit version for 11.2.0.2.0.
I will download the drivers and try it ...
Thank you for your help!
I will download the drivers and try it ...
Thank you for your help!
ASKER
Carl_tawn - What are the client tools and where do I get them?
ASKER
I downloaded the Oracle tools and ran the sql scripts but I still get the same error and I don't know what else to try!
It's been a while since I had to install the drivers but I remember there being an install process of some sort for the OLEDb drivers.
Did you run that?
There should be a readme type file as part of the unzipped download that tells you how to install them.
Did you run that?
There should be a readme type file as part of the unzipped download that tells you how to install them.
In Windows go to:
Start > Settings > Control Panel > Administrative Tools > Data Sources (ODBC)
Look under the "Drivers" tab. What, if anything, is listed for Oracle?
Start > Settings > Control Panel > Administrative Tools > Data Sources (ODBC)
Look under the "Drivers" tab. What, if anything, is listed for Oracle?
>>Look under the "Drivers" tab. What, if anything, is listed for Oracle?
I can install the OleDB drivers and not the ODBC drivers. Not sure what looking for the ODBC drivers will help solve.
I can install the OleDB drivers and not the ODBC drivers. Not sure what looking for the ODBC drivers will help solve.
ASKER
Under the Drivers tab there are two items listed:
SQL Server
SQL Server Native client
I looked at the readme file but didn't see anything about ODBC drivers. I'm going to look at the readme file again to see if I missed anything and I will look into ODBC drivers.
SQL Server
SQL Server Native client
I looked at the readme file but didn't see anything about ODBC drivers. I'm going to look at the readme file again to see if I missed anything and I will look into ODBC drivers.
>>if I missed anything and I will look into ODBC drivers.
I suggest not using ODBC. They are problematic and typically have limitations that other native drivers do not have.
If you are considering changing drivers, I suggest ODP.Net.
I suggest not using ODBC. They are problematic and typically have limitations that other native drivers do not have.
If you are considering changing drivers, I suggest ODP.Net.
ASKER
Experts thank you for all your help!! This is a 64 vs 32 bit conflict. The problem went away when I enabled 32 bit applications in IIS.
1. Start IIS (Start -> type inetmgr in search box)
2. Click on Application Pools in left panel, list of Application Pools will display in right panel
3. Select DefaultAppPool and name of the virtual directory of the app then click on Advanced Settings in Action Panel under Edit Application Pool.
4. Enable 32-Bit Applications = True for both
I will accept solution and award points.
1. Start IIS (Start -> type inetmgr in search box)
2. Click on Application Pools in left panel, list of Application Pools will display in right panel
3. Select DefaultAppPool and name of the virtual directory of the app then click on Advanced Settings in Action Panel under Edit Application Pool.
4. Enable 32-Bit Applications = True for both
I will accept solution and award points.
ASKER
Your comments were helpful to narrow the search for a solution. Thank you very much!