title: Asp.Net Core 2.1 with .Net Framework 4.6.1 error after deployment using dotnet publish or visual studio publish
body: <p>I am trying to deploy Asp.Net Core 2.1 application with target framework 4.6.1 on server. I am using dotnet publish command and copying the publish folder on the server where deployment is intended. Everything works fine on local machine. But when I am trying to run the application on the server , it is throwing the exception ".Net Framework 4.6.1 not installed, please install it.".</p>
  
  <p>I thought .Net framework is not installed but when I checked installed software , I can see .Net 4.6.1 is installed. Not sure why the error is occurring.</p>
  
  <p>Here is screenshot for the application error and installed software</p>
  
  <p><a href="https://i.stack.imgur.com/HBmTM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HBmTM.png" alt="enter image description here"></a></p>