Copied to clipboard

Flag this post as spam?

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


  • Adriano Fabri 309 posts 1007 karma points
    5 days ago
    Adriano Fabri
    0

    Could not load all types from...

    Hello, I have a problem with my package During installation of my package in a website running Umbraco v7.5.14, I receive a generic error without any details (I have this problem only with this umbraco version).

    From this moment the website always throw this error:

    Could not load all types from "FALM.Housekeeping, Version=7.6.0.8, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping:
    . System.TypeLoadException on umbraco.interfaces.IDiscoverable: Unable to load type 'umbraco.interfaces.IDiscoverable' dall'assembly 'interfaces, Version=1.0.6345.13056, Culture=neutral, PublicKeyToken=null'.
    

    In the Trace Log I found this error:

    2017-11-14 12:33:14,029 [P7860/D2/T1] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
    System.Reflection.ReflectionTypeLoadException: Could not load all types from "FALM.Housekeeping, Version=7.6.0.8, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping:
    . System.TypeLoadException on umbraco.interfaces.IDiscoverable: Unable to load type 'umbraco.interfaces.IDiscoverable' dall'assembly 'interfaces, Version=1.0.6345.13056, Culture=neutral, PublicKeyToken=null'.
    

    I don't understand where is the problem and I cannot debug it.

    Anyone can help me?

  • David Brendel 696 posts 2458 karma points c-trib
    5 days ago
    David Brendel
    0

    Hi Adriano,

    my guess would be that the FALM.Housekeeping package depends on 7.6 and that the interface umbraco.interfaces.IDiscoverable is not present in 7.5.14. And thus the error occurs that the package DLL can't be loaded.

    Regards David

  • Adriano Fabri 309 posts 1007 karma points
    5 days ago
    Adriano Fabri
    0

    Thank you for your answer...but I don't use the umbraco.interface.iDiscoverable type.

    I call umbraco interfaces only when I load my package:

    using FALM.Housekeeping.Constants;
    using umbraco.businesslogic;
    using umbraco.interfaces;
    
    namespace FALM.Housekeeping.Applications
    {
        /// <summary>
        /// Application(HkConstants.Application.Alias, HkConstants.Application.Name, HkConstants.Application.Icon, 50)
        /// HkApplication
        /// </summary>
        [Application(HkConstants.Application.Alias, HkConstants.Application.Name, HkConstants.Application.Icon, 50)]
        public class HkApplication : IApplication { }
    }
    
  • Adriano Fabri 309 posts 1007 karma points
    4 days ago
    Adriano Fabri
    0

    Oh that's ok...I found it. As you correctly told me, in Umbraco v7.6+, iApplication interface inherits from iDiscoverable, but Umbraco v7.5.14 don't have it

    So I must resolve it.

    I think to realize a version of my package compatible with Umbraco v7.5

    Thank you so much

  • David Brendel 696 posts 2458 karma points c-trib
    5 days ago
    David Brendel
    0

    Hi Adriano,

    the IApplication interface inherits from IDiscoverable.

    But the interface is also part of 7.5.14. So not sure what the problem is to be honest.

    Regards David

Please Sign in or register to post replies

Write your reply to:

Draft