The general requirement is that an application for a permit for work or study must be filed at the Embassy or Consulate General.
A permit is normally granted for one year at a time, and such permits are normally renewable.
For more information about work or study permits, residency, asylum, or family reunification, please see the Norwegian Directorate of Immigration