Can't create domain models

3 posts, 1 answers
  1. Bernd
    Bernd avatar
    53 posts
    Member since:
    Feb 2013

    Posted 04 Mar 2013 Link to this post

    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. Answer
    Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 06 Mar 2013 Link to this post

    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.
  3. DevCraft banner
  4. Bernd
    Bernd avatar
    53 posts
    Member since:
    Feb 2013

    Posted 06 Mar 2013 Link to this post

    Hello Alexander. It worked!. Thanks a lot.
Back to Top