You should install IIS sub components from
Control Panel ->
Programs and Features ->
Turn Windows features on or off
Internet Information Services has subsection
World Wide Web Services /
Application Development Features
There you must check
ISAPI Filters will be selected automatically). Double check that specific versions are checked. Under Windows Server 2012 R2, these options are split into 4 & 4.5.
Finally check in IIS manager, that your application uses application pool with .NET framework version v4.0.
Also, look at this answer.