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

Can't create domain models

2 Answers 84 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bernd
Top achievements
Rank 2
Bernd asked on 04 Mar 2013, 10:14 AM
Hello.

Trying to create a domain model or class library I receive an error message. Everything else can be created.

Neither repairing, nor reinstalling solved the problem.

EDIT: It only happens with C#. Creating a VB project works. oO
I am using VS 2012 and Q1 2013 of OpenAccess ORM.

Here is the error message:

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:

 

bei Telerik.OpenAccess.Sdk.Addin.VSAddin.VSHandler.executeAddNewItemWizard(VAProject activeProject, String extension, String projectItemName, String templateName)

bei Telerik.OpenAccess.Sdk.Addin.VSAddin.VSHandler.AddDomainModelCEH(MenuEntry entry)

bei Telerik.OpenAccess.Sdk.Addin.VSAddin.Menu.MenuOperations.ExecuteCommand(String cmd)

bei 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 bei EnvDTE80.Solution2.GetProjectItemTemplate(String TemplateName, String Language)

bei Telerik.OpenAccess.Sdk.Addin.VSAddin.VSHandler.executeAddNewItemWizard(VAProject activeProject, String extension, String projectItemName, String templateName)

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander
Telerik team
answered on 06 Mar 2013, 04:33 PM
Hello Bernd,

This error means that for some reason the C# item template for creating an OpenAccess model is missing. Usually such problems are fixed by reinstalling the product but if this does not help on your side, we will have to fix it manually.

First of all, please verify that the needed EntityDiagrams.zip file containing the template is installed at the following path:
C:\Program Files (x86)\Telerik\OpenAccess ORM\dsl2012\ItemTemplates\CSharp\Data\1033
In fact, there should be two more templates - FluentModel.zip and RlinqDomainContext.zip. If the templates are not available, please uninstall and install the product again.

If the files are there, close any Visual Studio instances and execute the following command from the VS2012 development command prompt (a shortcut should be available in your Start menu):
devenv /installvstemplates

If the template still cannot be found, just copy the C:\Program Files (x86)\Telerik\OpenAccess ORM\dsl2012\ItemTemplates\CSharp folder and paste it in My Documents\Visual Studio 2012\Templates\ItemTemplates
and restart Visual Studio.
Hope that helps.

All the best,
Alexander
the Telerik team
OpenAccess ORM Q1 2013 is out featuring Multi-Diagrams, Persistent Data Stream Support and much more. Check out all of the latest highlights.
0
Bernd
Top achievements
Rank 2
answered on 06 Mar 2013, 06:13 PM
Hello Alexander. It worked!. Thanks a lot.
Tags
Data Access Free Edition
Asked by
Bernd
Top achievements
Rank 2
Answers by
Alexander
Telerik team
Bernd
Top achievements
Rank 2
Share this question
or