Skip to content

Tag: .net-core

Execute cat command to overwrite file

I am trying to execute the cat command from my C# code, but I am running into problems. So, this is just a very simple test, but I end up with the error: Error: cat: ‘>’: No such file or directory Now… both source and target files actually exist.. and same result if target file does not e…

CentOS .NET Core 6.0 installs wrong runtime version

These are 2 commands I ran trying to install .net core 6.0 on CentOS 8 Stream: Install says it installed 6.0.0-0.6 but the actual version is 6.0.0-rc.2.21470.23 and my app is failing with error: Can it be fixed without manual .net install ? SOLUTION (worked) add repo to the OS: sudo rpm -Uvh https://packages.…

Segmentation fault (core dumped) when calling LdapConnection.SendRequest(SearchRequest req) at System.DirectoryServices.Protocols on Ubuntu 18.04.4LTS

When I try to get user information from Active Directory, LdapConnection.SendRequest(SearchRequest req) causes : Segmentation fault (core dumped) on an Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-147-generic x86_64). If I remove the line searchRequest.TimeLimit = new TimeSpan(0, 1, 0); LdapPal.SearchDirectory method…

Make DateTime.Now Display European Format Globally on Linux

I’m running a .NET Core app which contains DateTime.Now.ToString(). When on my PC it displays European date format (dd/mm/yy) but when running on a Linux VM located in the US it displays American date format (mm/dd/yy) despite the timezone on the VM being GMT. How can I make it display only European dat…