.NET C# Java Javascript Exception

Auf codekicker.news findest du alle Informationen von Softwareentwicklern für Softwareentwickler: Blog-Beiträge und News zu Technologien, Tools und Technik.

73 Autoren machen bereits mit!

» Alle News und Artikel
» Autoren

Mitmachen: Reiche deinen eigenen Blog zu .NET, Java, PHP, JavaScript, Web, Mobile, ... ein.

» FAQ für Blogger und Autoren
» Mitmachen: Eigenen RSS-Feed einreichen


How to use IE proxy settings with HttpClient

Internet Explorer is - mostly - dead, but some weird settings are still around and “attached” to the old world, at least on Windows 10. If your system administrator uses some advanced proxy settings (e.g. a PAC-file), those will be attached to the users IE setting. If you want to use this with a HttpClient you need...
29.03.2022 | 223 1 | Code-Inside Blog

Redirect to HTTPS with a simple web.config rule

The scenario is easy: My website is hosted in an IIS and would like to redirect all incomming HTTP traffic to the HTTPS counterpart. This is your solution - a “simple” rule: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Redirect to https" stopProcessing=...
06.01.2022 | 462 4 | Code-Inside Blog

Select random rows

Let’s say we have a SQL table and want to retrieve 10 rows randomly - how would you do that? Although I have been working with SQL for x years, I have never encountered that problem. The solution however is quite “simple” (at least if you don’t be picky how we define “randomness” and if you try this on millions of...
07.12.2021 | 490 2 | Code-Inside Blog

SQL collation problems

This week I deployed a new feature and tried it on different SQL databases and was a bit suprised that on one database this error message came up: Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. This was strange, because - at least in...
25.11.2021 | 513 4 | Code-Inside Blog

Microsoft Build 2021 session recommendations

To be fair: Microsoft Build 2021 was some month ago, but the content might still be relevant today. Sooo… it took me a while, but here is a list of sessions that I found interesting. Some sessions are “better” and some “lighter”, the order doesn’t reflect that - that was just the order I watched those videos. The...
25.09.2021 | 681 3 | Code-Inside Blog

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 Dawson (Google programmer) noticed, that building Chrome on Windows is slow for various reasons: Based on some twitter...
31.05.2021 | 808 4 | Code-Inside Blog

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 applications, we used a HTML/CSS/JS - Bootstrap like theme and the theme linked some Google Fonts. The problem was, that we...
29.04.2021 | 751 7 | Code-Inside Blog

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 Graph is quite easy. There are many SDKS available, but understanding the permission model is hard. ‘Directory...
01.02.2021 | 929 1 | Code-Inside Blog

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 result. The reason is simple: A pure distribution list (not security enabled) is not a security group and only...
31.12.2020 | 1147 7 | Code-Inside Blog

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 are Last year we updated to Azure DevOps Server 2019 and it went more or less smooth. In May we decided to update to the “newest” release at that time: Azure DevOps Server 2019 Update 1.1 Setup Our AzureDevOps Server was running on a...
30.11.2020 | 832 4 | Code-Inside Blog

DllRegisterServer 0x80020009 Error

Last week I had a very strange issue and the solution was really “easy”, but took me a while. Scenario For our products we build Office COM Addins with a C++ based “Shim” that boots up our .NET code (e.g. something like this. As the nature of COM: It requires some pretty dumb registry entries to work and in theory...
01.11.2020 | 703 3 | Code-Inside Blog

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. There might be better options. If we do something stupid, just tell me in the comments or via email - help is...
30.09.2020 | 848 3 | Code-Inside Blog

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 mostly SOAP based services in the .NET Framework 3.0 timeframe. Some parts where “good”, but most developers would...
01.09.2020 | 954 6 | Code-Inside Blog

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 goal We wanted to access contact information via a web service from the organization, just like the traditional “Global Address List” in Exchange/Outlook. We...
01.08.2020 | 873 8 | Code-Inside Blog

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 answer: .NET Framework 4.5 or higher. With .NET Core the answer is sligthly different: In theory major versions...
01.07.2020 | 1034 5 | Code-Inside Blog

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 our own export mechanic. An export can be up to 1GB and more. This is nothing to serious and far from “big data”, but...
01.06.2020 | 897 1 | Code-Inside Blog

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 ASP.NET Core. Why Blazor? My daily work home is in the C# and .NET land, so it would be great to use Blazor for...
30.04.2020 | 1478 2 | Code-Inside Blog

Escape enviroment variables in MSIEXEC parameters

Problem Customers 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 installation can look like this: msiexec /qb /i "OneOffixx.msi" ... CACHEFOLDER="D:/OneOffixx/" The “CACHEFOLDER”...
28.03.2020 | 909 3 | Code-Inside Blog

TLS/SSL probelems: 'Could not create SSLTLS secure channel'

Problem Last 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 failed with: 'Could not create SSLTLS secure channel' I knew that older TLS/SSL versions are deprecated and that many...
01.03.2020 | 1070 5 | Code-Inside Blog

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

Accessibility Accessibility 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 Standards EN 301 549). If you want to learn more about accessibility in general this might be handy: MDN Web Docs...
01.02.2020 | 974 4 | Code-Inside Blog

T-SQL Pagination

The problem This 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 smaller pieces. The solution In theory you could load everything from the database and filter the results “in memory”...
31.12.2019 | 1518 36 | Code-Inside Blog

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

The problem We 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 projects still target “.NET Framework 4.7.2”, but they should work “ok-ish” when used from .NET Core 3.0 applications...
01.12.2019 | 799 1 | Code-Inside Blog

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

The problem Last 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 IdentityServer. As STS and for all auth related stuff we use the excellent IdentityServer4. We used the following...
13.10.2019 | 969 2 | Code-Inside Blog

Enforce Administrator mode for builded dotnet exe applications

The problem Let’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” (UAC) and such applications are marked with a special “shield” icon like this: TL;DR-version: To build such an...
30.09.2019 | 890 1 | Code-Inside Blog

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

The problem Let’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 Windows Server hosted by IIS. General approach The general approach is the following: Install the .NET Core...
01.09.2019 | 1065 10 | Code-Inside Blog
RSS-Feed für alle Fragen zum Thema .NET C# Java Javascript Exception

Interessante News gefunden, aber gerade keine Zeit? Klicke auf "Später lesen", um die News in deine Leseliste aufzunehmen.