web config - DbProviderFactories for .NET Error -


i having trouble getting odp.net library work .net dbproviderfactories. getting following error code:

_dbfactory = dbproviderfactories.getfactory(providername); 

an error occurred creating configuration section handler system.data: column 'invariantname' constrained unique. value 'oracle.dataaccess.client' present.

with providername: oracle.dataaccess.client

and following entry in web.config:

  <system.data>     <dbproviderfactories>       <add name="oracle data provider .net" invariant="oracle.dataaccess.client" description=".net framework data provider oracle" type="oracle.dataaccess.client.oracleclientfactory, oracle.dataaccess, version=10.2.0.100, culture=neutral, publickeytoken=89b483f429c47342" />     </dbproviderfactories>   </system.data> 

does know wrong? don't think have set twice anywhere.

if installed odp.net (eg using oracle universal installer, opposed xcopy), you'll find same dbproviderfactories/add in machine.config.

so adding in web.config adding second time - so, duplicate oracle.dataaccess.client!


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -