Copied to clipboard

Flag this post as spam?

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


  • karen 186 posts 461 karma points
    Apr 24, 2015 @ 19:15
    karen
    0

    Error when updating to 3.0.26

    I just tried to update from contour 3.0.21 to the latest 3.0.26. Using Umbraco 6.2.1

    Downloaded the zip Contour_3.0.26_update.zip from here: https://our.umbraco.org/projects/umbraco-pro/contour

    Followed these instructions: https://our.umbraco.org/projects/umbraco-pro/contour/documentation/Installation/Upgrade

    Basically all I did was unzip the zip file into my umbraco folder (afte rmaking a backup!).

    I get this error when going to the Contour tab:

    Server Error in '/' Application.

    Value cannot be null.
    Parameter name: type

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.ArgumentNullException: Value cannot be null.
    Parameter name: type

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    [ArgumentNullException: Value cannot be null.
    Parameter name: type]
       System.Activator.CreateInstance(Type type, Boolean nonPublic) +14213326
       System.Activator.CreateInstance(Type type) +11
       Umbraco.Forms.Core.Common.ProviderCollection`1.initialize() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\ProviderCollection.cs:101
       Umbraco.Forms.Core.Common.ProviderCollection`1..ctor() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\ProviderCollection.cs:18
       Umbraco.Forms.Core.Providers.FieldTypeProviderCollection..ctor() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Providers\FieldTypeProvider.cs:12
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
       System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +159
       System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
       System.Activator.CreateInstance() +109
       Umbraco.Forms.Core.Common.Nested..cctor() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\Singleton.cs:27
    
    [TypeInitializationException: The type initializer for 'Nested' threw an exception.]
       Umbraco.Forms.Core.Common.Singleton`1.get_Instance() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\Singleton.cs:16
       Umbraco.Forms.Core.Providers.FieldTypeProviderCollection.get_Instance() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Providers\FieldTypeProvider.cs:20
       Umbraco.Forms.Core.Field.CreateFromDataReader(IRecordsReader reader) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Field.cs:48
       Umbraco.Forms.Data.Storage.FieldStorage.GetAllFields(FieldSet fieldset) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FieldStorage.cs:93
       Umbraco.Forms.Data.Storage.FieldSetStorage.GetAllFieldSets(Page page) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FieldSetStorage.cs:44
       Umbraco.Forms.Data.Storage.PageStorage.GetAllPages(Form form) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbra

    Here is from the tracelog:

     

    An unhandled exception occurred System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.TypeInitializationException: The type initializer for 'Nested' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at Umbraco.Forms.Core.Common.ProviderCollection`1.initialize() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\ProviderCollection.cs:line 101 at Umbraco.Forms.Core.Common.ProviderCollection`1..ctor() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\ProviderCollection.cs:line 18 at Umbraco.Forms.Core.Providers.FieldTypeProviderCollection..ctor() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Providers\FieldTypeProvider.cs:line 12 --- 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[T]() at Umbraco.Forms.Core.Common.Singleton`1.Nested..cctor() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\Singleton.cs:line 27 --- End of inner exception stack trace --- at Umbraco.Forms.Core.Common.Singleton`1.get_Instance() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\Singleton.cs:line 16 at Umbraco.Forms.Core.Providers.FieldTypeProviderCollection.get_Instance() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Providers\FieldTypeProvider.cs:line 20 at Umbraco.Forms.Core.Field.CreateFromDataReader(IRecordsReader reader) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Field.cs:line 48 at Umbraco.Forms.Data.Storage.FieldStorage.GetAllFields(FieldSet fieldset) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FieldStorage.cs:line 93 at Umbraco.Forms.Data.Storage.FieldSetStorage.GetAllFieldSets(Page page) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FieldSetStorage.cs:line 44 at Umbraco.Forms.Data.Storage.PageStorage.GetAllPages(Form form) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\PageStorage.cs:line 41 at Umbraco.Forms.Data.Storage.FormStorage.<>c__DisplayClass2.b__0() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FormStorage.cs:line 53 at Umbraco.Core.CacheHelper.<>c__DisplayClass2`1.b__0() in d:\Dev\Umbraco6\src\Umbraco.Core\CacheHelper.cs:line 385 at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, CacheDependency dependency) in d:\Dev\Umbraco6\src\Umbraco.Core\Cache\HttpRuntimeCacheProvider.cs:line 144 at Umbraco.Core.CacheHelper.GetCacheItem[TT](String cacheKey, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, Func`1 getCacheItem) in d:\Dev\Umbraco6\src\Umbraco.Core\CacheHelper.cs:line 385 at umbraco.cms.businesslogic.cache.Cache.GetCacheItem[TT](String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) at umbraco.cms.businesslogic.cache.Cache.GetCacheItem[TT](String cacheKey, Object syncLock, CacheItemRemovedCallback refreshAction, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) at Umbraco.Forms.Core.Services.CacheService.GetCacheItem[TT](String cacheKey, Object syncLock, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Services\CacheService\CacheService.cs:line 62 at Umbraco.Forms.Data.Storage.FormStorage.GetAllForms(Boolean archived) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FormStorage.cs:line 49 at Umbraco.Forms.UI.Dashboard.FormsDashboard.Page_Load(Object sender, EventArgs e) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.UI\Dashboard\FormsDashboard.ascx.cs:line 53 at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.umbraco_dashboard_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\de942701\e7362873\App_Web_dashboard.aspx.5f2dec3.hypmpwi0.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 24, 2015 @ 20:42
    Jan Skovgaard
    0

    Hi Karen

    Did you also do the last two steps? Have you visited the mysite.com/umbraco/plugins/umbracocontour/upgrade.aspx url? (Remember to change to your hostname) and then cleared the browser cache as well as described?

    /Jan

  • karen 186 posts 461 karma points
    Apr 24, 2015 @ 21:10
    karen
    0

    Hi Jan,

    I did clear cache on the browser, and that fixed nothing - even tried in a new browser that I never use to log in to the UI with.

    I had not originally run the upgrade script since the instructions state "This only applies when moving from a 1.x version to a 3.x version", however at your suggestion I did run it. Still getting the same error message posted above.

     

  • karen 186 posts 461 karma points
    Apr 24, 2015 @ 21:27
    karen
    0

    here is the full error message: (was able to edit the css in the browser to add scrollbars)

     

    Server Error in '/' Application.


    Value cannot be null.
    Parameter name: type

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.ArgumentNullException: Value cannot be null.
    Parameter name: type

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    [ArgumentNullException: Value cannot be null.
    Parameter name: type]
       System.Activator.CreateInstance(Type type, Boolean nonPublic) +14213326
       System.Activator.CreateInstance(Type type) +11
       Umbraco.Forms.Core.Common.ProviderCollection`1.initialize() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\ProviderCollection.cs:101
       Umbraco.Forms.Core.Common.ProviderCollection`1..ctor() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\ProviderCollection.cs:18
       Umbraco.Forms.Core.Providers.FieldTypeProviderCollection..ctor() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Providers\FieldTypeProvider.cs:12
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
       System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +159
       System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
       System.Activator.CreateInstance() +109
       Umbraco.Forms.Core.Common.Nested..cctor() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\Singleton.cs:27
    
    [TypeInitializationException: The type initializer for 'Nested' threw an exception.]
       Umbraco.Forms.Core.Common.Singleton`1.get_Instance() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Common\Singleton.cs:16
       Umbraco.Forms.Core.Providers.FieldTypeProviderCollection.get_Instance() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Providers\FieldTypeProvider.cs:20
       Umbraco.Forms.Core.Field.CreateFromDataReader(IRecordsReader reader) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Field.cs:48
       Umbraco.Forms.Data.Storage.FieldStorage.GetAllFields(FieldSet fieldset) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FieldStorage.cs:93
       Umbraco.Forms.Data.Storage.FieldSetStorage.GetAllFieldSets(Page page) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FieldSetStorage.cs:44
       Umbraco.Forms.Data.Storage.PageStorage.GetAllPages(Form form) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\PageStorage.cs:41
       Umbraco.Forms.Data.Storage.<>c__DisplayClass2.<GetAllForms>b__0() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FormStorage.cs:53
       Umbraco.Core.<>c__DisplayClass2`1.<GetCacheItem>b__0() in d:\Dev\Umbraco6\src\Umbraco.Core\CacheHelper.cs:385
       System.Lazy`1.CreateValue() +455
       System.Lazy`1.get_Value() +14444250
       Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, CacheDependency dependency) in d:\Dev\Umbraco6\src\Umbraco.Core\Cache\HttpRuntimeCacheProvider.cs:144
       Umbraco.Core.CacheHelper.GetCacheItem(String cacheKey, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, Func`1 getCacheItem) in d:\Dev\Umbraco6\src\Umbraco.Core\CacheHelper.cs:385
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +126
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemRemovedCallback refreshAction, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +112
       Umbraco.Forms.Core.Services.CacheService.GetCacheItem(String cacheKey, Object syncLock, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Services\CacheService\CacheService.cs:62
       Umbraco.Forms.Data.Storage.FormStorage.GetAllForms(Boolean archived) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Data\FormStorage\FormStorage.cs:49
       Umbraco.Forms.UI.Dashboard.FormsDashboard.Page_Load(Object sender, EventArgs e) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.UI\Dashboard\FormsDashboard.ascx.cs:53
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18067

  • karen 186 posts 461 karma points
    Apr 27, 2015 @ 21:13
    karen
    0

    Ok, I realize the problem, sort of, but not sure how to fix it.

    I have my umbraco project as a Visual Studio project, so all the umbraco .dlls are in a references folder, and included as References in the project, so when I do a build on the project, the .dll files should be copied to the bin folder. (otherwise sometimes they get deleted by visual studio)

    The Umbraco.Forms.Core.Providers.V6.dll is not being copied to the bin folder. When I manually put the new v6.dll file in bin, everything works.

    I checked, and it is included as a Reference in my project.  I even removed and re-added all the Contour .dll files from the references. I can see it in the list. Tried closing VS and reopening the project.

    When I try to add a @using statment to a page, the V6.dll version is not found by the intellisense (but it sees V7)

    This used to work, that is how I have been building this project. If I put the old V6.dll back into my references folder, and rebuild, it gets copied to the bin.

    Any ideas?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Apr 27, 2015 @ 21:28
    Dennis Aaen
    0

    Hi Karen,

    Perhaps this documentation https://our.umbraco.org/wiki/how-tos/getting-started-with-umbraco-what-is-next-after-you-install/setting-up-your-project-in-visual-studio can help you. I know is a bit old, but maybe it can gives you some idea what you need to do.

    Sebastiaan has also made documentation about how to run Umbraco using Visual Studio https://our.umbraco.org/projects/developer-tools/umbraco-visual-studio-project

    Hope this can help you.

    /Dennis

  • karen 186 posts 461 karma points
    Apr 27, 2015 @ 21:43
    karen
    0

    And this might be the reason - I need to build my project in .net 4 because our servers only have 4.0

    Is it possible to get a contour package built on 4.0 ?

     

    Warning4The primary reference "Umbraco.Forms.Core.Providers.V6, Version=3.0.21.0, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".WHRX

  • karen 186 posts 461 karma points
    Apr 27, 2015 @ 21:46
    karen
    0

    ps - I need to update contour to the new version because of the bug where the file upload while in IE includes the full path. We have to have file uploads on our forms and a lot of our clients use IE.

  • karen 186 posts 461 karma points
    Apr 27, 2015 @ 21:50
    karen
    0

    HI Dennis - Thanks for the suggestions - but those articles are pretty old and older versions of umbraco and vs, and we have been packaging up our Umbraco projects this way for many years with no issues until now, so I am thinking the issue might be with the new .dll rather than with the project setup.

  • Wojciech Tengler 96 posts 199 karma points
    May 09, 2016 @ 16:00
    Wojciech Tengler
    0

    I have just met the same problem and spent a lot of time to find reason...

    What is the last solution for this problem?

    I'm upgrading Umbraco from 4.7.1 to 6.2.6.

  • karen 186 posts 461 karma points
    May 09, 2016 @ 17:32
    karen
    1

    Hi Wtct,

    Well I can't remember exactly what I did to remove this error. There was a lot of things I tried, and a year ago a lot of things going on! What I do remember trying is removing any references to Umbraco.Forms.Core.Providers.V7

    Also I have a vague recollection of deciding the error was newly introduced, and that by stepping back through versions of the contour zip and testing different versions of the Umbraco.Forms.Core.Providers.V6.dll until I found one that did not cause an error.

    I THINK that is what fixed it - I am not 100%. But maybe something you can try ? Looking at the version of the V6.dll i am using, it is 3.0.19 while all the other .dlls for Contour have version 3.0.28

  • Wojciech Tengler 96 posts 199 karma points
    May 09, 2016 @ 17:52
    Wojciech Tengler
    0

    Thanks a lot!

    It is good temporary solution. Umbraco Contour is probably working good.

    I have just started new topic:

    https://our.umbraco.org/forum/umbraco-forms//77131-upgrading-umbraco-contour-to-3029-in-umbraco-626-umbracoformscoreprovidersv6dll-problem

    I hope that someone compile this dll in 4.0.

Please Sign in or register to post replies

Write your reply to:

Draft