How can I get my .NET Core 3 single file app to find the appsettings.json file?
How should a single-file .Net Core 3.0 Web API application be configured to look for the `appsettings.json` file that is in the same directory that the single-file application is built to? After runn...
- Modified
- 11 Oct at 15:20
How to add property in existing json using System.Text.Json library?
``` { "TestData":{ "Year__of__Account":"2019", "Tax___x0025_":"0.06", "Buildings__1":"1000", "Contents__1":"400", "Total...
- Modified
- 25 Nov at 23:56
Mark strings as non-nullable in ASP.NET Core 3.0 Swagger
I'm using ASP.NET Core 3 and Swashbuckle with mostly default configuration and I have a DTO parameter with a string on it that I want to be non-nullable. How can I achieve this? Note, Required and nul...
- Modified
- 30 Sep at 06:51
standard_init_linux.go:211: exec user process caused "exec format error"
I am building the Dockerfile for python script which will run in minikube windows 10 system below is my Dockerfile Building the docker using the below command `docker build -t python-helloworld .` a...
- Modified
- 9 Oct at 07:31
.NET Core 3.0 StringEnumConverter not serializing as string
When decorating your enum with: ``` [JsonConverter(typeof(StringEnumConverter))] public EventEntity Entity { get; set; } ``` And serializing it with `JsonConvert.SerializeObject(myEvent)` You may ...
- Modified
- 8 Oct at 14:14
.Net Core 3.0 TimeSpan deserialization error - Fixed in .Net 5.0
I am using .Net Core 3.0 and have the following string which I need to deserialize with Newtonsoft.Json: ``` { "userId": null, "accessToken": null, "refreshToken": null, "sessionId": ...
- Modified
- 7 Sep at 07:58
How to modify asp.net Identity UI for asp.net core WebAPI with angular
I started learning .net core a few days ago and as a start, I created a .netcore project with an inbuilt angular 8 templates. It has a couple of pages built in angular, like counter and fetches data...
- Modified
- 1 Jan at 21:31
Typescript: Cannot use import statement outside a module
I have a .ts file in node js (latest version of node.js for 07.10.19) app with importing node-module without default export. I use this construction: `import { Class } from 'abc';` When i run the code...
- Modified
- 24 Nov at 20:4
How to correctly implement unit tests for .NET Standard Library
So as far as I have been understanding from my research. A .net Standard Library can not be used on its own, so it needs to be tested through a different framework, either with .net Framework or .net ...
- Modified
- 16 May at 18:31
Converting newtonsoft code to System.Text.Json in .net core 3. what's equivalent of JObject.Parse and JsonProperty
I am converting my newtonsoft implementation to new JSON library in .net core 3.0. I have the following code ``` public static bool IsValidJson(string json) { try { J...
- Modified
- 25 Nov at 18:56
Enable Billing on the Google Cloud Project
I want to retrieve address from lat long coords. I have created project in google console. Added Billing information and enabled the geocoding api services. But still when i make this request i am get...
- Modified
- 6 Feb at 22:32
How to run multiple BackgroundService parallel in .net core 3.0?
How is it possible to run multiple IHostedServices in parallel? I use the WorkerService in .Net Core 3.0 and want both services to run parallel. Currently the second service is waiting for the first ...
- Modified
- 14 Oct at 09:23
Microsoft.Azure.StorageException: The specified resource name contains invalid characters
I am creating blob storage to load a file from local path to cloud. Using storage account I have created on portal, I am getting an error: `Microsoft.Azure.Storage.StorageException:The specified resou...
- Modified
- 7 Oct at 08:8
'ILoggerFactory' does not contain a definition for 'AddConsole'
``` private ILoggerFactory ConfigureLogging(ILoggerFactory factory) { factory.AddConsole(); return factory; } ``` I have found the piece of code above on [Github](https://github.com/foxb...
- Modified
- 23 Sep at 12:13
so many comment tags in blazor rendered html file
I was wondering if anyone knows why there are so many empty comment tags `<!--!-->` in blazor rendered HTML file I installed 2 projects, and when I started the project I saw all of these comments I a...
Accessing the SerialPort class using .Net Core 3.0
I'm starting a new .NET Core 3.0 project in which I need to access the System.IO.Ports.SerialPort class. The documentation I'm reading on the class shows that it is applicable to .NET Core 3 ( see the...
- Modified
- 6 Oct at 15:7
Client certificate with HttpClient in c#
Want to send data with client certificate (.p12 or .pfx) from Windows application to Server machine, Windows application developed in .Net Framework 4.6, OS is windows 10. When hit from postman with c...
- Modified
- 16 May at 18:31
Dynamically update .net core config from Azure App Configuration
I am attempting to setup Azure App Configuration with a .net core 2.1 mvc web application with a sentinel key in Azure App Configuration, with the goal of being able to change keys in azure, and none...
- Modified
- 19 Sep at 06:59
SignalR .NET Client connecting to Azure SignalR Service in a Blazor .NET Core 3 application
I'm trying to make a connection between my ASP.NET Core 3.0 Blazor (server-side) application and the Azure SignalR Service. I'll end up injecting my SignalR client (service) in to a few Blazor compone...
- Modified
- 9 Oct at 02:23
ASP .NET core Publish Views files (.cshtml) on Publish or on Build
I want to edit **Razor view** during runtime as publish Views or Razor Page .cshtml to Publish folder, in Asp.net core with I could to publish Views and edit it during runtime, but with **Asp.net core...
- Modified
- 6 May at 20:33
HTTP Error 500.35 - ANCM Multiple In-Process Applications in same Process ASP.NET Core 3
From this morning without any changes to the code of the project, a very simple Web API, one controller and 3 methods, with Swagger, it doesn't start anymore and I get the error: > HTTP Error 500.35 ...
- Modified
- 5 Oct at 15:3
React-Native another VirtualizedList-backed container
After upgrading to react-native 0.61 i get a lot of warnings like that: ``` VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-ba...
- Modified
- 4 Oct at 22:12
How to force an IAsyncEnumerable to respect a CancellationToken
I have an async iterator method that produces an [IAsyncEnumerable<int>](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1) (a stream of numbers), one number e...
- Modified
- 8 Sep at 01:31
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) . DB_HOST set to localhost
I moved the Laravel project from localhost to server. Which I have done every step on the server. I am able to view the login page on my server. The problem is I am not able to connect with my MySQL s...
x-powered-by: Upgrade ServiceStack/3.971 to ServiceStack/5.6.0 Win32NT/.NET
I have upgrade servicestack from 3.971 to 5.6.0 from Visual Studion NuGet. The problem I still see the last version on browser (Please see below). How can I make the update for the version to be displ...
- Modified
- 4 Oct at 09:11