Quantcast
Channel: Code Inside Blog
Browsing all 358 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Check installed version for ASP.NET Core on Windows IIS with Powershell

The problemLet’s say you have a ASP.NET Core application without the bundled ASP.NET Core runtime (e.g. to keep the download as small as possible) and you want to run your ASP.NET Core application on a...

View Article


Image may be NSFW.
Clik here to view.

Enforce Administrator mode for builded dotnet exe applications

The problemLet’s say you have a .exe application builded from Visual Studio and the application always needs to be run from an administrator account. Windows Vista introduced the “User Account Control”...

View Article


Image may be NSFW.
Clik here to view.

IdentityServer & Azure AD Login: Unkown Response Type text/html

The problemLast week we had some problems with our Microsoft Graph / Azure AD login based system. From a user perspective it was all good until the redirect from the Microsoft Account to our...

View Article

Image may be NSFW.
Clik here to view.

Did you know that you can build .NET Core apps with MSBuild.exe?

The problemWe recently updated a bunch of our applications to .NET Core 3.0. Because of the compatibility changes to the “old framework” we try to move more and more projects to .NET Core, but some...

View Article

Image may be NSFW.
Clik here to view.

T-SQL Pagination

The problemThis is pretty trivial: Let’s say you have blog with 1000 posts in your database, but you only want to show 10 entries “per page”. You need to find a way how to slice this dataset into...

View Article


Image may be NSFW.
Clik here to view.

Accessibility Insights: Spot accessibilities issues easily for Web Apps and...

AccessibilityAccessibility is a huge and important topic nowadays. Keep in mind that in some sectors (e.g. government, public service etc.) accessibility is a requirement by law (in Europe the European...

View Article

Image may be NSFW.
Clik here to view.

TLS/SSL problem: 'Could not create SSL/TLS secure channel'

ProblemLast week I had some fun debugging a weird bug. Within our application one module makes HTTP requests to a 3rd party service and depending on the running Windows version this call worked or...

View Article

Image may be NSFW.
Clik here to view.

Escape enviroment variables in MSIEXEC parameters

ProblemCustomers can install our product on Windows with a standard MSI package. To automate the installation administrators can use MSIEXEC and MSI parameters to configure our client.A simple...

View Article


Image may be NSFW.
Clik here to view.

Blazor for Office Add-ins: First look

Last week I did some research and tried to build a pretty basic Office Addin (within the “new” web based Addin model) with Blazor.Side note: Last year I blogged about how to build Office Add-ins with...

View Article


Image may be NSFW.
Clik here to view.

SqlBulkCopy for fast bulk inserts

Within our product OneOffixx we can create a “full export” from the product database. Because of limitations with normal MS SQL backups (e.g. compatibility with older SQL databases etc.), we created...

View Article

Image may be NSFW.
Clik here to view.

Can a .NET Core 3.0 compiled app run with a .NET Core 3.1 runtime?

Within our product we move more and more stuff in the .NET Core land. Last week we had a disussion around needed software requirements and in the .NET Framework land this question was always easy to...

View Article

Image may be NSFW.
Clik here to view.

EWS, Exchange Online and OAuth with a Service Account

This week we had a fun experiment: We wanted to talk to Exchange Online via the “old school” EWS API, but in a “sane” way.But here is the full story:Our goalWe wanted to access contact information via...

View Article

Image may be NSFW.
Clik here to view.

How to run a legacy WCF .svc Service on Azure AppService

Last month we wanted to run good old WCF powered service on Azures “App Service”.WCF… what’s that?If you are not familiar with WCF: Good! For the interested ones: WCF is or was a framework to build...

View Article


Image may be NSFW.
Clik here to view.

How to share an Azure subscription in a team

We at Sevitec are moving more and more workloads for us or our customers to Azure.So the basic question needs an answer:How can a team share an Azure subscription?Be aware: This approach works for us....

View Article

Image may be NSFW.
Clik here to view.

DllRegisterServer 0x80020009 Error

Last week I had a very strange issue and the solution was really “easy”, but took me a while.ScenarioFor our products we build Office COM Addins with a C++ based “Shim” that boots up our .NET code...

View Article


Image may be NSFW.
Clik here to view.

Update AzureDevOps Server 2019 to AzureDevOps Server 2019 Update 1

We did this update in May 2020, but I forgot to publish the blogpost… so here we areLast year we updated to Azure DevOps Server 2019 and it went more or less smooth.In May we decided to update to the...

View Article

Image may be NSFW.
Clik here to view.

How to get all distribution lists of a user with a single LDAP query

In 2007 I wrote a blogpost how easy it is to get all “groups” of a given user via the tokenGroup attribute.Last month I had the task to check why “distribution list memberships” are not part of the...

View Article


Image may be NSFW.
Clik here to view.

Microsoft Graph: Read user profile and group memberships

In our application we have a background service, that “syncs” user data and group membership information to our database from the Microsoft Graph.The permission model:Programming against the Microsoft...

View Article

Image may be NSFW.
Clik here to view.

How to self host Google Fonts

Google Fonts are really nice and widely used. Typically Google Fonts consistes of the actual font file (e.g. woff, ttf, eot etc.) and some CSS, which points to those font files.In one of our...

View Article

Image may be NSFW.
Clik here to view.

Today I learned (sort of) 'fltmc' to inspect the IO request pipeline of Windows

The headline is obviously a big lie, because I followed this twitter conversation last year, but it’s still interesting to me and I wanted to write it somewhere down.Starting point was that Bruce...

View Article
Browsing all 358 articles
Browse latest View live