This is a migrated thread and some comments may be shown as answers.

Cannot add a Domain Model to project

2 Answers 93 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dmitry
Top achievements
Rank 1
Dmitry asked on 24 Jan 2012, 08:53 PM
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 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 27 Jan 2012, 06:09 PM
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

0
Dmitry
Top achievements
Rank 1
answered on 27 Jan 2012, 06:49 PM
Hello,
Yes I tried to reinstall it again and now it works ok. Thank you.
Tags
Design Time (Visual Designer & Tools)
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Dmitry
Top achievements
Rank 1
Share this question
or