Posts
1146
Comments
890
Trackbacks
1
August 2016 Blog Posts
About Stereotypes: Compare and Contrast

Compare this point of view, with this point of view.

There are deep lessons in there.

posted @ Thursday, August 25, 2016 9:52 AM | Feedback (0)
Stress Management for Snowflakes

If you feel guilt at your list of unwatched shows on your DVR, this is for you.

posted @ Wednesday, August 24, 2016 10:03 AM | Feedback (0)
Asp.NET Core + IIS + PEBKAC = WTF, Asp.NET Core + IIS – PEBKAC = Success

Thankfully, the issue, as it usually is, was with me.

At some point, the publishOptions section of project.json switched from having an exclude section and put in an include section instead (which makes sense enough).

Turns out if you don’t include, you know, all your content and views and whatnot, IIS doesn’t have anything to serve up.

BTW, logging helps.  Duh.

Once I figured out that it was serving static content (which a helpful doc tells you to do, which requires that you read the helpful doc), it became easy to track down.

It does publish an .exe instead of a .dll, and I haven’t figured out how to publish without manual steps yet, but that tooling is supposedly coming soon, and should be workable in the interim.

Whew.

posted @ Tuesday, August 23, 2016 4:08 PM | Feedback (0)
Asp.NET Core + net461+ IIS = WTF

So, I have my nice port/re-write of an older MVC app to the new Asp.NET Core, which depends on some parts still written in net461 and so is configured for that, and I’ve reached the point I’ve ‘dreaded’ for quite some time.

I want to host this up in EC2, like a real app, which, of course, runs IIS.

The obvious question is:  how the hell do you do that?

I’ve read many things, and still, no work-y, as they all seem to depend on ‘pure’ Asp.NET core to work.  I can look in my stdout log location and see clearly:

Now listening on: http://localhost:25458
Application started. Press Ctrl+C to shut down.

And IIS is, maybe, fronting this.  Who the hell knows.  It doesn’t actually produce any output.  View source is blank.  Since it took a while to get it to not throw a 500 error, I actually do know it was/is fronting it (it wasn’t publishing the config.json and in the back, the kestrel piece of s^&t was complaining about it).

Of course, I can run it in Visual Studio under IIS Express.  Which is, of course, useless.  I want to be able to use https, real https, across the board.  I want to surf to the site under development from various mobile devices as I develop, real mobile devices, not emulators, so I can see how things will look in the real world.  I want to have some confidence that I will be able to deploy it to EC2 successfully.

You have a decade or two investment in IIS, you’d think you’d want this to work and make it a focus, not just “well, we’ll get it to work eventually, but look, you can develop on a MacBook!”  You’d think.

posted @ Saturday, August 20, 2016 1:55 PM | Feedback (0)
I probably could have written this code better

Long-ish project converting an app of mine from Asp.Net 3/4 to Asp.Net Core (half conversion, half rewrite kind of thing) and came across this gem:


public class AttemptToChangePasswordResult
{
    public bool Succeeded { get; set; }
}

At least it is fairly clear.

posted @ Monday, August 08, 2016 7:15 PM | Feedback (0)
MSDN Subscription People Finally Deliver

In a follow up to this, it took a while, but they finally updated my subscription end date to reflect the period of time that I didn’t have access.  Well, most of it, I think it was technically a few weeks short but fairly close anyway.

posted @ Tuesday, August 02, 2016 4:17 AM | Feedback (0)
New Trick for Old Dogs: Count number of files in directory from command prompt

DIR /A | FIND "File(s)"

posted @ Tuesday, August 02, 2016 4:13 AM | Feedback (0)