clement
clement

Reputation: 4266

Error loading type library/DLL when I try to add file in VS (HRESULT: 0x80029C4A)

I have a trouble when I try to create a view in my web project.

Here is my error message:

There was an error running the selected code generator: 'Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))'

I've already checked other response. If I run as admin or none, same issue. I have another computer that hasn't this error with same OS + VS. If there is something to copy, I can do it.

I don't find this exception in event viewer to see details (how?)

Thanks in advance

Upvotes: 6

Views: 15838

Answers (3)

clement
clement

Reputation: 4266

I finally fixed this by using repair tool of Visual Studio.

For people that repair will not help, this is compiled things I've read to fix this issue:

  1. Reset via CLI VS settings: vswindexpress /resetuserdata - geoffwebbercross blogpost
  2. Reset via Doc/AppSettings and regedit
  3. Rebuild the project, restart VS, restart computer
  4. Repair VS (this fixes my issue) msdn

Upvotes: 5

Ten Mikhail
Ten Mikhail

Reputation: 41

I faced with the same error after I installed .Net Core 1.1 from official web site. I did repair of VS(2015 Upd5) and it did not help. Then I uninstalled .Net Core and repaired VS and finally it started working normally.

Update: I also uninstalled Entity Framework 6.x (from Programs and Features)

Upvotes: 0

Abhishek
Abhishek

Reputation: 433

I simply went to Add or remove programs in control panel. Repaired my visual studio from there and this worked for me like a charm.

Upvotes: 0

Related Questions