Top "Appdomain" questions

An application domain is an isolated environment in which Microsoft .NET assemblies can be sandboxed, granted specific permissions or PermissionSets and executed.

How do you force the IIS Application Pool to restart whenever the App Domain is reloaded?

We have an ASP.NET MVC 4 application that links to legacy native code. The problem is that this legacy code …

asp.net iis asp.net-mvc-4 appdomain application-pool
SerializationException: Type is not resolved for member "..."

I've been trying to dynamically load an assembly to an AppDomain. I need to do it because I want to …

c# appdomain
FileNotFound when load assembly with dependency to another domain

I'm trying to make application with plugins. I have MainLib.dll, where I made some commnon interface(let it be …

c# plugins .net-assembly appdomain
Unable to cast transparent proxy to type from AppDomain

I'm trying to create an object in an appdomain: var type = typeof (CompiledTemplate); var obj = (CompiledTemplate) domain.CreateInstanceAndUnwrap ( type.Assembly.…

c# .net remoting appdomain
AppDomain.CreateInstanceFromAndUnwrap - Unable to cast transparent proxy

I'm writing a .NET library to inject managed DLLs into external processes. My current approach is: Use CreateRemoteThread to force …

c# appdomain code-injection
How to pass a variable from one app domain to another

I'd like to know, if I have a variable,for example, a string, how to pass its value to my …

c# .net vb.net cross-domain appdomain
How can I prevent CompileAssemblyFromSource from leaking memory?

I have some C# code which is using CSharpCodeProvider.CompileAssemblyFromSource to create an assembly in memory. After the assembly has …

c# memory-leaks marshalling appdomain compileassemblyfromsource
Loading Byte Array Assembly

I'm experimenting with loading an assembly using just byte arrays, but I can't figure out how to get it to …

c# appdomain
Static Fields in AppDomain

I'm experimenting ideas around using AppDomain to manage some legacy code contains lots of static fields in a multi-threaded environment. …

c# .net appdomain
Replacing Process.Start with AppDomains

Background I have a Windows service that uses various third-party DLLs to perform work on PDF files. These operations can …

c# appdomain .net-3.5 process.start