Apparently, I'm getting the following issue when I publish. I'm running 6.0.2. Could this be related to Antlr3.Runtime? I ran into a dll conflict and tried to use dependentAssembly's to fix the issue.
Thanks, Chad
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) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) at System.Activator.CreateInstance[T]() at Umbraco.Courier.Core.Singleton`1.Nested..cctor() --- End of inner exception stack trace --- at Umbraco.Courier.Core.Singleton`1.get_Instance() at Umbraco.Courier.Core.Repository.loadSettings(XmlNode settingsXml) at Umbraco.Courier.Core.Storage.RepositoryStorage.GetAll() at Umbraco.Courier.UI.Dialogs.CommitItem.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) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) 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)
Just an FYI, but I've just had this problem after a CmsImport update resulted in an Umbraco.Licensing.dll update which broke Courier on a v4.11.4 site. Reverted the dll and this is now working.
Issue when publishing
Apparently, I'm getting the following issue when I publish. I'm running 6.0.2. Could this be related to Antlr3.Runtime? I ran into a dll conflict and tried to use dependentAssembly's to fix the issue.
Thanks,
Chad
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)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
at System.Activator.CreateInstance[T]()
at Umbraco.Courier.Core.Singleton`1.Nested..cctor()
--- End of inner exception stack trace ---
at Umbraco.Courier.Core.Singleton`1.get_Instance()
at Umbraco.Courier.Core.Repository.loadSettings(XmlNode settingsXml)
at Umbraco.Courier.Core.Storage.RepositoryStorage.GetAll()
at Umbraco.Courier.UI.Dialogs.CommitItem.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)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
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)
This was related to this:
http://our.umbraco.org/forum/umbraco-pro/courier/39637-Umbraco-602-plus-Courier-for-Umbraco-6-the-given-key-was-not-present-in-the-dictionary?p=1#comment146886
and is now fixed.
-C
Just an FYI, but I've just had this problem after a CmsImport update resulted in an Umbraco.Licensing.dll update which broke Courier on a v4.11.4 site. Reverted the dll and this is now working.
I'm encountring, the same error, Umbraco v6.1.2 with Courier_2.7.5.1.90.v6
is working on a reply...