c# - Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object) -
i have web api 2 project pages runs fine locally throws error when push azure:
method not found: 'system.string system.string.format (system.iformatprovider, system.string, system.object)
i temporarily turned custom errors off full stack trace can seen here
the error originating line of code:
string selectexpression = string.format(cultureinfo.invariantculture, methodexpression, getmembername(reflectedactiondescriptor.methodinfo));
see line 96 here
the full source code available on github
i'm not sure go one.
thanks in advance help.
according its msdn page, overload you're using supported on .net 4.6.
either configure host run .net 4.6 or change target framework of project 4.5 , recompile.
in 4.5 there's params object[]
overload chosen, without having alter code.
Comments
Post a Comment