appdomain Questions
11
Solved
My projects are set up like this:
Project "Definition"
Project "Implementation"
Project "Consumer"
Project "Consumer" references both "Definition" and "Implementation", but does not statically ...
Rodolphe asked 5/3, 2010 at 4:40
3
I have an application that loads external assemblies which I have no control over (similar to a plugin model where other people create and develop assemblies that are used by the main application)....
1
I have relatively simple application, but warm (second, etc.) start-up time is awful 3-5 seconds. Profiler (VS2010, CPU Sampling) shows that more than 80% of time is spent in Application.RunInterna...
Discriminative asked 30/9, 2011 at 11:58
5
Solved
I'm writing a Asp.Net Core application which should be able to update itself (replace its own binaries while running).
This MSDN article describes shadow copying with the classical .Net framework,...
Adelladella asked 14/3, 2017 at 8:5
4
Solved
I'm experimenting with loading an assembly using just byte arrays, but I can't figure out how to get it to work properly. Here is the setup:
public static void Main()
{
PermissionSet permissions...
3
Solved
I have a service that loads a child AppDomain and then starts a thread running in it. It needs an AppDomain because it dynamically generates and loads some code and I need to be able to restart it ...
Clove asked 30/3, 2011 at 23:55
5
Solved
I'm developing a module for an external application, which is a dll that is loaded.
However in order to develop, you have to restart the application to see the results of your code.
We have built a...
5
Solved
From What is a .NET Application Domain?:
You can run several application domains in a single process with the same level of isolation that would exist in separate processes, but without incurrin...
1
From the main AppDomain, I am trying to call an async method defined in a type instantiated in a different AppDomain.
For example, the following type MyClass inherits from MarshalByRefObject and i...
Vicentevicepresident asked 1/3, 2013 at 23:9
3
Solved
Is there any possibility how to enumerate AppDomains within Process?
6
Is there a strong reason why Microsoft chose not to support AppDomains in .NET Core?
AppDomains are particularly useful when building long running server apps, where we may want to update the asse...
1
Solved
I am currently migrating a project and it's test projects from .Net Framework to .Net Core.
In .Net Framework, we used to be able to do something like this to set the EntryAssembly for tests :
A...
Lauree asked 9/3, 2020 at 16:11
2
I have an in-memory assembly MyAssembly (class library) that is used in my main assembly MyApp.exe:
byte[] assemblyData = GetAssemblyDataFromSomewhere();
(For testing, the GetAssemblyDataFromSom...
Quintinquintina asked 7/5, 2019 at 13:32
10
When a MarshalByRef object is passed from an AppDomain (1) to another (2), if you wait 6 mins before calling a method on it in the second AppDomain (2) you will get a RemotingException :
System....
Gaddy asked 9/3, 2010 at 15:36
2
Solved
I'm having problems with debugging an application that calls out to another AppDomain, because if an exception occurs in whatever the other AppDomain is doing, the exception bubbles up and causes V...
3
Solved
Background: Noda Time contains many
serializable structs. While I dislike binary serialization, we
received many requests to support it, back in the 1.x timeline.
We support it by implementing the ...
Lomasi asked 20/1, 2018 at 11:29
1
I have a WPF user control that uses a Popup. This control is a plugin and can be loaded in the main AppDomain or in a separate AppDomain, and it is hosted in a Winforms form using ElementHost. When...
7
Solved
I need to use cross-appdomain calls in my app, and sometimes I have this RemotingException:
Object '/2fa53226_da41_42ba_b185_ec7d9c454712/ygiw+xfegmkhdinj7g2kpkhc_7.rem' has been disconnected or...
Gdynia asked 14/6, 2011 at 5:31
1
Solved
I'm struggling to draw the boundaries in my head for PowerShell. My very limited understanding is this:
A Scope contains user/script defined variables and functions, and there can be a hierarchy ...
Misbeliever asked 18/1, 2017 at 19:41
0
How can I prevent an entire application (process) crash when AccessViolationException (or another Corrupted State Exception) is thrown in an AppDomain in .NET 4.6? My goal is to wrap a 3rd party li...
Fenny asked 16/10, 2018 at 19:58
2
Solved
Relating to Can I make the default AppDomain use shadow copies of certain assemblies?, it describes a working solution to activate shadow copying within the default AppDomain for a specific directo...
Powerboat asked 20/9, 2012 at 13:26
3
Solved
In our application (solution with 65 projects), all referenced assemblies are analysed in run-time for the presence of Ninject modules (there is some filtering applied too). The modules are loaded ...
Psephology asked 14/11, 2016 at 8:29
4
Solved
I'm trying to create an object in an appdomain:
var type = typeof (CompiledTemplate);
var obj = (CompiledTemplate) domain.CreateInstanceAndUnwrap (
type.Assembly.FullName, type.FullName);
Howev...
6
Solved
I have an application that needs to send a moderately high volume of messages between a number of AppDomains. I know that I could implement this using remoting, but I have also noticed that there a...
5
Solved
What is the most important use of AppDomains in C#?
1 Next >
© 2022 - 2024 — McMap. All rights reserved.