Quantcast
Channel: Rick Strahl's Web Log
Browsing all 664 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Explicitly Ignoring Exceptions in C#

This post falls in the stupid pet tricks category. In most applications I have a few places where I explicitly need to ignore errors. You know the stuff where you use a try/catch blocks without any...

View Article


Image may be NSFW.
Clik here to view.

Updating Windows Applications and Installers for non-Admin Installation

I recently updated Markdown Monster to run as a non-admin installation even when running the full installer. There have been many requests for this functionality and in this post I describe several of...

View Article


Image may be NSFW.
Clik here to view.

Handling HTML5 Client Route Fallbacks in ASP.NET Core

HTML5 client routes work great on the client, but when deep linking into a site or pressing refresh in the browser, HTML5 client side routes have a nasty habit of turning into server HTTP requests....

View Article

Image may be NSFW.
Clik here to view.

Configuring LetsEncrypt for ASP.NET Core and IIS

LetsEncrypt makes it easy to create SSL certificates for your applications for free and lets you automate the process. When using LetsEncrypt with IIS and ASP.NET Core however a few extra steps are...

View Article

Image may be NSFW.
Clik here to view.

A Literal Markdown Control for ASP.NET WebForms

Spent some time last night creating a small ASP.NET Server control that can render literal Markdown text inside of ASPX pages and turn the literal text into Markdown. It's a very simple control, but it...

View Article


Image may be NSFW.
Clik here to view.

Accepting Raw Request Body Content in ASP.NET Core API Controllers

When posting raw body content to ASP.NET Core the process is not very self-explanatory. There's no easy way to simply retrieve raw data to a parameter in an API method, so a few extra steps are...

View Article

Image may be NSFW.
Clik here to view.

Conditional TargetFrameworks for Multi-Targeted .NET SDK Projects on...

If you build multi-targeted .NET SDK projects on multiple platforms you're going to find out that certain targets can't be build on certain platforms. If you target NetStandard and Net45 on a Mac,...

View Article

Image may be NSFW.
Clik here to view.

WPF Slow Window Loading due to Invalid SpellChecking Dictionaries

I ran into a nasty problem with spell checking on WPF, which caused any form that uses spell checking to load extremely slow. It turns out the problem was caused by errant entries in the global Windows...

View Article


Image may be NSFW.
Clik here to view.

A few notes on creating Class Libraries for ASP.NET Core

I recently started to collect some of my ASP.NET Core utilities into a helper support library as I tend to do. In the process I ran into a few snags and I realized I was making a few non-obvious...

View Article


Image may be NSFW.
Clik here to view.

Opening a Web Browser with an HTTP Url from Visual Studio Code

Here's a quick tip on how you can create a project specific Visual Studio Task that can launch a Web Browser to a specific page quickly and easily.

View Article

Image may be NSFW.
Clik here to view.

.NET Core 2.0 and ASP.NET Core 2.0 are Here

After a long wait .NET Core and ASP.NET Core 2.0 are finally here. This release is a major update from Version 1.0 that brings back a ton of functionality that was originally missing in .NET Core 1.x....

View Article

Image may be NSFW.
Clik here to view.

Dev Intersection 2017 Session Slides and Samples Posted

I've posted my Session Slides and code samples from last week's DevIntersection conference on GitHub.

View Article

Image may be NSFW.
Clik here to view.

Flexing your HTML Layout Muscles with Flexbox

Flexbox is a CSS based technology that makes it much easier to create structured layouts with HTML and CSS. Based on a containership hierarchy, Flexbox combines the structured features of tables with...

View Article


Image may be NSFW.
Clik here to view.

Using Gists for General Purpose Web Pages with Markdown

Most of you probably know and use Github Gists for sharing Code snippets. But did you know that Gists also support Markdown? Using Markdown makes it easy to create much richer code shareable code and...

View Article

Image may be NSFW.
Clik here to view.

Working around the lack of dynamic DbProviderFactory loading in .NET Core

.NET Core and .NET Standard are missing the DbProviderFactories class which is used to dynamically load ADO.NET DbProviderFactory instances which in turn are used to gain access to the various ADO.NET...

View Article


Image may be NSFW.
Clik here to view.

Easy Configuration Binding in ASP.NET Core - revisited

In this post I'm taking another look at using strongly typed configuration settings in ASP.NET Core, using a slightly simpler approach that foregoes using IOptions in favor of directly using a...

View Article

Image may be NSFW.
Clik here to view.

Code Magazine Article: Securing IIS Web Sites with Let’s Encrypt Certificates

Lets Encrypt makes it very easy to create free TLS certificates for your Web site. In this CODE magazine article Rick reviews some of the history of Lets Encrypt and then shows how you can easily take...

View Article


Image may be NSFW.
Clik here to view.

Distributing Content and Showing a ReadMe file in a .NET Core Nuget Package

.NET SDK style projects no longer support packaging NuGet content into projects as older projects did. So if you need to ship some dependent content with your library you need to find a different way...

View Article

Image may be NSFW.
Clik here to view.

Accessing Configuration in .NET Core Test Projects

.NET Core provides a clean configuration system and in ASP.NET Core that code is automatically configured for you. In test and other non-Web projects however you have to manually configure the...

View Article

Image may be NSFW.
Clik here to view.

Creating an ASP.NET Core Markdown TagHelper and Parser

A couple of months ago I wrote about creating a WebForms based Markdown control. This time around I'll build an ASP.NET Core MVC TagHelper that performs similar functionality for embedding Markdown...

View Article
Browsing all 664 articles
Browse latest View live