【问题标题】:Run application in other AppDomain in ASP.NET在 ASP.NET 中的其他 AppDomain 中运行应用程序
【发布时间】:2014-02-26 14:03:10
【问题描述】:

我有一个 ASP.NET 应用程序,其中运行了 5 个子应用程序。我希望一个子应用程序在另一个域中运行。我尝试创建一个新的 AppDomain:

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

当我尝试通过以下代码检索 FriendlyName 时:

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

我收到了这个错误:

Cannot obtain fields or call methods on the instance of type 'System.AppDomain' because it is a proxy to a remote object.

【问题讨论】:

  • 请避免强制标签进入标题。见这里:stackoverflow.com/help/tagging
  • 该链接中清楚地写着:“选择最能描述您的问题的那些”,这就是我所做的。不过谢谢你的建议。
  • 那部分是关于选择正确的标签作为元数据。进一步阅读。 ;)
  • 他们指出您问题底部的 标签 告诉我们这是一个涉及asp.net 的问题。我们不需要您在问题标题中重复该信息。
  • 我实际上会喜欢 asp.net int 标题。俗气的 cmets... 感觉就像工作。

标签: c# asp.net appdomain


【解决方案1】:

如果我理解正确,那么您需要为此编写一个可视化工具。它是 Visual Studio 的一个插件,可以“可视化”任何监视值,您可以在其中做任何您想做的事情,而不是在您的实际项目代码中。

【讨论】:

  • 如果你能提供一些相同的参考,那就太好了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-05-03
  • 1970-01-01
  • 1970-01-01
  • 2011-03-25
相关资源
最近更新 更多