Category : asp.net-core

Is is possible to get the ChRootDirectory setting set in the sshd_config file on the remote server (Both Windows version and Linux Version). If so, how do we do it in C# SFTP: OpenSSH Windows: Server 2019 64bit Linux: CentOS 8 Programming Language: C#, ASP.NET Core 3.1 SDK: Renci SSH.NET IDE: VS2019 Any help is ..

Read more

I’m trying to run my project in a Windows Container in Docker but I kept having this kind of error when loading the necessary dll for DinkToPDF: System.DllNotFoundException: ‘Unable to load DLL ‘C:applibwkhtmltox’ or one of its dependencies: The specified module could not be found. (0x8007007E)’ Already tried the suggested solutions on this threads but ..

Read more

when im running the code in console app exact username will print but after taking the build and running the app username will be in empty string. Please guide me to solve this issue private static string GetUserNameBySessionId(uint id) { IntPtr buffer; IntPtr strLen; if (WTSQuerySessionInformationW(IntPtr.Zero, id,5, out buffer, out strLen)) { string userName = ..

Read more

When I’m running the code in console app exactly username has been printed, but after taking a build and running the app, username is a empty string. Please guide me to solve this issue. private static string GetUserNameBySessionId(uint id) { IntPtr buffer; IntPtr strLen; if (WTSQuerySessionInformationW(IntPtr.Zero, id,5, out buffer, out strLen)) { string userName = ..

Read more

I’m currently working on a Blazor app (serverside) and I’m looking at adding a certificate for HTTPS. I have already set up Certbot on my Windows Server to automatically refresh certificates, and have already generated one. However, I’m having trouble telling Blazor to use this certificate. My current appsettings.json looks like this: { "Kestrel": { ..

Read more