如何通过程序集和methoddef找出方法名称?

Srv*_*v19 2 .net windows-server-2008

在装有 Windows XP 的计算机上开发并运行良好的应用程序在装有 Windows Server 2008 的目标计算机上存在严重问题。即,它无法正常启动,并提供以下信息:

Description:

  Stopped working


Problem signature:

  Problem Event Name:   CLR20r3

  Problem Signature 01: neolant.asrm.rcpfreshner.service

  Problem Signature 02: 1.0.7.0

  Problem Signature 03: 4f4b66d2

  Problem Signature 04: mscorlib

  Problem Signature 05: 2.0.0.0

  Problem Signature 06: 4bf4c743

  Problem Signature 07: e47

  Problem Signature 08: 20e

  Problem Signature 09: Exception

  OS Version:   6.0.6002.2.2.0.272.7

  Locale ID:    1049
Run Code Online (Sandbox Code Playgroud)

我想从中提取所有可能的信息,这意味着我需要知道 mscorlib 中的哪个方法具有 e47 的 methoddef。

我怎样才能检索这些信息?

Yur*_*uts 5

您可以使用ildasm(Microsoft 中间语言反汇编程序)。在 ildasm 中打开装配体,然后View -> MetaInfo -> Show!从主菜单中进行选择。您将看到带有 *Def/*Ref 标识符的程序集元数据。