0

Is there any class similar to ProvidersHelper but not for web? I want to instantiate a collection of providers. Actually I'm using CodeSmith & Nettiers, and the db provider is Oracle. It generated a provider section to be added at app.config, and i dont know why it uses System.Web.Configuration classes or why at this section it says SQLClient instead of OracleClient.

The error that I'm getting is:

"An unhandled exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Web.dll

Additional information: Could not load file or assembly 'LLPA.Data.OracleClient' or one of its dependencies. The system cannot find the file specified."

Any idea or solution is appreciated.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

3 Answers3

1

It is probably a bug if it refers to SQL Server and you are using Oracle. I'd recommend logging a bug on the .netTiers issue tracker. I'd recommend taking a look at all of the LLPA.Data.OracleClient project references are being built and ensure that they are in your bin directory of your compiled application.

Blake Niemyjski
  • 3,432
  • 3
  • 25
  • 41
0

Check the DLL LLPA.Data.OracleClient is in the bin folder or the GAC. If that doesn't work look into using Fuslogvw.exe.

RichardOD
  • 28,883
  • 9
  • 61
  • 81
0

I hadn't had added the reference of LLPA.Data.OracleClient to my application, that's why it couldn't find it.

CoffeeRain
  • 4,460
  • 4
  • 31
  • 50