Management has no clue what you're getting into assignment wise. Are you liking your assignment? They don't care. Managers treat you as if they are the boss of the company.
Yes you are allowed to quit an assignment, of course, but why should you take your chances and gamble, risking another dead end assignment to follow?