The project uses the factory model.
Public static idocument createidocument ()
{
String classname = path + ". documentsqldal ";
Return (idocument) Assembly. Load (PATH). createinstance (classname );
}
This section Code Everything works properly locally,
However, an exception occurs after the same code is remoting:
System. nullreferenceexception: object reference is not set to the instance of the object.
In config.. ctor ()
In config. get_instance ()
In Dal. sqlserver. documentsqldal .. ctor ()
--- End of the internal exception stack trace ---
In system. runtimetypehandle. createinstance (runtimetype type, Boolean publiconly, Boolean nocheck, Boolean & canbecached, runtimemethodhandle & ctor, Boolean & bneedsecuritycheck)
In system. runtimetype. createinstanceslow (Boolean publiconly, Boolean fillcache)
In system. runtimetype. createinstanceimpl (Boolean publiconly, Boolean skipvisibilitychecks, Boolean fillcache)
In system. activator. createinstance (type, Boolean nonpublic)
In system. runtimetype. createinstanceimpl (bindingflags bindingattr, binder, object [] ARGs, cultureinfo culture, object [] activationattributes)
In system. activator. createinstance (type, bindingflags bindingattr, binder, object [] ARGs, cultureinfo culture, object [] activationattributes)
In system. reflection. Assembly. createinstance (string typename)
Why?