Reputation: 509
I have an ASP.NET application in which 5 sub - apps are running. I want one sub application to run in the other domain. I tried creating a new AppDomain:
AppDomain domain = AppDomain.CreateDomain("MyDomain");
When I try to retrieve FriendlyName by 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.
Upvotes: 4
Views: 844
Reputation: 172448
If I am getting it correctly then you nned to write a visualizer for that. It's a plugin for Visual Studio to "visualize" any watch value and you can do whatever you want to do in there, instead of in your actual project code.
Upvotes: 1