prova a mettere
codice:
PathFile = server.mapPath("\upload\"&foto)