Method not found: '!! 0 [] System.Array.Empty ()'

Viewed 10531

I have IIS 8.5 version. And my web api project framework is .Net 4.6 . I publish the web api and it is work on local iis express or my computer(windows 8.1) iis. But when I publish the api on windows server r2 2012 iis and when I click browse, I get below error.

Note: server iis version is same as my computer version.

Server Error in '/' Application.

Method not found: '!! 0 [] System.Array.Empty ()'.

Explanation: An unhandled exception occurred while executing the current web request. Please review the stack trace to find out more about the error and where it originates in the code.

Exception Details: System.MissingMethodException: Method not found: '!! 0 [] System.Array.Empty ()'.

enter image description here

2 Answers

I solved problem as below:

  1. Download and install windows updates.
  2. After , install .net 4.6.2
Related