Procedure for student B visa marrying in Lausanne?

i have a type B student visa... do i have to leave the country to apply for my marriage visa?

No, you can do everything from Switzerland.

i also have the same problem.. i am already submitted all documents.then the authority told me to wait...but u dont need to do back to ur country if u have a valid permit..after ur marriage ur permit will change ..