| 

.NET C# Java Javascript Exception

Code-Inside Blog

Blog über die moderne Webentwicklung mit ASP.NET MVC, Javascript & HTML5 auf der Microsoft Plattform.
Über den Autor
Robert Mühsig ist Webentwickler bei der T-Systems Multimedia Solutions GmbH in Dresden und wurde von Microsoft mit dem ASP.NET MVP Award ausgezeichnet.
Webseite des Autors Themen des Autors
.net allgemein asp.net asp.net-mvc azure azure-ad azure-websites bootstrap browser chrome cloud csharp css dart entity-framework fix games git github google howto howtocode html5 icons iis javascript jquery metro nosql nuget oauth open-source oss owin powershell ravendb rest rss security tfs twitter ui veranstaltungen visual-studio waad web webdeploy windows-8 windows-azure windows-phone-7
Auf codekicker News finden Programmierer redaktionell vorausgewählte und daher hochwertige Artikel zu verschiedenen, auswählbaren Themen. Auch dieser Autor veröffentlicht seine Artikel auf codekicker News.

» News weiterer Autoren
» Auch Autor werden


News und Artikel von Code-Inside Blog

6

SQLLocalDb update

Short Intro SqlLocalDb is a “developer” SQL server, without the “full” SQL Server (Express) installation. If you just develop on your machine and don’t want to run a “full blown” SQL Server, this is the tooling that you might need. From the Microsoft Docs: Microsoft SQL Server Express LocalDB is a feature of SQL Server Express targeted to developers. It is available on SQL Server ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
vorgestern | 24 0
6

Azure DevOps & Azure Service Connection

Today I needed to setup a new release pipeline on our Azure DevOps Server installation to deploy some stuff automatically to Azure. The UI (at least on the Azure DevOps Server 2020 (!)) is not really clear about how to connect those two worlds, and thats why I’m writing this short blogpost. First - under project settings - add a new service connection. Use the Azure Resource Manager ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
05.10.2022 | 173 0
9

'error MSB8011: Failed to register output.' & UTF8-BOM files

Be aware: I’m not a C developer and this might be an “obvious” problem, but it took me a while to resolve this issue. In our product we have very few C projects. We use these projects for very special Microsoft Office COM stuff and because of COM we need to register some components during the build. Everything worked as expected, but we renamed a few files and our build broke with: ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
31.08.2022 | 192 0
9

Which .NET Framework Version is installed on my machine?

If you need to know which .NET Framework Version (the “legacy” .NET Framework) is installed on your machine try this handy oneliner: Get-ItemProperty "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" Result: CBS : 1 Install : 1 InstallPath : C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ Release : 528372 Servicing : 0 TargetVersion : 4.0.0 Version : ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
30.08.2022 | 309 0
10

How to run a Azure App Service WebJob with parameters

We are using Web Jobs in our Azure App Service deployment and they ... for the most part. Just register a Web Jobs or deploy your .exe/.bat/.ps1/... under the \site\wwwroot\app_data\Jobs\triggered folder ... If you put any executable in this Web Job folder, it will be executed as planned. Problem: ... -param "test" ? Solution: run.cmd The Web Job environment is “greedy” and will search for a ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
23.07.2022 | 270 0
11

How to use IE proxy settings with HttpClient

... var targetUri new Uri(target); var proxyAddressForThisUri Web Request.GetSystemWebProxy().GetProxy(targetUri); if (proxyAddressForThisUri targetUri) { // no proxy ... new HttpClient(new HttpClientHandler() { Proxy new Web Proxy(proxyAddressForThisUri) { UseDefaultCredentials true } }); } The ... needed. Otherwise, we inject a new Web Proxy for this address. Hope this ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
29.03.2022 | 534 3
8

Redirect to HTTPS with a simple web.config rule

The scenario is easy: My web site is hosted in an IIS and would like to redirect all incomming HTTP traffic to the HTTPS counterpart. This is your ... /rules /rewrite /system.webServer /configuration We used this in the past to setup a “catch all” web site in an IIS that redirects all incomming HTTP traffic. The actual web applications had only the HTTPS binding in place. Hope this helps!
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
06.01.2022 | 697 4
8

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 rows): ORDER BY NEWID() The most boring way is to use the ORDER BY NEWID() ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
07.12.2021 | 712 2
6

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 theory - all databases have the same schema and I was sure that ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
25.11.2021 | 713 4
6

Microsoft Build 2021 session recommendations

