none
Library not registered. 0x8002801D (TYPE_E_LIBNOTREGISTERED) exception when generating views RRS feed

  • Question

  • We have been using Entity Framework 6.1.3 for some time with a model generated from our existing Oracle database.

    We have pre-generated the views to increase performance and have re-generated the views successfully a few times, but now the "Generate Views" option is showing the above error message.

    I rolled back the pending model change to see if that was causing the issue, but still got the exception.

    I have also tried re-installing the extension.

    Whether this is related or not, I don't know, but...

    My copy of Visual Studio has been playing up since patch Tuesday (10-Nov-15). It would crash, just disappearing completely. I ended up doing a Repair installation which seems to have fixed it.

    My colleague has exactly the same issues both with the extension and studio (although he hasn't repaired his yet).

    We are running on Windows 7 64bit.

    This is the contents of the Visual Studio about box:

    Microsoft Visual Studio Professional 2012
    Version 11.0.61219.00 Update 5
    Microsoft .NET Framework
    Version 4.5.50938

    Installed Version: Professional

    LightSwitch for Visual Studio 2012   04938-004-0033001-02499
    Microsoft LightSwitch for Visual Studio 2012

    Office Developer Tools   04938-004-0033001-02499
    Microsoft Office Developer Tools

    Team Explorer for Visual Studio 2012   04938-004-0033001-02499
    Microsoft Team Explorer for Visual Studio 2012

    Visual Basic 2012   04938-004-0033001-02499
    Microsoft Visual Basic 2012

    Visual C# 2012   04938-004-0033001-02499
    Microsoft Visual C# 2012

    Visual C++ 2012   04938-004-0033001-02499
    Microsoft Visual C++ 2012

    Visual F# 2012   04938-004-0033001-02499
    Microsoft Visual F# 2012

    Visual Studio 2012 Code Analysis Spell Checker   04938-004-0033001-02499
    Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

    Visual Studio 2012 SharePoint Developer Tools   04938-004-0033001-02499
    Microsoft Visual Studio 2012 SharePoint Developer Tools

    ANTSVsPackage   1.0
    Start ANTS Performance and Memory Profilers from Visual Studio

    ASP.NET and Web Tools   2012.3.41009
    Microsoft Web Developer Tools contains the following components:
    Support for creating and opening ASP.NET web projects
    Browser Link: A communication channel between Visual Studio and browsers
    Editor extensions for HTML, CSS, and JavaScript
    Page Inspector: Inspection tool for ASP.NET web projects
    Scaffolding: A framework for building and running code generators
    Server Explorer extensions for Windows Azure Web Sites
    Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

    Entity Framework Power Tools   1.0
    Adds useful design-time DbContext features to the Visual Studio Solution Explorer context menu.

    When right-clicking on a file containing a derived DbContext class, the following context menu functions are supported:

    1) View Entity Data Model - Displays the underlying Code First model in the Entity Framework designer.
    2) View Entity Data Model XML - Displays the EDMX XML representing the underlying Code First model.
    3) Generate Views - Generates pre-compiled views used by the EF runtime to improve start-up performance. Adds the generated views file to the containing project.

    Exception Breaker   1.0
    Simplifies "Break On Exception" UI.

    GhostDoc   4.9.15086.0
    GhostDoc automatically generates XML documentation comments.

    InstallShield Limited Edition  
    InstallShield. For more information visit the Flexera Software website at <http://www.FlexeraSoftware.com>. Copyright © 2013 Flexera Software LLC. All Rights Reserved.

    JetBrains ReSharper 8.2.1   C# Edition build 8.2.1000.4556 on 2014-05-19T11:12:38
    JetBrains ReSharper 8.2.1 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2015 JetBrains, Inc.

    Microsoft Team Foundation Server 2012 Power Tools   3.0
    Power Tools that extend the Team Foundation Server integration with Visual Studio.

    Microsoft Visual Studio Process Editor   1.0
    Process Editor for Microsoft Visual Studio Team Foundation Server

    NuGet Package Manager   2.8.60318.667
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    Open Command Line   2.0.159
    Opens a command line at the root of the project. Support for all consoles such as CMD, PowerShell, Bash etc.

    Oracle Developer Tools for Visual Studio   12.1.0.2.4
    Oracle Developer Tools for Visual Studio Copyright (c) 2005, 2015

    PreEmptive Analytics Visualizer   1.0
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

    SQL Server Data Tools   11.1.20627.00
    Microsoft SQL Server Data Tools

    Team Foundation Sidekicks   3.0
    Team Foundation Sidekicks utilities

    Web Essentials   3.8
    Adds many useful features to Visual Studio for web developers.

    Windows Installer XML Toolset   3.10.1.2213
    Windows Installer XML Toolset version 3.10.1.2213
    Copyright (c) Outercurve Foundation. All rights reserved.

    The updates applied on Tuesday were:

    KB3081320
    KB3102810
    KB3097996
    KB3101246
    KB3100773
    KB3101746
    KB3092601
    KB3098781
    KB3097877
    KB3101722
    KB3100213
    KB3097989

    For now I have completely removed the generated views so that we can release our software, but would appreciate any help in resolving this permanently.

    Thanks,

    Huw Pendry

    Friday, November 13, 2015 9:26 AM

