You will think it is a joke, but remove the ; and it will work haha
ScriptManager.RegisterStartupScript(Page, GetType(), "ShowPopup", "alert('Você não tem permissão para acessar essa página')", true);
also, notice that you should do it inside a Form, at least that was how I reproduced it.