Tag: Just Coding
How do I fix HTTP Error 502.5 - Process Failure when hosting in IIS with dotnet core
![]() |
I received a new error today that I haven't received before when deploying dotnet core apps. It was as the title suggest a "HTTP Error 502.5 - Process Failure" error |
Setting up 2 factor authentication and email verification with .net core 2.0
![]() |
Today I played with a new .net core template just to see what the authentication options were out the box and was surprised to see just how easy it is to go from nothing to having a base project that has authentication fully baked in with 2 factor authentication and email verification. |
Creating an asynchronous AuthorizeAttribute in MVC
|
A couple days ago I needed to call a remote web api call in my AuthorizeAttribute sometimes but as mentioned in this (Is it possible to use async/await in MVC 4 AuthorizeAttribute?) StackOverflow question (and other forums) it isn’t supported but is in the newer .net core. Unfortunately the project I needed this on was traditional MVC so I was left still finding a way |
BenchmarkDotNet: IsBoolean method
![]() |
This post might seem weird and is slightly. It's really just a pointer as with all my posts to send people to instead of sharing lots of text "on the down low" 😁. |
Converting Html to Pdf using C# and magic!
Using ngrok to test web apps on mobile while developing
Implementing a dynamic robots.txt
![]() |
Firstly you might want to know why would you want to implement a dynamic robots.txt? Isn't it better to just put a static file in the web app? Yes it is but when you running your application on certain platforms like web apps in Azure when you using deployment slots. I found this handy link which explains deployment slots quite nicely |
Using C# 6 to make 'bad' SQL awesome
![]() |
I'm busy going through Pluralsight watching Exploring C# 6 with Jon Skeet by Rob Conery. Jon Skeet goes ahead and makes this epic method that looks like it's so naughty but is pretty cool. |