Ejemplo n.º 1
0
 public void LoadAssemblyObject(string dllLocation)
 {
     try
     {
         ass = Assembly.LoadFrom(dllLocation);
     }
     catch (FileNotFoundException ex)
     {
         ProjectData.SetProjectError(ex);
         FileNotFoundException fnfe = ex;
         WorldServiceLocator._WorldServer.Log.WriteLine(LogType.FAILED, "DLL not found error:{1}{0}", fnfe.GetBaseException().ToString(), Environment.NewLine);
         ProjectData.ClearProjectError();
     }
     catch (ArgumentNullException ex2)
     {
         ProjectData.SetProjectError(ex2);
         ArgumentNullException ane = ex2;
         WorldServiceLocator._WorldServer.Log.WriteLine(LogType.FAILED, "DLL NULL error:{1}{0}", ane.GetBaseException().ToString(), Environment.NewLine);
         ProjectData.ClearProjectError();
     }
     catch (BadImageFormatException ex3)
     {
         ProjectData.SetProjectError(ex3);
         BadImageFormatException bife = ex3;
         WorldServiceLocator._WorldServer.Log.WriteLine(LogType.FAILED, "DLL not a valid assembly error:{1}{0}", bife.GetBaseException().ToString(), Environment.NewLine);
         ProjectData.ClearProjectError();
     }
 }