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

  • Reading more then 10K records in D3FOE OData API

    11 July’ 2018

    Introduction: We all know Dynamics 365 Finance and Operations has limitation of 10K records to be fetched at a time usi...

    Read more
  • Paging in D365 Customer Engagement v9.0

    10 July’ 2018

    Introduction: The Xrm.retrieveMultipleRecords method is used to retrieve a collection of records in Dynamics 365 Custom...

    Read more
  • Set up Dynamics 365 connection in Microsoft Social Engagement

    10 July’ 2018

    Introduction: This blog explains how to Set up Dynamics 365 connection in Microsoft Social Engagement. Steps to be follo...

    Read more
  • Voice of the Customer failed to install

    10 July’ 2018

    Introduction: Many people face issues in installing Voice of Customer solution on v9 environment and trying repeatedly ...

    Read more
  • Scribe Insight AX as a Web Service Find Block issue

    10 July’ 2018

    Introduction: If we need to look up for any value from AX then we do it by using a Find Block in Scribe Insight Eg: Basi...

    Read more