Shane Bartholomeusz

Geek and lover of all things tech related

Tag: Web Development

Visual Studio: Generate Class From JSON String

Overview

If you work JSON documents, I'm sure you've probably had to create a class file from a JSON string. Doing this manually can be a real pain in the proverbial, especially if you are working with a large JSON document. It can also be very error-prone. Therefore it's best to automate this conversion.

In this post I'll show you how to automatically generate a class file from a JSON string using a little known feature built into Visual Studio.

Visual Studio Icon
Continue reading

Visual Studio: Show Current File in Solution Explorer

Overview

Have you ever worked on a large Visual Studio project that contained many projects and become somewhat disorientated, unable to find the currently open file within the Solution Explorer pane?

I did just that recently … I started work on a large Visual Studio solution for a client which contained over 180 projects within a single solution. Yep, I’m not even joking!

Whilst trying to learn and understand the solution structure I found myself getting lost inside the sea of nested projects and folders contained within the solution.

Well guess what? You're in luck because I'll show you a little known feature that may help you.

Visual Studio Icon
Continue reading

Solved: BlazorInputFile ‘No File Chosen’ Error

Blazor WebAssembly Icon

Problem

Blazor is an exciting new technology for .NET developers that enables us to leverage our core strengths by writing most of the code in C# and minimising the need to write JavaScript code.

While working on a Blazor WebAssembly solution that used Steve Sanderson's BlazorInputFile solution I came across an unusual issue where the “No File Chosen” text would not change and the selected filename did not appear even though a file had already been selected.

Hmmmm … what's going on here?

HTML File Input Screenshot
Continue reading

Implement Azure Web App Authentication – The Easy Way

Overview

Let’s face it … security is HARD. Implementing authentication and authorization into applications has always been a challenge and a chore for developers. Building a secure application requires strong knowledge across a number of areas.

Thanks to the power of Microsoft Azure, it now doesn’t have to be like this anymore. Thanks to the power of Easy Auth it’s easier than ever to setup secure authentication for your web application with the click of a few buttons. Yep, I’m not kidding!

So what are we waiting for … lets get started.

Azure App Service Logo
Continue reading

How To: Google Analytics In Chrome Extensions

Background

Google Analytics

Google has replaced its legacy analytics library https://ssl.google-analytics.com/ga.js with the new and improved Universal Analytics library https://www.google-analytics.com/analytics.js.

I’ve been working on a Google Chrome Browser Extension but had some trouble integrating it with Google Analytics. Google's own tutorial hadn’t yet been updated to use the new analytics library. In this post I'll explain how I did it.

Continue reading

Reduce Google Chrome Memory Usage

Google Chrome
As a web developer I regularly use Google Chrome for it's great debugging features. As much as I love Google Chrome it can be a bit of a pig sometimes … it lovessss eating memory!

Continue reading

Aspnetcore.dll failed to load. The data is the error

The Problem

When trying to locally debug a newly created solution within Visual Studio 2015 I encountered the below error when locally launching the application using IIS Express

A process with the ID of <id> is not running

ASP.NET Logo

Seeing no errors logged in the Visual Studio Output window, I checked the Windows Event Viewer and found the following error:

The Module DLL C:\Program Files (x86)\IIS Express\aspnetcore.dll failed to load. The data is the error.

The error was a bit confusing because it alluded to ASP.NET Core even though I wasn't using this in my project.

Continue reading

Progressive Web Apps: Future of the Web?

Decisions, Decisions, Decisions …

Progressive Web App ExampleIn today’s rapidly evolving world of technology there has always been a clear distinction between mobile apps and websites. They each bring along their own set of pros and cons.

Although native mobile apps provide a first class user experience, they tend to have a higher barrier to entry; they require installation and are typically more difficult to develop/maintain. Websites on the other hand are platform agnostic and are typically easier to develop and maintain, however they provide a less engaging user experience.

In this article I'll touch on a new technology called Progressive Web Apps which aims to bring these disparate worlds together. It may very well be the future of the web!

Continue reading

© 2021 Shane Bartholomeusz

Theme by Anders NorenUp ↑