V
V. Jenks
I'm using reflection to dynamically load an assembly and
even though I'm sure the assembly is present, I keep
getting an error telling me the "assembly or one of its
references can't be found".
I do in fact have a reference to the assembly in question
in the project and I even tried declaring it with "using"
at the top of the class file.
Here's the method that fails:
public IDataAdapter CreateAdapter(string query,
IDbConnection connection)
{
object[] args = {query, connection};
//load the assembly and class
Assembly asmb = Assembly.Load("FirebirdSql.Data.Firebird");
Type type = asmb.GetType("FbDataAdapter");
IDataAdapter da = Activator.CreateInstance(type, args)
as IDataAdapter;
return da;
}
The "FirebirdSql.Data.Firebird" assembly can't be found,
even though it's there. It's in my GAC and available as
I'm using it elsewhere w/o a problem.
What could be the problem?
Thanks!
-v
even though I'm sure the assembly is present, I keep
getting an error telling me the "assembly or one of its
references can't be found".
I do in fact have a reference to the assembly in question
in the project and I even tried declaring it with "using"
at the top of the class file.
Here's the method that fails:
public IDataAdapter CreateAdapter(string query,
IDbConnection connection)
{
object[] args = {query, connection};
//load the assembly and class
Assembly asmb = Assembly.Load("FirebirdSql.Data.Firebird");
Type type = asmb.GetType("FbDataAdapter");
IDataAdapter da = Activator.CreateInstance(type, args)
as IDataAdapter;
return da;
}
The "FirebirdSql.Data.Firebird" assembly can't be found,
even though it's there. It's in my GAC and available as
I'm using it elsewhere w/o a problem.
What could be the problem?
Thanks!
-v