TimePunch

  • Status New
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Backend
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3.30
  • Due in Version Undecided
  • Due Date Undecided
Attached to Project: TimePunch
Opened by Gerhard - 13.12.2018
Last edited by Gerhard - 25.05.2020

FS#953 - Loading this assembly would produce a different grant set from other instances.

Server Error in '/TpOnline' Application.


Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)]

 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +139
 System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1431
 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +184
 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
 System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +80
 System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +234
 System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1153
 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +139
 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369

[HttpException (0x80004005): Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)]

 System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +714
Project Manager

https://blog.bugrapostaci.com/2017/02/08/loading-this-assembly-would-produce-a-different-grant-set-from-other-instances-exception-from-hresult-0x80131401/ https://blog.bugrapostaci.com/tag/legacycasmodel/ https://stackoverflow.com/questions/42240956/loading-this-assembly-would-produce-a-different-grant-set-from-other-instances

"People are resolving this problem by setting legacyCasModel=”false” which is NOT SUPPORTED .
You shouldn’t change it because of backward compatibility and dependancy reasons we need that. Disabling this property cause anomalies."

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing