Click here to Skip to main content
15,890,438 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Back online Pin
Mike Hankey26-Oct-16 9:00
mveMike Hankey26-Oct-16 9:00 
GeneralRe: Back online Pin
Slacker00726-Oct-16 9:00
professionalSlacker00726-Oct-16 9:00 
GeneralRe: Back online Pin
jeron126-Oct-16 9:13
jeron126-Oct-16 9:13 
GeneralRe: Back online Pin
Johnny J.26-Oct-16 22:05
professionalJohnny J.26-Oct-16 22:05 
GeneralRe: Back online Pin
W Balboos, GHB27-Oct-16 1:07
W Balboos, GHB27-Oct-16 1:07 
GeneralRe: Back online Pin
Mike Hankey27-Oct-16 2:20
mveMike Hankey27-Oct-16 2:20 
GeneralRe: Back online Pin
Foothill27-Oct-16 6:26
professionalFoothill27-Oct-16 6:26 
RantAsync and await the end of the call stack. Pin
Brady Kelly26-Oct-16 6:12
Brady Kelly26-Oct-16 6:12 
I have a task that is maybe three calls deep from the MVVM Login command to the Web API call for a token. The API had an erroneous connection string, to an older version of the database*, and the UserManager.CreateUser method was failing in the Register action. It took about fifteen minutes, and a hard break-point, e.g. Debug.Fail(), to find the error.

The stack trace was most confounding, and it mentioned the Account controller and the error once that I could see in an 86 line long stack track, most of which were exceptions on a MoveNext() method on a slew of async tasks.

It is clear that I have some learning to do regarding configuring the innermost task, the long running one that is to be awaited, and that learning will begin tomorrow morning at 04h30, my normal starting time. Time to consult the venerable Mr. Skeet's seminal tome on C# 5.

* It's damned annoying how EF drops a default connection string, like a turd, into your config file, that points to the new fangled LocalDb. Then you forget to set one up, your first migration creates the DB there, then when you can't connect to where you expect it, you fix the connection string, and re-run the migration in the right database. Then, when you have done a few more migrations, and add e.g. a test project, it is once again pointing to the out-of-date LocalDb version.
Follow my adventures with .NET Core at my new blog, Erisia Information Services.

GeneralRe: Async and await the end of the call stack. Pin
TheGreatAndPowerfulOz26-Oct-16 6:23
TheGreatAndPowerfulOz26-Oct-16 6:23 
GeneralRe: Async and await the end of the call stack. Pin
Brady Kelly26-Oct-16 6:34
Brady Kelly26-Oct-16 6:34 
GeneralRe: Async and await the end of the call stack. Pin
TheGreatAndPowerfulOz26-Oct-16 7:20
TheGreatAndPowerfulOz26-Oct-16 7:20 
GeneralRe: Async and await the end of the call stack. Pin
Marc Clifton26-Oct-16 8:24
mvaMarc Clifton26-Oct-16 8:24 
GeneralRe: Async and await the end of the call stack. Pin
Brady Kelly26-Oct-16 9:30
Brady Kelly26-Oct-16 9:30 
GeneralRe: Async and await the end of the call stack. PinPopular
Richard Deeming26-Oct-16 9:44
mveRichard Deeming26-Oct-16 9:44 
GeneralRe: Async and await the end of the call stack. Pin
Marc Clifton26-Oct-16 10:49
mvaMarc Clifton26-Oct-16 10:49 
GeneralRe: Async and await the end of the call stack. Pin
Mark_Wallace26-Oct-16 23:09
Mark_Wallace26-Oct-16 23:09 
GeneralRe: Async and await the end of the call stack. Pin
Munchies_Matt26-Oct-16 8:53
Munchies_Matt26-Oct-16 8:53 
GeneralRe: Async and await the end of the call stack. Pin
Brady Kelly26-Oct-16 9:38
Brady Kelly26-Oct-16 9:38 
GeneralRe: Async and await the end of the call stack. Pin
Sander Rossel26-Oct-16 9:14
professionalSander Rossel26-Oct-16 9:14 
GeneralRe: Async and await the end of the call stack. Pin
Brady Kelly26-Oct-16 9:41
Brady Kelly26-Oct-16 9:41 
GeneralRe: Async and await the end of the call stack. Pin
Shuqian Ying26-Oct-16 11:53
Shuqian Ying26-Oct-16 11:53 
GeneralRe: Async and await the end of the call stack. Pin
Brady Kelly26-Oct-16 17:24
Brady Kelly26-Oct-16 17:24 
GeneralRe: Async and await the end of the call stack. Pin
Shuqian Ying26-Oct-16 20:42
Shuqian Ying26-Oct-16 20:42 
GeneralMissing SA Answers Pin
SHugeNF26-Oct-16 5:55
SHugeNF26-Oct-16 5:55 
GeneralRe: Missing SA Answers Pin
Abhinav S26-Oct-16 6:10
Abhinav S26-Oct-16 6:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.