I am totally confused by this problem!!!
Scenario : A fresh install of SP2013 using a different account.
I can initially deploy an on premises high trust app via f5, then retract, then install.
Then I get this error "The system account cannot perform this action". This problem keeps occurring for me only on 3 of our servers. get-spmanagedaccount does not return my username, and none of the apppools or services running on the server are running as this account.
I've been developing software for 7 years professionaly :) and this is honestly the worst problem I have come across.
There is nothing on eventvwr on server or development machine. I have not investigated sharepoint logs, as they seem to be unreadable.
Sharepoint 2013m VS 2012 sp1, windows7, windows 2008 server.
Does anybody have a solution this is depressing me and wasting days and days of time.