All replies

  • The error usually occurs when you either have a corrupt or a damaged installation of MSXML. The root cause of MSXML corruption may be related to remnants of previous version of MSXML that have been uninstalled from the system as discussed in the following article:

    322129 PRB: MSXML TypeLib Version Information in Registry Does Not Change After You Remove the 4.0 Parser.

    Solution:

    Use the following procedure to resolve the problem:
    1. Manually re-register the MSXML6 Dlls on the system where you are experiencing the problem by executing the following commands at a command prompt (you need to run these commands from an Administrative Command prompt on the newer operating systems.)

      On a 32-bit machine:

      regsvr32 %windir%\system32\msxml6.dll
      regsvr32 %windir%\system32\msxml3.dll

      On a 64-bit system, reregister both the 32-bit and 64-bit Dlls:

      regsvr32 %windir%\system32\msxml6.dll
      regsvr32 %windir%\system32\msxml3.dll
      regsvr32 %windir%\SysWOW64\msxml3.dll
      regsvr32 %windir%\SysWOW64\msxml6.dll
    2. Restart the failing application. For example, if BIDS is experiencing the error, close BIDS and start it again. Test the application in the same way which generated the error noted in the symptoms section.
    3. If you are still experiencing the problem after Step 2, you may need to reinstall MSXML6 and then run Windows Update to ensure that the MSXML dlls are patched with the latest security updates. You can download MSXML6 from the following location:
      http://www.microsoft.com/downloads/en/details.aspx?FamilyID=993c0bcf-3bcf-4009-be21-27e85e1857b1&displaylang=en 
    4. Good Luck! :)

    Friday, November 13, 2015 10:15 AM
  • HI,

    Re-registering the type libraries did not work.

    For now we have remove the pre-generated views as they were not giving us a measurable performance improvement anyway.

    I am not in a position to try re-installing MSXML6 at the moment.

    Also, this error code appears to be a generic code covering issues with type library generation, so it could be another type library causing the issue anyway!

    Thanks for the help.

    Thursday, November 19, 2015 1:10 PM
  • Hello antidemon,

    >>We have been using Entity Framework 6.1.3 for some time with a model generated from our existing Oracle database.

    Considering you are using the EF with Oracle, I suggest you could try to narrow down this exception by:

    1.Using the same library and connect to a different database, for example, a sql server to check if the result would be different.

    2.Confirm on the Oracle forum to see if they have made a full support for the 6.1.3 version.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 23, 2015 9:40 AM
    Moderator
  • As stated we have been using EF 6.1.3 with Oracle for some time without issues, and I know that this is supported.

    We have not installed or changed anything since the last time that the tool was run. The only reason for re-running it was for a model change and even after rolling this back the tool would not work.

    The error message is indicative of a problem with the registration of a type. This could be due to a random corruption of the registry, but I would eliminate that as my colleague is experiencing the same issue.

    This could also be due to a failed installer, and as we haven't run any I think this indicates that it is a side effect of one of the recent windows updates.

    I'm not actively investigating this issue any longer as we have a workaround in deleting the pre-generated views (and I'm just too busy). I won't mark any replies as an answer as I wouldn't like to mislead anyone else with this issue.

    Monday, November 23, 2015 10:06 AM