Error: Method not found: Void Devart.Data.Oracle.OracleConnectionStringBuilder.set_LicenseKey(System.String)

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
hansjoergp
Posts: 39
Joined: Wed 31 May 2017 14:33

Error: Method not found: Void Devart.Data.Oracle.OracleConnectionStringBuilder.set_LicenseKey(System.String)

Post by hansjoergp » Thu 23 May 2019 13:53

Hello,

I'm using the nuget package for Devart.Data.Oracle and as Licensing mechanism I set the LicenseKey property of OracleConnectionStringBuilder. Now I have the problem, that in the Develop machine I get allways an exception with the error "Method not found: Void Devart.Data.Oracle.OracleConnectionStringBuilder.set_LicenseKey(System.String)"
I have a asp.net project (.net 4.7.2).
I think the problem is, that on the local machine it is using the assembly from the gac (installed with the Devart installer)
On the other pc's where Devart is not installed it works fine.
Whow I can solve this problem?
Best regards
Hansjörg

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Error: Method not found: Void Devart.Data.Oracle.OracleConnectionStringBuilder.set_LicenseKey(System.String)

Post by Shalex » Fri 24 May 2019 11:30

hansjoergp wrote: Thu 23 May 2019 13:53I think the problem is, that on the local machine it is using the assembly from the gac (installed with the Devart installer)
On the other pc's where Devart is not installed it works fine.
Whow I can solve this problem?
That is the reason of the issue. Please reinstall dotConnect for Oracle and select the "Do not install assemblies in the GAC" option in Setup Wizard.

JIC: you can run your project in the debug mode, navigate to Debug > Windows > Modules and check Path values of Devart.* assemblies loaded in the process of your application ->
a) .NET Framework Devart.* assemblies are loaded from C:\Windows\assembly\GAC_MSIL\
b) .NET Standard (.NET Core) Devart.* assemblies are loaded from C:\Users\xxxxx\.nuget\packages\ or the \packages\ folder of your project

Post Reply