M
Mike
Hi all,
I'm trying to convert Petshop v3 to VB.NET
The following line is supposed to return an instance of a class, where path is
the DLL and className is the class within said DLL.
return (PetShop.IDAL.IAccount) Assembly.Load(path).CreateInstance(className);
For example, if path = "PetShop.SQLServerDAL" and className =
"PetShop.SQLServerDAL.Account", then the code will return an instance of:
PetShop.SQLServerDAL.Account
This works fine, and but in my VB implementation, I'm getting an error from
System.Reflection.Assembly.Load(path)
"Run-time exception thrown : System.IO.FileNotFoundException - File or assembly
name WebAccess.SQLServerDAL, or one of its dependencies, was not found."
I even added those DLL's to the GAC, and still am getting the error.
Any suggestions?
I'm trying to convert Petshop v3 to VB.NET
The following line is supposed to return an instance of a class, where path is
the DLL and className is the class within said DLL.
return (PetShop.IDAL.IAccount) Assembly.Load(path).CreateInstance(className);
For example, if path = "PetShop.SQLServerDAL" and className =
"PetShop.SQLServerDAL.Account", then the code will return an instance of:
PetShop.SQLServerDAL.Account
This works fine, and but in my VB implementation, I'm getting an error from
System.Reflection.Assembly.Load(path)
"Run-time exception thrown : System.IO.FileNotFoundException - File or assembly
name WebAccess.SQLServerDAL, or one of its dependencies, was not found."
I even added those DLL's to the GAC, and still am getting the error.
Any suggestions?