相关疑难解决方法(0)

System.MissingMethodException:找不到方法?

什么曾经在我的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)

c# asp.net dll httphandler nuget

226
推荐指数
8
解决办法
25万
查看次数

找不到方法:'System.String System.String.Format(System.IFormatProvider,System.String,System.Object)

我有一个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行

完整的源代码可以在GitHub找到

我甚至不确定这个去哪里.

在此先感谢您的帮助.

c# asp.net azure asp.net-web-api2

22
推荐指数
3
解决办法
2万
查看次数

标签 统计

asp.net ×2

c# ×2

asp.net-web-api2 ×1

azure ×1

dll ×1

httphandler ×1

nuget ×1