When developing applications, there are times when you need to temporarily change the behavior of a working method — for example, to investigate a bug, check something quickly, or work around an issue for the moment.
(read more...)When developing applications, there are times when you need to temporarily change the behavior of a working method — for example, to investigate a bug, check something quickly, or work around an issue for the moment.
(read more...)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...)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 do. Yesterday it worked, today not.
(read more...)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...)With the code below you can copy and set specific permissions to a directory within Net app.
(read more...)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...)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...)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 I got the error that "no such table: pragma_table_list". Started to research.
(read more...)SmartFormat is a is a lightweight text templating library to replace string.Format. Unlike common String.Format, with SmartFormat you can read templates from text files or another source. Here I will share the way, how I tried to write the DateTime in the format 'dd/MM/yyyy HH:mm:ss'. It was not so obvious.
(read more...)For a prototype I loaded a pfx certificate from file system of Azure App. It can be done only while test!!And I got the error "Exception Info: System.Security.Cryptography.CryptographicException: The system cannot find the file specified."
(read more...)