Copied to clipboard

Flag this post as spam?

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


  • Khai 71 posts 161 karma points
    Aug 23, 2013 @ 12:09
    Khai
    0

    Umbraco courier System.TypeInitializationException

    When I want to go to "Locations" under Courier, I get this exception:

    System.TypeInitializationException: The type initializer for 'Nested' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.HttpException: Request is not available in this context 
    at System.Web.HttpContext.get_Request() 
    at Umbraco.Licensing.Validator.ValidateLicense(EncryptedLicense license) 
    at Umbraco.Licensing.Validator.Check() 
    at Umbraco.Licensing.Validator.IsTrial() 
    at Umbraco.Courier.Core.Licensing.InfralutionLicensing.IsLight() 
    at Umbraco.Courier.Core.ProviderCollection`1.registerProviders(IEnumerable`1 types) 
    --- 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.Courier.Core.Singleton`1.Nested..cctor() 
    --- End of inner exception stack trace --- 
    at Umbraco.Courier.Core.Repository.loadSettings(XmlNode settingsXml) 
    at Umbraco.Courier.Core.Storage.RepositoryStorage.GetAll() 
    at Umbraco.Courier.UI.Pages.ViewRepositories.OnInit(EventArgs e) 
    at System.Web.UI.Control.InitRecursive(Control namingContainer) 
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Exception has been thrown by the target of an invocation.


    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.HttpException: Request is not available in this context 
    at System.Web.HttpContext.get_Request() 
    at Umbraco.Licensing.Validator.ValidateLicense(EncryptedLicense license) 
    at Umbraco.Licensing.Validator.Check() 
    at Umbraco.Licensing.Validator.IsTrial() 
    at Umbraco.Courier.Core.Licensing.InfralutionLicensing.IsLight() 
    at Umbraco.Courier.Core.ProviderCollection`1.registerProviders(IEnumerable`1 types) 
    --- 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.Courier.Core.Singleton`1.Nested..cctor()

    Request is not available in this context


    System.Web.HttpException (0x80004005): Request is not available in this context 
    at System.Web.HttpContext.get_Request() 
    at Umbraco.Licensing.Validator.ValidateLicense(EncryptedLicense license) 
    at Umbraco.Licensing.Validator.Check() 
    at Umbraco.Licensing.Validator.IsTrial() 
    at Umbraco.Courier.Core.Licensing.InfralutionLicensing.IsLight() 
    at Umbraco.Courier.Core.ProviderCollection`1.registerProviders(IEnumerable`1 types)

     

    I've a license for "exsilent.com", and my dev environment is setup with "dev.exsilent.com", so it should be validated. I also checked at the "revisions" node in courier, and it doesn't say my domain is invalid for the license. I have this in courier.config as repository:

     <repository name="https://exsilent.com" alias="Exsilent Production" type="CourierWebserviceRepositoryProvider" visible="true">

          <url>https://exsilent.com</url>;

          <login>*******</login>

          <password>******</password>

          <passwordEncoding>Hashed</passwordEncoding>

        </repository>

      </repositories>

     

  • Per Ploug 865 posts 3476 karma points MVP admin
    Aug 28, 2013 @ 09:00
    Per Ploug
    100

    Hi Khai

    I believe this is an issue with an older licensing dll, you can get the latest version here: http://nightly.umbraco.org/umbraco.licensing/

    /Per

  • Khai 71 posts 161 karma points
    Aug 28, 2013 @ 11:53
    Khai
    0

    Hi Per, yes, that was the solution, I already found it! Thanks anyways :) 

Please Sign in or register to post replies

Write your reply to:

Draft