Quantcast
Channel: Rick Strahl's Web Log
Browsing index pages (700 articles)

Image may be NSFW.
Clik here to view.

Protecting File Access in the wwwroot Folder in ASP.NET

In many of my Web applications I have a few files that are dynamically created as part of administrative tasks. These files tend to be cumulative and contain data that can be accessed directly from...

View Article


Image may be NSFW.
Clik here to view.

Back to Basics: JavaScript and Timezones

Classic native Date values in JavaScript are internally represented as UTC dates. However, when you display values they are by default shown as local date/time values. I've run into this recently...

View Article


Image may be NSFW.
Clik here to view.

Getting Inherited Controller Routes to work in ASP.NET Core

By default ASP.NET applies Controller Attribute Routes on concrete types. If you create a Controller class, the class and its routes are automatically recognized by ASP.NET during the startup process....

View Article

Image may be NSFW.
Clik here to view.

Creating Dual Use Windows GUI and Console Applications

In my last post I described a WebPackageViewer tool tool that acts as a static Web site packager and self-contained Web site viewer all contained in a single Executable. One feature of this single...

View Article

Image may be NSFW.
Clik here to view.

Creating a Packaged Windows Single File Web Site Viewer Executable

This post falls squarely into the stupid pet tricks category, but I'm going to post about it anyway, because it was an interesting experiment in dynamically creating a single file, self-contained...

View Article


Image may be NSFW.
Clik here to view.

Lost ASP.NET Identity Cookies on IIS Application Pool Restarts

Last week I finally updated my blog and moved it to .NET 10 from the ancient WebForms based engine I built 20 years ago. The app is deployed onto a Windows server running IIS and I ran into a snag...

View Article

Image may be NSFW.
Clik here to view.

Running ASP.NET Core Applications in an IIS Subfolder Application

ASP.NET Core applications by default want to run in a root folder - and to be fair that's the 99% use case. But there are those occasional situations where you want to run a Web site in a sub folder...

View Article

Image may be NSFW.
Clik here to view.

Getting the Client IP Address in ASP.NET Core

When I need to pick up the client IP Address in ASP.NET Core I always forget where to find the connection information.It's also useful to remember that if requests are proxied we need to return the...

View Article


Image may be NSFW.
Clik here to view.

Putting the Westwind.Scripting C# Templating Library to work, Part 2

This is a two part series that discusses the Westwind.Scripting Template libraryPart 1: Revisiting C# Scripting with the Westwind.Scripting Templating LibraryPart 2: Real world integration for a Local...

View Article


Image may be NSFW.
Clik here to view.

Revisiting C# Scripting with the Westwind.Scripting Templating Library, Part 1

This is a two part series that discusses the Westwind.Scripting Template libraryPart 1: An introduction to Template Scripting and how it works (this post)Part 2: Real world integration for Local...

View Article

Using .NET Native AOT to build Windows WinAPI Dlls

Did you know that you can use .NET AOT compilation to create native Windows DLLs to potentially replace traditional C/C++ compiled DLLs? It's now possible to build completely native DLLs that can be...

View Article

Azure Trusted Signing Revisited with Dotnet Sign

In this follow-up post to my previous guide on Azure Trusted Signing, I explore how the new `dotnet sign` tool significantly simplifies the code signing process compared to the traditional `SignTool`...

View Article

Don't use the Microsoft Timestamp Server for Signing

The default Microsoft timestamp server frequently causes intermittent failures during the code-signing process, particularly when processing many files or large binaries as part of a application...

View Article


Reliably Refreshing the WebView2 Control

The WebView2 control lacks a direct `Reload(noCache)` overload that forces a browser hard reload of the current page. Instead content is loaded with a soft refresh that - hopefully - reloads the...

View Article

What the heck is a `\\.\nul` path and why is it breaking my Directory Files...

I've been trying to track down an odd bug in my logs related to Null device failures in directory lookups which have been causing application level exceptions. In some odd scenarios these null mappings...

View Article


Using the new WebView2 AllowHostInputProcessing Keyboard Mapping Feature

If you've used the WebVIew2 control for a UI interactive Hybrid active you've probably run into some odd keyboard behavior, where some keys cannot be captured properly in the host application or are...

View Article

Fighting through Setting up Microsoft Trusted Signing

It's that time of year again to update my CodeSigning certificate, only to find out that the rules have changed since I last did this. Certs now require either a physical hardware key or a online...

View Article


Image may be NSFW.
Clik here to view.

Revisiting C# Scripting with the Westwind.Scripting Templating Library, Part 1

This is a two part series that discusses the Westwind.Scripting Template libraryPart 1: An introduction to Template Scripting and how it works (this post)Part 2: Real world integration for Local...

View Article

Image may be NSFW.
Clik here to view.

Using .NET Native AOT to build Windows WinAPI Dlls

Here's something that I didn't know you could do: You can create AOT compiled DLLs that compile down to platform specific native DLLs. For example, on Windows you can compile an AOT library to a...

View Article

Image may be NSFW.
Clik here to view.

Using .NET Native AOT to build Windows WinAPI Dlls

Here's something that I didn't know you could do: You can build .NET native DLLs using AOT compilation, that can be compiled to platform specific native DLLs. For example, on Windows you can compile an...

View Article
Browsing index pages (700 articles)


Latest Images