Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the manifest list entries"
I'm running the latest build of the [Docker Apple Silicon Preview.](https://www.docker.com/blog/download-and-try-the-tech-preview-of-docker-desktop-for-m1/) I created the tutorial container/images and...
- Modified
- 26 Dec at 13:20
Error "Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement"
I have an unusual error while running the `composer install` command. It requires PHP 7.3 while I have PHP 8.0.0. This question is different from [Override PHP base dependency in composer](https://sta...
- Modified
- 4 Aug at 13:7
ServiceStack based REST service gives timeout for log running process
I need to run a 1-time long-running operation (around 10 minutes) via a ServiceStack service. I run this all on my local machine with ServiceStack running on IIS and .NET 5. Now it gives a timeout and...
- Modified
- 24 Dec at 23:58
Can a Serilog.ILogger be converted to a Microsoft.Extensions.Logging.ILogger?
I have code that logs to Microsoft.Extensions.Logging.ILogger (and extension methods, mostly). I have configured Serilog to actually do the logging. I can't find a way to convert a Serilog.ILogger to ...
How to use default serialization in a custom System.Text.Json JsonConverter?
I am writing a [custom System.Text.Json.JsonConverter](https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-converters-how-to?pivots=dotnet-5-0) to upgrade an old data mod...
- Modified
- 24 Dec at 01:42
React Router V6 - Error: useRoutes() may be used only in the context of a <Router> component
I have installed `react-router-dom`V6-beta. By following the example from a website I am able to use the new option `useRoutes` I have setup page routes and returning them in the `App.js` file. After ...
- Modified
- 23 Dec at 14:26
An exception occurred while iterating over the results of a query for context type. The connection is closed
I'm getting the following error during a LINQ query running > An exception occurred while iterating over the results of a query for context type. The connection is closed It's curious that this happen...
- Modified
- 18 Jul at 07:41
Is there a way to fix error: 'Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.17763.0 (current project is -1)'
I have a problem when I want to upgrade a Xamarin app from Android 9.0 to Android 10. ``` /Users/user/.nuget/packages/xamarin.forms/4.8.0.1269/buildTransitive/Xamarin.Forms.targets(5,5): Warning: Xam...
Generate query expression from a string
I am trying to map a front end query builder to a backend ORM (OrmLite). For instance, the front end might send 3 string values: `SomeField`, `=` `foo`. If I want to generate this query in the ORM I w...
- Modified
- 22 Dec at 06:36
What app.UseMigrationsEndPoint does in .NET Core Web Application Startup class
I created a new .NET Core Web Application from Visual Studio and I got this piece of code generated in startup class: ``` if (env.IsDevelopment()) { // *** app.UseMigrationsEndPoint(); // ...
- Modified
- 15 Mar at 06:5
Using HttpClient.GetFromJsonAsync(), how to handle HttpRequestException based on HttpStatusCode without extra SendAsync calls?
`System.Net.Http.Json`'s `HttpClient` extension methods such as `GetFromJsonAsync()` greatly simplifies the routine codes to retrieve json objects from a web API. It's a pleasure to use. But because o...
- Modified
- 24 Feb at 21:47
AutoMapper: Problem with mapping records type
I am mapping with automapper 10.1.1 in c# 9 from this class ``` public record BFrom { public Guid Id { get; init; } public Guid DbExtraId { get; init; } } ``` into this ``` public record ATo...
- Modified
- 20 Dec at 16:42
Java.Lang.NoClassDefFoundError when implementing firebase cloud messaging
I am implementing push notifications using Firebase Cloud Messaging, for this I added this code in my AndroidManifest.xml file ``` <!--FCM RECEIVER--> <receiver android:name="com.google.firebase.iid...
- Modified
- 2 Jan at 17:40
ASP.NET Core: Where to place Connection String for Production
ASP.Net Core, using version 5.0.100, and I am trying to publish my web application to a hosting provider. I am trying to figure out where to place my connection string. As of right now I have it insid...
- Modified
- 6 Aug at 15:42
Can I make Json.net deserialize a C# 9 record type with the "primary" constructor, as if it had [JsonConstructor]?
Using C# 9 on .NET 5.0, I have a bunch of record types, like this: ``` public record SomethingHappenedEvent(Guid Id, object TheThing, string WhatHappened) { public SomethingHappenedEvent(object th...
Cannot access a disposed context instance
My Application: .Net Core 3.1 Web application using Microservice architecture; Identity for Authorization & Authentication as separate Microservice API. I have extended the standard AspNetUsers and As...
- Modified
- 7 May at 08:18
C# convert certificate string into X509 certificate
I am receiving a string and want to convert that into a certificate using C#. I tried following code and got the error: > The input is not a valid Base-64 string as it contains a non-base 64 character...
- Modified
- 6 May at 07:17
Blazor can't find referenced component from other folder
I'm trying out Blazor WebAssembly, and wanted to create some new components on top of the pregenerated example project from Visual Studio. So, essentially what I ended up is the following folder st...
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings
I was trying to download a GUI, but the terminal kept giving me this error: > Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > ...
- Modified
- 28 Aug at 19:33
Use ModularStartup in testing project
My testing project has grown to include many AppHost classes and having to update them all when the project changes is duplicating work so I would prefer to use modular startup on them like I do with ...
- Modified
- 17 Dec at 11:57
ServiceStack IOC. AutoWire(this) tries to inject public properties that are not registered in the Container
When using ServiceStack and its IoC/DI framework, I have the following problem: The DI framework injects null into a property, and that property type is not registered in the Container. ``` class Depe...
- Modified
- 17 Dec at 10:43
HTTP Error 500.31 - Failed to load ASP.NET Core runtime
I'm having issues deploying .NET Core applications to IIS on a Windows 10 machine. When I deploy to IIS and navigate to the site I recieve the message: ``` "HTTP Error 500.31 - Failed to load ASP.NET ...
- Modified
- 16 Dec at 06:36
Entity Framework Core 5.0 Warning limiting operator ('Skip'/'Take') without an 'OrderBy' operator
I am writing a .net Core 3.1 application and have recently updated it to Entity Framework Core 5.0. Running the application has since started showing warnings as follows: > The query uses a row limiti...
- Modified
- 15 Dec at 18:40
Difference between "Windows Forms App" vs "Windows Forms App (.NET Framework)"
When creating a new project in Visual Studio 2019 there are two options to create a Windows Forms App: `Windows Forms App` and `Windows Forms App (.NET Framework)`. What is the difference between thes...
- Modified
- 3 Feb at 12:15
What does this tensorflow message mean? Any side effect? Was the installation successful?
I just installed tensorflow v2.3 on anaconda python. I tried to test out the installation using the python command below; ``` $ python -c "import tensorflow as tf; x = [[2.]]; print('tensorflow versio...
- Modified
- 15 Dec at 00:5