I use CMake to create the DLL and SO file from my own C++ library, which I then call in my C# code via DLLImport. This has worked so far under Windows and under Linux (Docker). Now the library has been extended, which continues to work on Windows with the DLL. However, under Linux I now get the following error
Tag: asp.net-core
Azure Linux Web App Service – System.IO.IOException: Readonly File Error
The web app already running on .NET Core 3.1 LTS with IIS (windows server 2019) Recently, I deployed as an Azure Web App Service but I encountered a file write error. The application trying to create a new file for some business requirement. Error message; System.IO.IOException: Read-only file system Has anyone encountered this problem on Azure Linux Web App? Solved:
How to configure Key for IdentityServer4 on Linux
I have an asp.net core app with IdentityServer4. In production it requires a key. On Windows Server, I deployed it OK – created a self-signed certificate and added LocalMacine/my as the key location. How can I do the same on Linux? appsettings.json config on Windows – need syntax for Linux: Answer Can you not just refer to your certificate as
How to access Azure Linux web app path file
Trying to access file on path – wwwroot/templates/file.txt. It works using -_hostingEnvironment.ContentRootPath + “templatesfile.txt” on windows but same path says file does not exists. What Am I missing Answer Trying to access file on path – wwwroot/templates/file.txt. The following code snippet work for me, you can refer to it. And please make sure the file is really existing under that
Loading a TLS certificate uploaded to the Azure portal into a Linux app service container
For some time we’ve had an ASP.NET Core web app running on an Azure App Service. As part of upgrading to netcoreapp2.2 we’ve decided to Dockerize it and run it on a Linux container, still in an app service. One thing this app does is load in a TLS certificate for token signing. Previously this certificate was uploaded to the
No executable found matching command “dotnet-ef” in linux
I’m having this error No executable found matching command “dotnet-ef” when I try add migration with ‘dotnet ef migrations add Initial’ command in linux cli. I’ve installed dotnet sdk 2.1, I can build and run projects. System is Debian Linux 9 64 bit In windows env (win 10) everything works well on same setup. How to fix this? Update: dotnet
Publishing ASP.NET Core Applications on linux nginx server
When publishing an ASP.NET Core application to a Linux server running nginx, is it necessary to install the .NET Core runtime on the server? Answer One of the options when publishing a .NET Core application is self contained deployments which include a version of the .NET Core runtime. They are described (in the above link) as: For a self-contained deployment,
SmtpClient.Send not working on linux environment
The following code, written in the .net core 2 environment, works in the windows environment but not in the linux environment. Exception: Failure sending mail. InnerExcepiton: StackTrace: Linux: Ubuntu 16.04.3 LTS This is a console app. Why is not working in linux environment? Answer I thought it was a code error because of the error I had, but it was
Azure Powershell Module – Linux (.NET Core) Support
There exists an AzureRM module that is built on .NET Core. However, the AzureRM module doesn’t have all of the required functionality to interact with Azure. Many of the other cmdlets, such as New-AzureAffinityGroup, are present in the Azure module. Here are a list of other cmdlets: https://www.powershellgallery.com/packages/Azure/4.2.1 When can we expect support for this module and the remaining Azure
Stop a running dotnet core website running on kestrel
When deploying a new version of an existing .net core website. How do I first safely stop the old running kestrel app? Here is an exmaple of what I would like to write (Pseudo deployment script): killall dotnet seems a little unsafe. How would it work if I were hosting two small sites on one box? Answer I have decided