Running an application in another AppDomain in ASP.NET

I have an ASP.NET application that runs 5 sub-applications. I want one helper application to run in a different domain. I tried to create a new AppDomain:

AppDomain domain = AppDomain.CreateDomain("MyDomain");

When I try to get FriendlyName with the following code:

System.Diagnostics.Debug.WriteLine(domain.FriendlyName);

I got this error:

Cannot obtain fields or call methods on the instance of type 'System.AppDomain' because it is a proxy to a remote object.
+4
source share
1 answer

If I get it right, then you need to write a visualizer for this. This is a plug-in for Visual Studio to โ€œvisualizeโ€ any clock value, and you can do whatever you want, and not in your actual project code.

+1
source

Source: https://habr.com/ru/post/1528975/


All Articles