dotnetcore
42 items tagged with "dotnetcore"
Articles
Error: database static dir ... does not match our static dir ... database configuration mismatch
Semantic Kernel with Local LLMs in C#/.NET
Resolve error MSB4126: The specified solution configuration "Debug|x64" is invalid
Install .NET 8 and 9 SDKs on a Non-System Drive
Danger: Bypass SSL Interception Proxy Server Certificate Validation in .NET or Python HTTP Requests
Mount Azure File Share to Azure App Service or Azure Functions Linux Container Apps
This code snippet shows you how to mount Azure Storage file share as a local drive in a Linux container app hosted in Azure App Service or Azure Functions. Outline of the code The code snippet does the following: Create a storage account Create file service Create a file share Create an App Service resource with Linux container Mount the file share to the app For .NET 8 containers If you use .NET 8 images that runs without root permissions, please mount the file share to path under /home. Otherwise, you may encounter errors like the following when deploying to Azure: "message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"DeploymentFailed","target":"/subscriptions/\\\/resourceGroups/\\\/providers/Microsoft.Resources/deployments/kontext-web","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InternalServerError","message":"There was an unexpected InternalServerError. Please try again later. x-ms-correlation-request-id: \\\*"}
Azure Function App - Failed to start a new language worker for runtime: dotnet-isolated
Deploy Azure Function App with .NET 8 to Azure Container Apps via Bicep
Azure Function App can now be deployed into Azure Container Apps managed environment. This code snippet shows you how to deploy an Azure Function App created with .NET 8 (dotnet-isolated as runtime) into a managed environment of Azure Container Apps. The container source image is from GitHub (ghcr.io). You can also use any other container registry. Resources created This Bicep template creates the following resources: Blob Storage account Azure Log Analytics workspace Azure Application Insights Azure Container Apps managed environment Azure Function App Required credential You need to provide a container registry user name and password if you are using private registry. This template uses GitHub Packages.
InvalidOperationException: A second operation was started on this context instance before a previous operation completed
Install .NET 8 SDK on Ubuntu
System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode.
Visual Studio Code: Debug ASP.NET Application with Hot Reload
.NET Hot Reload in Visual Studio Code
Query JSON via JMESPath in .NET
About --idempotent Flag in dotnet ef migrations script
Fix Error CryptographicException: The payload was invalid.
Read Embedded Assembly Resource Files in .NET
EntityFramework Core: Generate Migration Scripts in a Separate Project
EntityFramework Core Database Migration in Azure DevOps Pipeline
The Entity Framework tools version '3.1.7' is older than that of the runtime '5.0.3'.
Draw Images in ASP.NET Core 5
EntityFramework Core - Update Only One Field
EntityFramework Core - Connect to MySQL
Connect to MySQL in .NET 5
LINQ to SQL - Select N Random Records
Modern Web Application - Azure Blob Storage for Uploaded Files
With cloud platforms like Azure, we can totally separate user content storage from web application storage to decouple components from each other and to make the application easy to scale and deploy. This article provides detailed information with code snippets about how to use Azure server-less product Blob Storage and App Service to enable horizontally scalable web application for users to upload files (BLOBs).
Machine Learning with .NET in Jupyter Notebooks
.NET for Apache Spark Preview with Examples
Set AttachDbFilename as Relative Path in .NET Core
Instantiate a Service in ConfigureServices Method in .NET Core
ASP.NET Core 2.1 Error - 'Cyrillic' is not a supported encoding name
SQLite in .NET Core with Entity Framework Core
Graphics Programming and Image Processing in .NET Core 2.x
ASP.NET Core 2 with Bootstrap 4 Bundler Minifier Issue: Expected semicolon or closing curly-brace found '-'
Logging configuration in .NET core
.NET core introduces a logging API that works with a number of logging frameworks. The built-in providers are configurable and extensible to support different level loggings.
Sending Emails in .NET Core Applications
Sending emails are common in applications. For example, when user registers, we need to send account activation emails. This post summarize the approaches we can use to send emails in .NET Core 1.x and 2.x.
Retrieve Http client request metadata like IP address and languages in asp.net core
Retrieve Azure AppSettings and Connection String Settings in ASP.NET Core Apps
In ASP.NET Core, we can easily use user secrets to manage our password or credentials. This post will summarize the approaches we can use after the websites are deployed into Azure.