Hi there: I have heard about this type of incidents before. To get the student permit, you will have to get out of Canada and re-enter the country again -- you can only get the permit at the port of entry. When I was in Toronto, a lot of people went to Baffalo... Since your visa is expired, perhaps you will need to apply for a Canadian visa first...best of luck.