Login hangs, causing game to report to Microsoft

The first time I log in, everything goes fine at first. I get to the “logging in” part and it hangs once for about 1-2 seconds, then continues. Then it goes into another hang for about 1-2 minutes before the game crashes and a bug report is sent to Microsoft. Then, in order to log in, I need to get to the same screen, alt-tab to another screen and then, after about 10-30 seconds, it’ll get past that hang. I’ve tried several techniques I’ve found online to get past it, but none of it worked.