Hi,
I am using .Net Reactor 4.0. to protect my
ASP.NET 4.0 based
application DLL. I have wrapped up my data access logic in a separate
DLL ( e.g. DA.dll ). I protected DA.dll using .NEt Reactor and when
included its reference into my application, it just came up with the
Error saying "Attempted to Access and Unloaded AppDomain". This error
is occurring on my development machine as well as on Shared Web
Hosting (Full Trust Enabled). As soon i remove the protected DLL and
place the original version, it works fine otherwise application never
runs.
Please see the complete error details below.
Any help will be much appreciated.
Thanks.
A.
=======================================================
Here is the complete stack trace of the above mentioned error for
reference;
=======================================================
Server Error in '/' Application.
--------------------------------------------------------------------------------
Attempted to access an unloaded AppDomain.
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.AppDomainUnloadedException: Attempted to
access an unloaded AppDomain.
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:
[AppDomainUnloadedException: Attempted to access an unloaded
AppDomain.]
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) +98
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly,
Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean
fillCache) +241
System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes) +1136
System.Activator.CreateInstance(Type type, BindingFlags
bindingAttr, Binder binder, Object[] args, CultureInfo culture,
Object[] activationAttributes) +111
System.Activator.CreateInstance(Type type, BindingFlags
bindingAttr, Binder binder, Object[] args, CultureInfo culture) +23
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[]
args) +60
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +259
System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext
context) +9161852
System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext
context) +187
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +92
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
+327
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319;
ASP.NET Version:4.0.30319.272
================================================