Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mlu 12 posts 74 karma points
    Aug 07, 2014 @ 09:41
    mlu
    0

    Contour Installation On Umbraco 7

    We use a custom deployment strategy - so we cannot install Contour by the package approach. We use the manual installation guide. We use latest Umbraco 7 (7.1.4) and latest Contour (3.0.21)

     

    1. unpack files.zip on root
    2. add nodeType to umbraco/config/create/ui.xml
    3. create all database tables according to create.sql asdf
    4. add contour to dashboard.config
    5. add macro "Insert form from Umbraco Contour (Razor)" in umbraco-backend

    Not in documentation

    One thing is, that you need to modify trees.config and application.config

    trees.config

    1
    2
    3
    4
    5
      <add silent="false" initialize="true" sortOrder="0" alias="forms" application="contour" title="Forms" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Trees.LoadForm" action="" />
      <add silent="false" initialize="true" sortOrder="1" alias="formdatasources" application="contour" title="Data Sources" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Trees.LoadDataSource" action="" />
      <add silent="false" initialize="true" sortOrder="2" alias="formprevaluesource" application="contour" title="Prevalue Sources" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Trees.LoadPreValueSource" action="" />
      <add silent="false" initialize="true" sortOrder="5" alias="formssecurity" application="users" title="Contour security" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Trees.LoadFormsSecurity" action="" />
    
    

    application.config

    1
    <add alias="contour" name="Umbraco Contour" icon="contour.png" sortOrder="7" />
    

     

    The Error

    After all this steps I can access contour through the Dashboard - but I dont see the tree. In the Log files I can see two errors:

    2014-08-07 09:05:00,158 [42] ERROR Umbraco.Core.PluginManager - [Thread 46] Error creating type Umbraco.Forms.CodeFirst.ContourFormBuilderApplicationBase
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Cannot change web.config automatically! Error: An error occurred loading a configuration file: Access to the path 'D:\DeploymentAgent\Applications\Development\CUG.easyPush\1.1.142\c1hopx3g.tmp' is denied. (D:\DeploymentAgent\Applications\Development\CUG.easyPush\1.1.142\web.config). Please add the following httpmodule: 
       at Umbraco.Forms.CodeFirst.WebConfigManager.AddHttpModule(String name, String type) in c:\Program Files (x86)\teamcity\buildAgent\work\fdc2f0fcbbcef310\Umbraco.Forms.CodeFirst\WebConfigManager.cs:line 30
       at Umbraco.Forms.CodeFirst.ContourFormBuilderApplicationBase..ctor() in c:\Program Files (x86)\teamcity\buildAgent\work\fdc2f0fcbbcef310\Umbraco.Forms.CodeFirst\ContourFormBuilderApplicationBase.cs:line 13
       --- End of inner exception stack trace ---
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.Activator.CreateInstance(Type type)
       at Umbraco.Core.PluginManager.CreateInstances[T](IEnumerable`1 types, Boolean throwException)
    

    2014-08-07 09:04:59,924 [45] WARN Umbraco.Core.Services.ApplicationTreeService - [Thread 46] The tree definition: <add silent="false" initialize="true" sortOrder="0" alias="forms" application="contour" title="Forms" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Trees.LoadForm" action="" /> could not be resolved to a .Net object type 2014-08-07 09:04:59,924 [45] WARN Umbraco.Core.Services.ApplicationTreeService - [Thread 46] The tree definition: <add silent="false" initialize="true" sortOrder="1" alias="formdatasources" application="contour" title="Data Sources" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Trees.LoadDataSource" action="" /> could not be resolved to a .Net object type 2014-08-07 09:04:59,924 [45] WARN Umbraco.Core.Services.ApplicationTreeService - [Thread 46] The tree definition: <add silent="false" initialize="true" sortOrder="2" alias="formprevaluesource" application="contour" title="Prevalue Sources" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Trees.LoadPreValueSource" action="" /> could not be resolved to a .Net object type 2014-08-07 09:04:59,924 [45] WARN Umbraco.Core.Services.ApplicationTreeService - [Thread 46] The tree definition: <add silent="false" initialize="true" sortOrder="5" alias="formssecurity" application="users" title="Contour security" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Trees.LoadFormsSecurity" action="" /> could not be resolved to a .Net object type

    I guess there is only on config change left, but I cannot see on any documentation. Does anyone also face this problem?

  • mlu 12 posts 74 karma points
    Aug 13, 2014 @ 15:10
    mlu
    102

    Seems the error was a wrong trees.config . You need to declare the fully qualified name. Can please someone add this to the contour documentation?

     

    <add silent="false" initialize="true" sortOrder="0" alias="forms" application="contour" title="Forms" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Umbraco.Forms.UI.Trees.LoadForm,Umbraco.Forms.UI" action="" />
      <add silent="false" initialize="true" sortOrder="1" alias="formdatasources" application="contour" title="Data Sources" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Umbraco.Forms.UI.Trees.LoadDataSource,Umbraco.Forms.UI" action="" />
      <add silent="false" initialize="true" sortOrder="2" alias="formprevaluesource" application="contour" title="Prevalue Sources" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Umbraco.Forms.UI.Trees.LoadPreValueSource,Umbraco.Forms.UI" action="" />
      <add silent="false" initialize="true" sortOrder="5" alias="formssecurity" application="users" title="Contour security" iconClosed="legacy" iconOpen="legacy" assembly="Umbraco.Forms.UI" type="Umbraco.Forms.UI.Trees.LoadFormsSecurity,Umbraco.Forms.UI" action="" />
    
Please Sign in or register to post replies

Write your reply to:

Draft