什么曾经在我的asp.net webforms应用程序中工作现在抛出此错误:
System.MissingMethodException:找不到方法
该DoThis方法在同一个类上,它应该工作.
我有一个通用的处理程序:
public class MyHandler: IHttpHandler
{
public void Processrequest(HttpContext context)
{
// throws error now System.MissingMethodException: Method not found?
this.DoThis();
}
public void DoThis()
{
//
}
}
Run Code Online (Sandbox Code Playgroud) 我有一个Web API 2项目,其中包含可在本地运行良好的帮助页面但在将其推送到Azure时会抛出此错误:
找不到方法:'System.String System.String.Format(System.IFormatProvider,System.String,System.Object)
我暂时关闭了自定义错误,因此可以在此处看到完整的堆栈跟踪
错误源自这行代码:
string selectExpression = String.Format(CultureInfo.InvariantCulture,MethodExpression,GetMemberName(reflectActionDescriptor.MethodInfo));
见这里的第96行
我甚至不确定这个去哪里.
在此先感谢您的帮助.