Could not load file or assembly. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))

27

I have rebuilt my solution and got the following compilation error:

Error 9 'Could not load file or assembly 'ComponentArt.Web.UI, Version=2009.1.1819.35, Culture=neutral, PublicKeyToken=9bc9f846553156bb' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))' D:..\MyProj.Account\LC

The dll is in infra folder and is moved finaly to the bin folder of the output project (web-site).

Any productive ideas? what else should I check? It seems all other projects in this sln compiles.

Unless I get this error to soon. btw, what's LC (under "project" column) ?

c#
asp.net
componentart
asked on Stack Overflow Jan 3, 2012 by Elad Benda • edited Sep 12, 2012 by cuongle

4 Answers

23

I would check your licenses.licx file and ensure the version specified in there matches exactly with the DLL you are referencing.

We often remove everything after the version in this file due to similar problems.

And LC usually refers to the license compiler, lc.exe.

answered on Stack Overflow Jan 3, 2012 by competent_tech
20

It was another broken reference that caused this error.

answered on Stack Overflow Jan 3, 2012 by Elad Benda • edited Feb 18, 2014 by Dariusz Woźniak
0

As I described in "this post regarding Telerik.Web.UI" it is probably due to a missing or misplaced dll file.

answered on Stack Overflow Jun 8, 2016 by JimiSweden • edited May 23, 2017 by Community
0

Ensure that there are no spaces in the path to your project...

I am using Windows 10 with Visual Studio Community 2019 and I was cloning a multi project solution as it was from a GIT repo. I was having this error along with all other dependencies in the solution with a metadata not found for xyz.dll error. Its path, inherited from GIT, had spaces like C:/repos/MY PROJECT NAME/ ...

I deleted it, cloned it again and make sure that its path contained no spaces like C:/repos/MY_PROJECT_NAME/ ...

That fixed my problem.

answered on Stack Overflow Sep 3, 2020 by Ph0b0x

User contributions licensed under CC BY-SA 3.0