我是按它的方法做的程序,可是我的程序中,每次执行到这里:
public static ICustomer Create()
{
string path = System.Configuration.ConfigurationSettings.AppSettings["SQL1"];
string className = path + ".SQLDo";return (ICustomer) Assembly.Load(path).CreateInstance(className);
}系统提示: 未处理的“System.NullReferenceException”类型的异常出现在 bll.dll 中。其他信息: 未将对象引用设置到对象的实例。怎么会这样的错误呢?哪里有错误,大哥们帮我找找,我也已经将SQL1的那个DLL COPY到主程序的BIN目录下了.
谢谢.