Posted on 2004-04-21
I am trying to create an object that implements a standard interface.
I am using the following method
Function CreateComponentInstance(ByVal strAssembly As String, ByVal strType As String) As FTServiceInterface.IFTGenericService
Return System.Activator.CreateInstance(System.IO.Path.GetFileNameWithoutExtension(strAssembly), strType).Unwrap
I am always getting the following error
File or assembly name Test, or one of its dependencies, was not found.
But the file is definatley there!
I am calling using
dim objTest as FTServiceInterface.IFTGenericService
objtest = CreateComponentInstance("D:\DotNetCode\Generic Service\Test\bin\Test.dll","Test.Class1")
What could i be doing wrong?