2
Vote

Error creating type Eksponent.CropUp.Umbraco.UmbracoDefaults

description

In the log I see the following error sometimes:

Error creating type Eksponent.CropUp.Umbraco.UmbracoDefaults
System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. ---> System.Web.HttpException: Aanvraag is niet beschikbaar in deze context
bij System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrlInternal(Assembly assembly, String resourceName, Boolean htmlEncoded, Boolean forSubstitution, IScriptManager scriptManager, Boolean enableCdn)
bij System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrl(Type type, String resourceName, Boolean htmlEncoded, IScriptManager scriptManager, Boolean enableCdn)
bij System.Web.UI.ClientScriptManager.GetWebResourceUrl(Page owner, Type type, String resourceName, Boolean htmlEncoded, IScriptManager scriptManager)
bij System.Web.UI.ClientScriptManager.GetWebResourceUrl(Type type, String resourceName)
bij Eksponent.CropUp.Umbraco.UmbracoDefaults..ctor()
--- Einde van intern uitzonderingsstackpad ---
bij System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
bij System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
bij System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
bij System.Activator.CreateInstance(Type type, Boolean nonPublic)
bij System.Activator.CreateInstance(Type type)
bij Umbraco.Core.PluginManager.CreateInstances[T](IEnumerable`1 types, Boolean throwException)

Any idea why I get this error?

comments

Thopet wrote Aug 7, 2013 at 11:27 AM

I get the same - in english....

ERROR Umbraco.Core.PluginManager - [Thread 4] Error creating type Eksponent.CropUp.Umbraco.UmbracoDefaults
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 System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrlInternal(Assembly assembly, String resourceName, Boolean htmlEncoded, Boolean forSubstitution, IScriptManager scriptManager)
at System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrl(Type type, String resourceName, Boolean htmlEncoded, IScriptManager scriptManager)
at System.Web.UI.ClientScriptManager.GetWebResourceUrl(Page owner, Type type, String resourceName, Boolean htmlEncoded, IScriptManager scriptManager)
at Eksponent.CropUp.Umbraco.UmbracoDefaults..ctor()
--- 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(Type type, Boolean nonPublic)
at Umbraco.Core.PluginManager.CreateInstances[T](IEnumerable`1 types, Boolean throwException)

jbreuer wrote Aug 7, 2013 at 12:08 PM

I installed the patch from Jeavon Leopold and that fixed it for me: https://twitter.com/crumpled_jeavon/status/357914205833265152

Thopet wrote Aug 7, 2013 at 12:57 PM

Thanks - that did resolve the issue

dascoba wrote Jan 24, 2014 at 2:48 AM

I've also seen this error in my logs, but it doesn't appear to have any negative issues with CropUp