This question already has an answer here:
I have faced a question regarding application for visa for traveling to Europe in order to study there. I would be grateful to receive guidance on this.
I have been admitted to a European master program. Right now I am in Iran and I should travel to the Netherlands on August to participate in an introduction program and then move to France to take part in the first semester of the program. The second semester is going to be held in Hungary starting in February. My coordinator at the French university has asked me to start the application procedure for a visa for France while I am supposed to first enter the Schengen area in the Netherlands. Is it going to be ok? I've already asked about this from the Netherlands embassy in Iran and have been told that I should apply for a visa for my main destination (France) but they didn't say whether it would ok to enter the Netherlands by flying directly from Iran and without traveling to France first (while I am issued a visa for France).