Cannot add a Domain Model to project

3 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    121 posts
    Member since:
    Jul 2010

    Posted 24 Jan 2012 Link to this post

    Hello,
    I have a .NET 4.0 WPF project and just installed ORM. When I try to add a new Domain Model using Telerik menu, I get the following error:

    Exception:  Unable to load the required template.

    Generated by the method: Void executeAddNewItemWizard(Telerik.OpenAccess.Sdk.Addin.Model.VAProject, System.String, System.String, System.String)

    Stack Trace:    at Telerik.OpenAccess.Sdk.Addin.VSAddin.VSHandler.executeAddNewItemWizard(VAProject activeProject, String extension, String projectItemName, String templateName)
       at Telerik.OpenAccess.Sdk.Addin.VSAddin.VSHandler.AddDomainModelCEH(MenuEntry entry)
       at Telerik.OpenAccess.Sdk.Addin.VSAddin.Menu.MenuOperations.ExecuteCommand(String cmd)
       at Telerik.OpenAccess.Sdk.Addin.VSAddin.OpenAccessAddin80.Exec(String longcommandName, vsCommandExecOption executeOption, Object& varIn, Object& varOut, Boolean& handled)

    Exception Type: System.IO.FileNotFoundException

    InnerException:  System.IO.FileNotFoundException   at EnvDTE80.Solution2.GetProjectItemTemplate(String TemplateName, String Language)  at Telerik.OpenAccess.Sdk.Addin.VSAddin.VSHandler.executeAddNewItemWizard(VAProject activeProject, String extension, String projectItemName, String templateName)

    And also I don't see any Telerik template in "New Item" dialog. What should I do? I already tried to reinstall/repair ORM twice.
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 27 Jan 2012 Link to this post

    Hi Dmitry,

    If you cannot see the item and project templates of OpenAccess, maybe they are not installed correctly. Please open the C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Data folder and look for a file named EntityDiagrams.zip. If the file is not there, please uninstall OpenAccess and do a fresh install. If this does not help, please let us know, so we can continue investigating.

    Greetings,
    Alexander
    the Telerik team

    SP1 for Q3’11 of Telerik OpenAccess ORM is available for download

  3. DevCraft banner
  4. Dmitry
    Dmitry avatar
    121 posts
    Member since:
    Jul 2010

    Posted 27 Jan 2012 Link to this post

    Hello,
    Yes I tried to reinstall it again and now it works ok. Thank you.
Back to Top