Note: This is documentation for version 5.4 of Source. For a different version of Source, select the relevant space by using the Spaces menu in the toolbar above

Plugin not loading issues

/wiki/spaces/SC/pages/51643422When trying to run a plugin:

  1. If you are downloading plugins you will need to manually 'unblock' this file in Windows after downloading. To do this, right click on the dll file in windows explorer and select properties. At the bottom of this window will be comment along the lines of 'this file has been downloaded from the internet and has been blocked to protect this computer': 
     
    There should be an 'unblock' button next to the warning. Click unblock and then click ok. The plugin should then load.
  2. Insufficient user permissions to edit the registry. 

You could try:

  1. Copy the entire folder from "C:\Program Files\eWater\Source x.x.x.x"   to the desktop
  2. Copy the plugin dll into the same folder
  3. Open Desktop\Source x.x.x.x\RiverSystem.Forms.exe
  4. Try to add the plugin again.

When Building the plugin:

  1. Plugin was built referencing the incorrect dll's (TIME.dll, RiverSystem.dll etc..) 
  2. Incorrect .net version used - we are using 4.0
  3. Incorrect assembly configuration - needs to be "AnyCpu

NHibernate.MappingException - NHibernate.DuplicateMappingException

Duplicate Mapping Exception means that some how the dll has been loaded twice. There are a few ways this can happen

  1. Loading the plugin twice
  2. Loading a plugin and loading a second plugin that has a reference to the first plugin
  3. Copying the plugin into the Program Files Folder and also loading the plugin from a different location


NHibernate.MappingException - NHibernate.??

Otyher mapping exceptions can occur when you don't have your mapping file as an Embedded resource. By default it's added as content - however it should be an embedded resource.Â