Well i know that i can apply inland even if he is illegal, it says so on the website...
"If I have overstayed my visa or visitor record or if I have been working or studying without a permit, can I apply for permanent residence under the Spouse or Common-law Partner in Canada Class? If yes, how...