Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

publish project in visual studio

i try to publish and i get an error

Error 1 Web deployment task failed. (The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v2.0'. This application requires 'v4.0'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_APPPOOL_VERSION_MISMATCH.) 0 0 HacmeBank_V2_Website

someone know how to resolve ?

thank you

like image 824
OrMoush Avatar asked Feb 17 '23 13:02

OrMoush


1 Answers

It looks like your IIS settings are not matching.

If you go to your IIS Manager and navigate to Application Pools and look for the published(your Project name) folder

Select your Published project from the list

Click on Basic Settings from Actions pane

Change the .NET Framework Version to v4.0xxxxx

like image 103
rajesh Avatar answered Feb 27 '23 17:02

rajesh