AdoHelper Dependency Error

andrewh

New member
Joined
Feb 15, 2005
Messages
1
Hi

I seem to be having some strange problems with the GotDotNet.ApplicationBlocks.Data.AdoHelper class. Ive been developing some classes over the last couple of weeks which use the AdoHelper to do database (MSSQL) access. This was going really well, until I tried them on a machien other than my development system. When deploying my assemblies to another system, I get a FileNotFoundException in the type initialiser of the AdoHelper. The message says that it cant find a dependency, but this seems unlikely since as far as I can tell, it only relies on the .Net framework libraries.

From the stack trace it looks as though the error occurs within the Reflection library..

The line of code that throws the exception is:

Code:
AdoHelper adoHelper = AdoHelper.CreateHelper("GotDotNet.ApplicationBlocks.Data","GotDotNet.ApplicationBlocks.Data.SqlServer");

The interesting thing is that this will work fine on my work development machine, but not on any other machine. Also, if I were to directly create the GotDotNet.ApplicationBlocks.Data.SqlServer, that also works on any machine.

Anyone got any ideas? Id just get rid of the AdoHelper, but the classes theyre in implement interfaces specified by one of our customers, so Id rather not go through the aggravation of convincing them to change the interface.
 
Back
Top