System.ArgumentException was unhandled by user code
Message=The specified store provider cannot be found in the configuration, or is not valid.
Source=System.Data.Entity
StackTrace:
at System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
at System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString)
at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName)
...
InnerException: System.ArgumentException
Message=Unable to find the requested .Net Framework Data Provider. It may not be installed.
A bit of research discovered that 32-Bit Applications are disabled by default in the IIS Application Pool. As soon as I changed Enable 32-Bit Applications to True everything worked fine.
I wouldn't be surprised if you run into more issues. I had to use ODAC on my last assignment and it was kind of a pain to deal with.
ReplyDeleteHi:
ReplyDeleteDid you run into any issues when debugging through VS?
I'm using VS 2010, Oracle 10g, ODAC (Oracle.DataAcess.dll). My solution includes a WPF client and a WCF service (which is supposed to talk to ORACLE). I run both the client app and WCF in VS 2010 (so service is run in WCFSvsHost).
When I attempt to create a new Oracle connection, I get the following:
The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception." InnerException {"The provider is not compatible with the version of Oracle client"} System.Exception {Oracle.DataAccess.Client.OracleException}
Any ideas on how to resolve this?
Thanks,
JohnB
Where is your WCF service being hosted? This fix is applied to an IIS app pool which must be used by the site/service to be effective.
Deleteyou rock. New machine and I totally forgot about that. Thank you!!
ReplyDeletetks a lot
ReplyDeletethanks it work well
ReplyDelete