Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object)

前端 未结 6 1722
孤独总比滥情好
孤独总比滥情好 2021-01-03 20:42

I have a Web API 2 project with help pages that runs fine locally but throws this error when I push it to Azure:

Method not found: \'System.String Sys

6条回答
  •  孤街浪徒
    2021-01-03 20:55

    According to its MSDN page, the overload you're using is only supported on .NET 4.6.

    Either configure the host to run .NET 4.6 or change the target framework of the project to 4.5 and recompile.

    In 4.5 there's a params object[] overload which will then be chosen, without having to alter your code.

提交回复
热议问题