Trying to use .NET assembly gives 0x80131515 error
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 http://www.dyalog.com. Rather than rejecting other posts to this forum, such posts will be put in a moderation queue, and moved to a more appropriate forum.
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 http://www.dyalog.com. Rather than rejecting other posts to this forum, such posts will be put in a moderation queue, and moved to a more appropriate forum.
1 post
• Page 1 of 1
Trying to use .NET assembly gives 0x80131515 error
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:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>
</configuration>
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:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>
</configuration>
- Vince|Dyalog
- Posts: 432
- Joined: Wed Oct 01, 2008 9:39 am
1 post
• Page 1 of 1
Return to Frequently Asked Questions (FAQ)
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group