Using external assemblies

 
 
 
Posted by:nikitamk
Data created:23 September 2009

Is it possible to use external assemblies in the managed plugin? I'm trying to use SharpSvn library from here - http://sharpsvn.open.collab.net/, and it gives me the following error:

"System.IO.FileLoadException: Could not load file or assembly 'SharpSvn, Version=1.6003.1304.38397, Culture=neutral, PublicKeyToken=d729672594885a28' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))
File name: 'SharpSvn, Version=1.6003.1304.38397, Culture=neutral, PublicKeyToken=d729672594885a28' ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Object.GetType()
   at Autodesk.Max.Manager.AssemblyResolveEventHandler(Object sender, ResolveEventArgs args)
   at System.AppDomain.OnAssemblyResolveEvent(String assemblyFullName)
   at SvnMaxPlugin.SvnSaveActionItem.ExecuteAction()
   at Autodesk.Max.Wrappers.ManagedWrapperActionItem.ExecuteAction(ManagedWrapperActionItem* )"

Yes, I am doing it all the time (using external assemblies). Make sure you put all of the external assembliy dlls into 3dsmax root folder, and not the plugins folder so your layout should look something like:

3dsmax

   plugins

      my_plugin.dll

external_assembly1.dll

external_assembly2.dll

...

Hope this helps.

 

Marsel

Marsel Khadiyev (Software Developer, EPHERE Inc.)