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

前端 未结 6 1753
孤独总比滥情好
孤独总比滥情好 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 21:10

    Azure Data Lake Analytics runs on .NET 4.5 today. So we don't support .NET 4.6 assembly scenarios and this kind of errors are possible. To avoid it, you should rebuild your assembly in .NET 4.5.

    The following "non-recommended" workaround might work with a .NET 4.6 assembly: Rewriting string.Format(provider, format, arg0, arg1) into string.Format(provider, format, new object[] { arg0, arg1 })

提交回复
热议问题