Trying to use .NET assembly gives 0x80131515 error

The Dyalog "Knowledgebase". This forum is read-only
Forum rules
The FAQ is a read-only forum which is in general updated only by employees of Dyalog Ltd. It replaces the FAQ page which existed under Rather than rejecting other posts to this forum, such posts will be put in a moderation queue, and moved to a more appropriate forum.

Trying to use .NET assembly gives 0x80131515 error

Postby Vince|Dyalog on Wed Aug 29, 2018 2:58 pm

If you get an error message like this:

Assembly load failed:
Could not load file or assembly 'file:///C:\Program [^] Files\Dyalog\Dyalog APL-64 17.0 Unicode\sharpplot.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

Try this:
1) Right click on the Assembly and choose Properties. Press the unblock button.

2) Use notepad or some other text editor to create a text dyalog.exe.config file in the same directory as dyalog.exe.

a) Right click on the shortcut which starts it and choose "Run as administrator". (This is necessary to write into a directory under C:\Program Files\ and to avoid UAC Virtualization).

b) Insert the following contents:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
<NetFx40_LegacySecurityPolicy enabled="true"/>
Posts: 288
Joined: Wed Oct 01, 2008 9:39 am

Return to Frequently Asked Questions (FAQ)

Who is online

Users browsing this forum: No registered users and 1 guest