It seems that the IIS settings do not match.
If you go to IIS Manager and go to Application Pools and find the published folder (project name)
Select Published Project from the list.
Click Basic Settings from the Actions pane.
Change the version of the .NET Framework to v4.0xxxxx
source share