Copied to clipboard

Flag this post as spam?

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


  • Michel Collard 44 posts 264 karma points c-trib
    Dec 21, 2016 @ 13:47
    Michel Collard
    0

    Formulate not working with other package

    Umbraco: v 7.5.3
    Tea Commerce: v 3.1.4
    Formulate v 0.6.1.0

    Hi,

    We are trying to make Formulate work but there is a problem we are facing after installing the package.
    The install and installation completion are working perfectly fine. After this we will get errors trying to make a form and we are not able to Add fields etc.

    The following errors are generated in the log:

    ERROR formulate.app.Controllers.FieldsController - An error occurred while attempting to get the field types for a Formulate form.
    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
       at System.Reflection.Assembly.GetTypes()
       at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
       at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at formulate.app.Helpers.ReflectionHelper.GetTypesImplementingInterface[T]() in C:\r\formulate\src\formulate.app\Helpers\ReflectionHelper.cs:line 94
       at formulate.app.Helpers.ReflectionHelper.InstantiateInterfaceImplementations[T]() in C:\r\formulate\src\formulate.app\Helpers\ReflectionHelper.cs:line 54
       at formulate.app.Controllers.FieldsController.GetFieldTypes() in C:\r\formulate\src\formulate.app\Controllers\FieldsController.cs:line 97
     2016-12-21 14:30:00,686 [P5780/D24/T147] ERROR formulate.app.Controllers.HandlersController - An error occurred while attempting to get the handler types for a Formulate form.
    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
       at System.Reflection.Assembly.GetTypes()
       at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
       at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at formulate.app.Helpers.ReflectionHelper.GetTypesImplementingInterface[T]() in C:\r\formulate\src\formulate.app\Helpers\ReflectionHelper.cs:line 94
       at formulate.app.Helpers.ReflectionHelper.InstantiateInterfaceImplementations[T]() in C:\r\formulate\src\formulate.app\Helpers\ReflectionHelper.cs:line 54
       at formulate.app.Controllers.HandlersController.GetHandlerTypes() in C:\r\formulate\src\formulate.app\Controllers\HandlersController.cs:line 79
    

    We found out that when we remove our Tea Commerce dll's, formulate suddenly started to work.

    Unfortunately this is not a solution for us. Could someone help us out with this problem?

    Thanks in advance!
    Michel

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Dec 21, 2016 @ 15:15
    Nicholas Westby
    0

    Hi Michel,

    That is one excellent avatar. Big fan of Dragon Ball (Z/GT/Super) :-)

    Will try to get a hotfix out tonight. In the meantime, can you let me know what the LoaderExceptions property contains in that exception (assuming you can catch the exception while debugging in Visual Studio)? Otherwise, I'll just give it my best shot to reproduce tonight.

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Dec 21, 2016 @ 16:11
    Nicholas Westby
    100

    Just a heads up that you might be able to solve this yourself: http://stackoverflow.com/questions/1091853/error-message-unable-to-load-one-or-more-of-the-requested-types-retrieve-the-l

    The error your are seeing can apparently sometimes happen when an assembly (e.g., Tea Commerce) is referencing another assembly that doesn't exist (e.g., due to a missing DLL or different version of the .NET Framework). The solution would be to add the missing assembly.

    I will still work on a hotfix tonight that wraps that reflection code in a try/catch to work around the issue.

  • Michel Collard 44 posts 264 karma points c-trib
    Dec 21, 2016 @ 16:27
    Michel Collard
    0

    Hi Nicholas,

    Thanks! And thanks for your reply :)

    I tried to catch the exception while debugging my project in Visual Studio but it wouldn't stop anywhere.

    -- EDIT --
    I didn't read your latest reply when posting this. We will check the solution from Stackoverflow.

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Dec 21, 2016 @ 21:36
    Nicholas Westby
    1

    FYI, I created an issue for tracking purposes here: https://github.com/rhythmagency/formulate/issues/70

    Also, I just released a new version, 0.6.2, which should fix the problem and which you can download here: https://our.umbraco.org/projects/backoffice-extensions/formulate/

    Let me know if that works or doesn't work for you.

  • Michel Collard 44 posts 264 karma points c-trib
    Dec 23, 2016 @ 15:51
    Michel Collard
    1

    Thanks a lot for the really quick support for our issue. H5YR!

    The biggest problem was like you said, with the dll's from TeaCommerce being copied every time we build. (We actually did this wrong).

    Also the new formulate package probably made it a lot easier for me to fix our project because Umbraco would not freeze this time.

    Next step is publishing the website to our staging environment, and let's hope formulate works there too. :)

Please Sign in or register to post replies

Write your reply to:

Draft