Did you previously delete the application deployed from that directory?
If so, you will need to remove the locally cached deployment information before redeploying.
If you are using the development version of rsconnect
from GitHub, it will have a new function, forgetDeployment. Otherwise, you will need to manually delete the ./rsconnect/shinyapps.io/<account name>/<app name>.dcf
file.