Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure deployment failing due to NetFx451

While deploying your project to azure you receive the error

Azure Deployment: The feature named NetFx451 that is required by the uploaded package is not available in the OS * chosen for the deployment.
like image 714
Dreamwalker Avatar asked Dec 02 '22 20:12

Dreamwalker


2 Answers

To fix this error update your *.cscfg files in your azure project. In each file you will find osFamily="3" (can be something else) change this to osFamily="4".

Publish your project again and it should now deploy

like image 177
Dreamwalker Avatar answered Jan 12 '23 11:01

Dreamwalker


For .Net 4.6.1 You need to select osFamily="5" inside your *.cscfg files and run these instructions

like image 26
Demodave Avatar answered Jan 12 '23 12:01

Demodave