Could not load file or assembly 'LogicNP.ShellObjects'

0

I need some help with a VB.net code. I am very new to VB.net. I am getting this error:

Error 'Could not load file or assembly 'LogicNP.ShellObjects, Version=13.0.0.0, Culture=neutral, PublicKeyToken=ff6f27194af4af75' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'

This prevents me from building the code. It looks like I am missing some sort of file but I haven't heard of the LogicNP.ShellObjects. Is there a location that I can find this file at?

Edit: For those wondering, I do have the .dll file in the project/solution. I added the dll file to the solution explorer and I can see it in there. I also added the dll file to the toolbox.

I am still receiving the same error

Edit:

I think that I might have found the answer. I viewed this posting:

Visual Studio "Could not load file or assembly. Operation is not supported" error in Release mode

And the error did go away but now I have 4 errors. I will update this post if/when I get the project to build.

.net
vb.net
visual-studio
exception
.net-assembly
asked on Stack Overflow Oct 27, 2017 by codingDude • edited Oct 30, 2017 by codingDude

2 Answers

1

ShellObjects is a library of controls and components by LogicNP software, found here:

http://www.ssware.com/shlobj/shlobj.htm

The library is provided in something called an Assembly, which is .NET's packaging format:

https://msdn.microsoft.com/en-us/library/ms973231.aspx

The error message means that your code contains a reference to that assembly, but Visual Studio can't find it in the location specified.

answered on Stack Overflow Oct 27, 2017 by InteXX
1

Ok, so I have verified that the fix does work.

What was happening is that the computer was blocking the dll file from being loaded because it was downloaded from the internet. See this posting:

Visual Studio "Could not load file or assembly. Operation is not supported" error in Release mode

answered on Stack Overflow Oct 30, 2017 by codingDude

User contributions licensed under CC BY-SA 3.0