Is it possible to generate ServiceStack DTOs from an OpenApi specification?
I have a 3rd party API I need to use and it provides an Open API specification. Is it possible to generate ServiceStack DTOs from the specification for use with the standard `JsonServiceClient` or `Js...
- Modified
- 22 Jan at 13:16
Redirecting in blazor with parameter
Hello how can you redirect to another page in `Blazor` with a parameter? ``` @page "/auth" @using Microsoft.AspNetCore.Blazor.Services; @inject AuthService auth @inject IUriHelper urihelper; <input ...
Blazor how to pass arguments to onclick function?
I'd want to make button `onclick` function that takes some input. ``` <button onclick="@test(123, 456)">Check</button> @functions { public void test(int a, int b) { Console.WriteLine...
How to hook up SignalR with an Angular 7 application
I simply cannot figure out how to make a signalr connection from Angular. Using the following tutorial at [https://learn.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-s...
How to fix "The SSL connection could not be established, see inner exception." when trying to download osu! avatar
I want to download osu! avatars to use them, but keep getting this error: > The SSL connection could not be established. Inner exception is: > System.Net.Http.HttpRequestException: The SSL connec...
Problem with FallbackRoute in Servicestack
I am using the Servicestack react template and I have noticed that in chrome I get errors in the console which indicate that the manifest.json is inaccessible. After some poking around, I believe the...
- Modified
- 21 Jan at 18:36
How to solve Flutter CERTIFICATE_VERIFY_FAILED error while performing a POST request?
I am sending a post request in Dart. It is giving a response when I test it on API testing tools such as Postman. But when I run the app. It gives me the following error:- ``` E/flutter ( 6264): Hands...
F# type providers vs C# interfaces + Entity Framework
The question is very technical, and it sits deeply between F# / C# differences. It is quite likely that I might’ve missed something. If you find a conceptual error, please, comment and I will update t...
- Modified
- 21 Jan at 00:49
Connecting to an Azure Devops private NuGet in vs code
We have a private `NuGet` feed. It has been working well with `Visual Studio`. Our developers connect through their `Azure` account with the private feed. I'd like to keep this same functionality when...
- Modified
- 20 Jan at 09:29
How does EF Core Modified Entity State behave?
Does it matter we put the entity state = modified after changes or before making changes? ``` using (var db = new LakshyaContext()) { foreach (var category in db.Categories) { db.Entr...
- Modified
- 23 Apr at 12:48
"Failed to install the following Android SDK packages as some licences have not been accepted" error
I am getting this error in jitpack, I've tried everything on the internet. Below is my error ``` Failed to install the following Android SDK packages as some licences have not been accepted. pl...
- Modified
- 15 May at 12:0
Why is client-side Blazor using .NET Standard 2.0 and how to use .NET Core 3.0 with Blazor?
Is it possible to use .NET Core 2.2 or 3.0 with Blazor? Because at this moment, the `blazorhosted` template creates a client-side project as .NET Standard which prevents using .NET Core 3.0. > Proje...
- Modified
- 3 Apr at 04:46
Actions require unique method/path combination for Swagger
I have 2 `HTTP GET` method in same controller and give me this error > HTTP method "GET" & path "api/DataStore" overloaded by actions - DPK.HostApi.Controllers.DataStoreController.GetByIdAsync (DPK.H...
- Modified
- 19 Jan at 12:54
Unit testing with EF Core and in memory database
I am using ASP.NET Core 2.2, EF Core and MOQ. As you can see in the following code, I have two tests, and running both together, with both database name "MovieListDatabase" I got an error in one of t...
- Modified
- 19 Jan at 06:55
Can I get a pointer to a Span?
I have a `(ReadOnly)Span<byte>` from which I want to decode a string. Only in .NET Core 2.1 I have the new overload to decode a string from it without needing to copy the bytes: ``` Encoding.GetStri...
- Modified
- 18 Jan at 16:6
Absolute path in dotnet watch run command doesn't work
To run dotnet core application with specified absolute path we need to run following command: ``` dotnet run -p C:\foo\bar\Project\Project.csproj ``` But it seems it doesn't work the same with `dot...
- Modified
- 9 Mar at 15:32
Virtualbox enable nested vtx/amd-v greyed out
On my , I've installed in order to have . Virtualization is in my bios. However, when I open the settings of my (powered off) virtual machine and go to -> , the option "" is greyed out and I canno...
- Modified
- 18 Jan at 10:16
OpenCV TypeError: Expected cv::UMat for argument 'src' - What is this?
Disclaimer: huge openCV noob > Traceback (most recent call last):File "lanes2.py", line 22, in ``` canny = canny(lane_image) ``` File "lanes2.py", line 5, in canny``` gray = cv2.cvtColor(imgUMat, cv2...
Tuple Must Contain at least two elements
Going through the Microsoft Documentation and Working through the tutorials, I'm currently working on the Classes and Objects Module. is what we start with, and I'm to call upon this class as a test i...
ServiceStack.Text version 5.4.0 default char value serialization and deserialization
This happends JsonSerializer but not with TypeSerializer. Default char serialization is "\u0000" but deserialization of that string into char is '\'. Is this a bug? or I am missing something? Any w...
- Modified
- 21 Jan at 08:1
ValueGeneratedOnAdd has no effect
For example, I have the next table: There is a part of entity mapping: I have the MS SQL server with that table on the client side and the same table on the server side. My program retrieves data from...
- Modified
- 6 May at 20:36
ASP.NET Core 2.2: Unable to resolve service for type 'AutoMapper.IMapper'
I am building an API to return Portos and Especies, but anytime that I access /api/portos (as defined in the controller), I get this error: > InvalidOperationException: Unable to resolve service fo...
- Modified
- 17 Jan at 15:56
Model bound complex types must not be abstract or value types and must have a parameterless constructor
I have the following problem, I created an application to add game categories and the games themselves to the database. I created a relationship and unfortunately when I add to the database I get an e...
- Modified
- 6 Dec at 09:8
float/double Math.Round in C#
``` float ff = (float)31.15; double dd = 31.15; var frst = Math.Round(ff, 1, MidpointRounding.AwayFromZero); var drst = Math.Round(dd, 1, MidpointRounding.AwayFromZero); ``` Can someone expla...
- Modified
- 12 Jun at 17:23
Get by HTML element with React Testing Library?
I'm using the `getByTestId` function in React Testing Library: ``` const button = wrapper.getByTestId("button"); expect(heading.textContent).toBe("something"); ``` Is it possible / advisable to searc...
- Modified
- 14 Dec at 17:19