Fetch Wont Send Or Receive Any Cookies

Fetch won’t send or receive any cookies 🍪 Today I think I have fixed a bug that has niggled away at me for ages. A severe case of ‘works on my machine’ I have some code that consumes an external API that once authenticated would then, later on, make another API call to fetch the end users recent images. This worked great… Except for some users who reported they once logged on would not see...

Continue Reading

Imported Project Microsoft Common Props Not Found

The imported project “/usr/lib/mono/xbuild/15.0/Microsoft.Common.props” was not found On my Ubuntu disco dingo laptop, There was a bug affecting VS Code’s IntelliSense that I had just been putting up with for a good few days. The imported project "/usr/lib/mono/xbuild/15.0/Microsoft.Common.props" was not found There was no such problem on macOS or Windows however as I like to write code on my Linux daily driver laptop it became harder and harder to ignore. It’s a bug that I...

Continue Reading

Force Http To Https Redirect Via Aws Elb

Forcing HTTP to HTTPS redirect on IIS via Amazon Elastic Load Balancers Today I replaced an ageing asp.net web forms web application with a new static site which for now is just a landing page with a contact form and in doing so needed to force any insecure HTTP requests to HTTPS. A bit of a gotcha was an error on the redirect and the issue was the HTTP_X_FORWARDED_PROTO header also needed to be forwarded...

Continue Reading

Host ASP.NET Core on Windows with IIS

Host ASP.NET Core on Windows with IIS A recent push to production broke an ASP.NET Core application I have running and it took me a while to find out the underlying problem. The error was 502 - Web server received an invalid response while acting as a gateway or proxy server with nothing obvious in the logs that helped me. First I published a last known good version of my application by creating a new...

Continue Reading

Ubuntu 18.10 and the .net framework sdk 2.2 gives a package not found error

Ubuntu 18.10 and the .net framework sdk 2.2 gives a package not found error This is something I have had to do before so I am blogging here for next time. I have just upgraded my laptop from Ubuntu 18.04 to 18.10 so that I could check out the latest Gnome desktop environment and one of my first tasks was to update the .net framework to the latest 2.2 sdk. However despite following the instructions...

Continue Reading