24 Nov’17

BIDLL Deployment Error on Scribe On-Premise Agent Server


Recently, we encountered a strange behavior of Scribe On-Premise Agent when we deployed a DLLs for a Custom Connector. After deployment of DLLs on the Agent, the status of the Scribe Agent was stuck at “Updating” and the Connector was not visible under the connector drop down.


We checked the “MICROAGE1 Agent 2” Agent log and found out an error in .Net Framework.

Error Details:

Message: Folder (C:\Program Files (x86)\Scribe Software\Scribe Online Agent 3\Connectors\ConnectorName) has the following exceptions during discovery:System.ApplicationException: Exception Type : FileLoadException

Message: Could not load file or assembly 'file:///C:\Program Files (x86)\Scribe Software\Scribe Online Agent 3\Connectors\ConnectorName\********.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

StackTrace :    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)

at System.Reflection.Assembly.LoadFrom(String assemblyFile)

at Scribe.Core.Access.AdapterDiscoverer.DiscoverConnectors(String folderName)

— Inner Exception —

Type: NotSupportedException

Message: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

Steps to perform Resolution 1

  1. Login to MICROAGE1 Server
  2. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config
  3. Open CONFIG File “machine”
  4. Add the code at line 151 and Save the file
  5. <runtime>
    <loadFromRemoteSources enabled="true"/>

Current Code screenshot:

  1. Restart the Scribe Agent in Services
  2. Check if the DLL’s are deployed successfully by creating a connection in Scribe Online for Channel Online. If still failed then perform Resolution 2.

Steps to perform Resolution 2

  1. Login to MICROAGE1 Server
  2. Stop Scribe Agent in the Services.
  3. Go to C:\Program Files (x86)\Scribe Software\Scribe Online Agent 3\Connectors\ConnectorName and Right Click on a DLL file. (For example: As per the screenshot, “Contact”)
  4. Click on “Properties”
  5. Under Security Section press “Unblock”
  6. Click Apply and Ok
  7. Again, open the Properties to check whether it is successfully unblocked.
  8. Repeat Step 4-8 for all DLLs.
  9. Start the Scribe Agent in the Services.


Written by

Anjali Hemmadi

Software Developer

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Dynamics 365 Client Diagnostics

    15 March’ 2018

    Main cause of Performance Issues: Bandwidth and latency are the primary characteristics which affects the performance o...

    Read more
  • Closing Blind Shift in MPOS and CPOS in Dynamics 365 for Retail

    15 March’ 2018

    Manual For closing Blind shift in POS: Blind shifts terminate the currently ongoing shift and when logged in a new shif...

    Read more
  • Persistent Filters in the Power BI Service

    13 March’ 2018

    Introduction: The feature is finally release, and it is power BI has announced general availability of persistent filt...

    Read more
  • Cause and Solution for Scribe MSMQ not receiving Message from AX

    10 March’ 2018

    Issue: Microsoft Message Queuing (MSMQ) service running on Server might be unable to receive messages. Therefore, messa...

    Read more
  • User Privileges on SharePoint – D365 Document Integration

    10 March’ 2018

    Overview: Often, we wonder what could be wrong where we see a generic error on Documents in Dynamics 365. Something lik...

    Read more