We ran into the same problem after moving from log shipping to mirroring. You must create a task that regularly backs up the transaction log (every 15 or 30 minutes or so) to keep the log size out of control.
If it has already failed, run BACKUP LOG TO DISK = 'Nul', then run the DBCC SHRINKFILE command. Then you can customize your work.
Please note: "Nul" is not spelling, it is an old DOS trick that behaves as if you are writing a file, but actually just uploads the information to the air, so it does not take up space on the machine.
, , , . , .
EDIT: , . "nul" . , . , .