clement clement -3 years ago 369
ASP.NET (C#) Question

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

Answer Source

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

For prople 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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download