... / Web View 2 [Mark ... Web Together Mode scenes ... .NET ](https://mybuild.microsoft.com/sessions/76ebac39-517d-44da-a58e-df4193b5efa9?source sessions) “.NET Core Momentum” .NET Upgrade Assistant Minimal web apis MAUI Blazor ... Web & Desktop Hot ... web app with Blazor & Web Assembly Learning video ... ASP.NET Core Service apps ... [.NET 6 deep dive; ... .NET Momentum .NET 5 - why .NET ... ASP.NET ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
25.09.2021 | 870 3
8

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 discussion about source-file length and build times two months ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
31.05.2021 | 993 4
8

How to self host Google Fonts

... font file (e.g. woff, ttf, eot etc.) and some CSS , which points to those font files. In one of our applications, ... this tool: Google-Web-Fonts-Helper Pick your font, select your preferred CSS option (e.g. if you need to support older browsers etc.) and download ... package. Extract those files and add them to your web project like any other static asset. (And check the font license!) The ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
29.04.2021 | 927 8
9

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.Read.All’ and ‘User.Read.All’: Initially we only synced the ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
01.02.2021 | 1180 1
5

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 security groups are part of the “tokenGroup” attribute. After some thoughts and ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
31.12.2020 | 1376 7
9

Update AzureDevOps Server 2019 to AzureDevOps Server 2019 Update 1

... itself don’t use the Windows Certificate Store. To resolve this, the root certificate from our Domain controller must be stored on the agent. [Environment]::SetEnvironmentVariable(“NODE_EXTRA_CA_CERTS”, “C:\SSLCert\root-CA.pem”, “Machine”) Summary The update itself was easy, but it took us some hours to configure our Build Agents. After the initial hiccup it went ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
30.11.2020 | 993 4
6

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 b uild 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 our toolchain should “build” and automatically “register” the output. ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
01.11.2020 | 842 3
7

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 appreciated. Step 1: Create a directory We have a “company directory” with a ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
30.09.2020 | 991 4
7

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

... 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 call it a complex monster. ... To “re-map” the .svc extension to the correct handler I needed to add this to the web .config : ... system.webServer ... handlers remove name "svc-integrated" / add name "svc-integrated" path "*.svc" ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
01.09.2020 | 1086 6
8

EWS, Exchange Online and OAuth with a Service Account

... to access contact information via a web service from the organization, just like the traditional “Global ... EWS is… old. Why? The Exchange Web Services are old, but still quite powerful and still ... “AcquireTokenByUsernamePassword” method: ... var cred new Net workCredential("UserName", "Password"); var authResult await pca.AcquireTokenByUsernamePassword(new string[] { ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
01.08.2020 | 1031 8
10

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

... more and more stuff in the .NET Core land. Last week we had ... 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: ... compiled your app with .NET Core 3.0 and a .NET Core runtime 3.1 is the only ... good part With .NET Core we could ship the framework ... with the next .NET Core versions. Hope this helps!
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
01.07.2020 | 1153 5
11

SqlBulkCopy for fast bulk inserts

... doing it. SqlBulkCopy to the rescure: After my failed attempt to tame our EF implementation I discovered the SqlBulkCopy operation. In .NET (Full Framework and .NET Standard!) the usage is simple via the “SqlBulkCopy” class. Our importer looks more or less like this: using (var scope new TransactionScope(TransactionScopeOption.RequiresNew, TimeSpan.FromMinutes(30), ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
01.06.2020 | 1031 1
6

Blazor for Office Add-ins: First look

... (within the “new” web based Addin model) ... Office Add-ins with ASP.NET Core. Why Blazor? ... the C# and .NET land, so it ... is just a web application with a ... from the real web . What (might) ... What won’t work: Web Assembly (if I ... - what about Web Assembly? Well… Blazor Web Assembly is still ... long time: Blazor Web Assembly seems not ... Web Assembly installs a ... Web View. My experience ... Web Assembly, so… time ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
30.04.2020 | 1723 3
7

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” parameter will be written in the .exe.config file and our program ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
28.03.2020 | 1067 3
5

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

... call worked without any issues on a Windows 10 1903 machine The HTTPS call didn’t work on a Windows 7 SP1 (yeah… customers…) and a Windows 10 1803 machine. Our software uses the .NET Framework 4.7.2 and therefore I thought that this should be enough. Root cause Both systems (or at least they represents two different customer enviroments) didn’t enable TLS 1.2. On Windows 7 (and I ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
01.03.2020 | 1222 5
9

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

... general this might be handy: MDN Web Docs: What is accessibility? Tooling support In my day ... accessibility issues in our Windows and Web App. I knew that there must be some good tools for web development, but was not sure about Windows app support. ... (or Edge) as well to check web apps. The extension is similar to the ... used the Chrome version for our Web Application as well. If you use or used ...
.net asp.net asp.net-mvc csharp css html5 iis javascript jquery web
01.02.2020 | 1124 4
12345...17