Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 227
clement Avatar asked Feb 17 '16 11:02

clement


1 Answers

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
like image 150
clement Avatar answered Oct 22 '22 09:10

clement