c#

Portable Gacutil – How to Execute It Correctly

I recently needed to investigate a DLL version incompatibility on a Windows Server. I needed the Gacutil utility to check which version of an assembly was installed in the Global Assembly Cache (GAC). The problem was that there were no development tools installed on the server. Instead of installing the complete development environment, I decided […] Read more»

.Net & C#

A Hidden Visual Studio Trick: Execute Selected Code with double Ctrl+E

Did you know that in Visual Studio you can execute just a selected piece of code without running the whole application? There’s a handy (and surprisingly little-known) shortcut for this:Select the code and press Ctrl + E and then again Ctrl + E. Read more»

.Net & C#

Create new list item in SharePoint with CSOM and .Net (C#) in 6 steps

SharePoint 2016 Logo

This post is about how to crate a list item in SharePoint list in backend process. It can be API, background service, azure function, mobile or desktop app. So, it can be anything you want, but in .Net. And we will use SharePoint Rest API, that is wrapped by CSOM (Microsoft.SharePointOnline.CSOM). Read more»

SharePoint

Azure.RequestFailedException when start App in Visual Studio

The app that I am developing now connects to Azure services and DefaultCredential were used for that. In Azure the authentication between services works with managed identities and I am satisfied with them, but while the development I’ve got an error “Azure.RequestFailedException: Server failed to authenticate the request”, so I really didn’t know what to […] Read more»

Azure

C# Singleton for Context

I use the context service as a singletone in the app. What do you think, is this a good way to initialize and use context the way like this (see below) is it better just to use it as disposable? See examples below and write the comments Read more»

.Net & C#

Update Author field of the list Item in SharePoint online with C# app

SharePoint 2016 Logo

For a process I had to update the Author field in SharePoint online list item. This time I decided to use PnP.Core instead of PnP.Framework. Was it worth it? I don’t really know, but the method is not the most difficult part of the task. Read more»

SharePoint

Learn and explore Azure Storage account for free with Azurite

The Azurite open-source emulator provides a free local environment for testing your Azure Blob, Queue Storage, and Table Storage applications. When you’re satisfied with how your application is working locally, switch to using an Azure Storage account in the cloud. The emulator provides cross-platform support on Windows, Linux, and macOS. Read more»

Azure

Fix error no such table: “pragma_table_list” in DBeaver on opening the tables of SQLite database

Error with ‘pragma_table_list’ is actual not only for DBeaver, but also for any driver for SQLite. This post is about DBeaver just because I was working with it, when I met the error. The case is like this: I created an SQLIte database with Microsoft.EntityFrameworkCore and then I wanted to open it in DBeaver. But […] Read more»

Windows

Popular Posts