GoorooTHINK

Thought provoking and helpful articles
from the Gooroo community.

Do you have something to say? Contribute or create an article and add it to your Gooroo bio.

  1. Operation Not Legal in the Current State - Debugging ASP.NET Core Web Applications

    The other evening I was playing around with an ASP.NET Core application. When I started debugging it, I immediately saw an error message pop up that said It was a bit of a head scratcher, so I decided to restart the debug session and see if the problem resolved itself. This didn't help and I saw the same error again.I also saw that my Chrome browser had started up, but it wasn't showing my web page. It was stuck on a notification page telling me that JavaScript debugging is now enabled in Visual...
  2. Contributing to .NET for Dummies

    Over the past few months in the little spare time that I have, I’ve managed to submit a handful of pull requests to various .NET-related repositories (e.g. coreclr, corefx, docs, etc.) and incredibly, they were accepted.Now, for some, this may not seem like a big deal. But it felt like a pretty big one to me so I thought I would take some time to elaborate on the process itself, share my experience, and hopefully dispel a few myths or misconceptions that you might have that may be holding you back...
  3. Extending Tag Helpers in ASP.NET Core

    A few days ago, I was answering questions on Stack Overflow when I came across one that I thought might be relevant to share with others that might have a similar issue. The issue itself revolved around Tag Helpers, and in particular, getting data attributes found on models to properly generate the appropriate attributes when rendered.This post will introduce how to easily extend an existing tag helper for a common use-case. It will primarily focus around the use of the Input Tag Helper, the [MaxLength]...
  4. The Path is Null and Full of Squiggles

    I've been using Visual Studio 2017 since the earliest bits were available and I can confidently say, I'm a fan and highly recommend you give it a shot if you get a chance.With that being said, sometimes new features can cause things to blow up and this post is going to be discussing one of those such features, namely Lightweight Solution Load.Recently, I opened up a decently sized solution (~9 projects) and everything seemed in order. All of my dependencies were there, with no warning signs to be...
  5. Sharing is Caring: Using Shared Projects in ASP.NET

    As software developers, copy-pasting some code or a few files and having it in multiple places has always been smelly. There are several different avenues that you can take to avoid this kind of redundancy, but this post will focus on one that it seems isn’t talked about too often: Shared Projects.Prior to the introduction to Shared Projects, I’ll briefly go over why Shared Projects themselves were introduced, and how you might have accomplished similar behavior before their release.With the major...
  6. Custom user roles and role-based authorization in ASP.NET core

    I've recently been trying to contribute to the developer community, in more ways than I previously have. One of the areas I decided to delve into, is spending more time on tech forums and resources like StackOverflow.  Well not for asking questions or checking for answers, but more for answering as many questions as I possibly can. The aim is to provide answers primarily to questions budding developers are asking. so Let's hope I do a lot of that as time goes on. Hey, I might...
  7. Using response compression in ASP.NET Core 1.1

    Modern browsers support multiple compression schemes such as deflate and gzip. Using this nifty feature in your web application can contribute greatly to an improved overall user experience. In this article, we'll discuss response (gzip) compression, it's benefits and how to implement it in your ASP.NET core web application. Response compression is an effective way to improve the efficiency of any website. It helps reduce bandwidth use and dramatically speeds up your website's load time...
  8. How to Query Twitter with C#

  9. Creating Custom Error Pages in ASP.NET core 1.0

    Okay, so you’ve probably come across tons of broken links on our enormous world wide web, and it gets even more frustrating when there aren’t any links or buttons redirecting to a working page. However, the hard truth is, in reality, errors are inevitable. Whether they occur through wrong user input, or simply just one or two bugs in your code, they are simply just inevitable.This article explains perhaps the most efficient way to set up custom error pages for your ASP.NET core web Application. Using...
  10. Avoid ClickJacking in ASP.Net Core 1.0

    I recently received the status report of a penetration test of my ASP.Net Core 1.0 MVC site done by our IT team. They used Rapid 7s vulnerability/penetration testing tool called [Nexpose](https://www.rapid7.com/products/nexpose/compare-downloads.js]. I wish I had known about it before I thought I was “done” (I haven’t written code for it for a few weeks, it has been tested and is ready to deploy), but that’s a different story. I should be doing this testing as I develop, not just at the end.One of...
  11. Edit DRAFT Edit

    • updated