This article provides an example of getting user information in a domain AD using C#. To make it work, you need to add the following library: using System.DirectoryServices.AccountManagement; Then you can get user parameters.
I recently had to help with the launch of a project under .NET on WCF - on a 64-bit system, the project worked normally on x86 but refused to work on x64. In general, as I expected, the problem was solved quite simply, in addition to the main problem, several others emerged in the process of solving, which required me to get acquainted with a very interesting library <a href="[[B3]]" target="_blank" rel="nofollow noopener external">Emgu CV</a>, which allows you to do a lot of remarkable things, including number plate recognition from an image.
In this publication, we will consider how to connect to the MySQL database from a .Net Core application. 1. If you have not installed .Net Core yet, install it: .NET Core. 2. Then create a new .NET Core project: mkdir MySQlCoreSample cd MySQlCoreSample dotnet new webapi
В предыдущей публикации мы создали простейший ASP.NET MVC проект на .NET Core и добавили в него контроллер. Весь проект состоял из 4 файлов и содержал только самое необходимое. Теперь мы добавим в этот проект представления. Скачать исходник…
In this publication, I hope to start a cycle of stories about developing an ASP.NET MVC application on .NET Core without using Visual Studio. For application development, I will use VS Code (essentially a text editor with bells and whistles), and nothing else.
1. Install .NET Core . 2. Create a new .NET Core project mkdir Sample01 cd Sample01 dotnet new After executing these commands in the Sample01 folder, 2 files will appear: "Program.cs", "project.json". This is the simplest template for a .NET Core application. ...
Example of a POST request to a service using WebRequest in C#: using System; using System.Net; using System.IO; namespace Tester { class Program { static void Main(string[] args) { Console.WriteLine("RUN Tests for Service:"); //Perform…
One peculiarity of data collection terminals Cipher with Windows CE is that, unlike other TSDs (at least Motorola(Symbol) and Datalogic), standard methods of obtaining a serial number will not work. To get it, you can, but it will be the same for all devices, which personally does not suit me.
Recently encountered a problem where FormWindowState.Maximized did not work everywhere. For example, it stopped working on one of my devices with Windows CE 6.0, and no amount of dancing helped. I spent a long time searching the internet, but found nothing in Russian. I eventually found a guide on an English-language website.
Not long ago, I stumbled upon an article on Habr about TcpListener - it was used to create a Web server. Since there are some tasks that require creating a similar application, it was decided to study the issue and try to recreate what was seen. I rewrote what was in the publication in an application (I always do this before downloading the source code - better for understanding) and ran it, but it didn't work. Actually, it worked, but occasionally - somehow crookedly and not suitable for a real working application. I downloaded the source code - the same thing, it worked but occasionally. <i>Here it works occasionally - means that the client sometimes connected and sometimes didn't connect to the server.</i> I decided to study the issue from scratch. I accumulated some material from the internet, and it all worked out - a testable working application.