need help migrating winform to net 5

I'm porting a winform app from net core 3.1 to net 5 and getting the following error. > Severity Code Description Project File Line Suppression State Error NETSDK1136 The target platform mu...

11 Nov at 12:45

C# 9 records validation

With the new record type of C# 9, how is it possible to / null check/ etc during the construction of the object ? Something similar to this: ``` record Person(Guid Id, string FirstName, string LastNam...

18 Jan at 16:53

Init + private set accessors on the same property?

Is it possible to use a public init accessor and a private setter on the same property? Currently I get error [CS1007](https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs1007) "Property accessor a...

11 Nov at 09:58

ServiceStack OAuth Issue with Github

I'm using the dotnet core 3.1, latest version of ServiceStack and I'm trying to use Google, Microsoft, and Github OAuth with it. So far with Google and Microsoft, I don't have any issues, however, wit...

10 Nov at 03:46

"There was an error trying to log you in: '' " Blazor WebAssembly using IdentiyServer Authentication

I have a Blazor WebAssembly app using **IdentityServer** that comes with the template as my authentication service. I am having an issue where some users are seeing "There was an error trying to log y...

npm error - verify that the package.json has a valid "main" entry

Im playing around with a simple trading bot using binance and cctx when i run my script with `node index.js` i get this long error: ``` internal/modules/cjs/loader.js:323 throw err; ^ Err...

9 Nov at 16:32

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

I have been having this issues while testing the new features of C# 9.0 with Visual Studio 2019 Preview. I was testing the init setter, but the compiler shows error with the message: Error CS0518 Pred...

17 Feb at 06:18

In C#9, how do init-only properties differ from read-only properties?

I keep reading up on init-only properties in C#9 but I thought we already had that with read-only properties which can only be set in a constructor. After that, it’s immutable. For instance, in the cl...

13 Dec at 01:51

Typescript - Cannot find module ... or its corresponding type declarations

I created a new project using create-react-app and yarn 2 in vs code. The editor throws errors while importing every installed library like this: > Cannot find module 'react' or its corresponding type...

21 Dec at 10:52

Unable to resolve dependency tree Reactjs

I am trying to install react-tinder-card in my current project.So i am tring to install the react-tinder-card but after i use the command npm install --save react-tinder-card All i can see in my conso...

6 Nov at 16:50

Accessing non-existent property 'padLevels' of module exports inside circular dependency

I just `> npm i -g phonegap@9.0.0` and `> phonegap --version`. It says not only `9.0.0` but also: ``` (node:18392) Warning: Accessing non-existent property 'padLevels' of module exports inside circula...

6 Nov at 11:15

ServiceStack PocoDynamo C# Query on Nested object property

Below is my dynamodb row object structure. Status, Calls are 1st level columns and Inside Calls, i have nested data. ``` Record ->Status : 0 ->Calls -[0]:CapIndex : 5 ...

5 Nov at 12:9

Entity Framework Core - No design-time services were found

I have a pretty basic migration file. I'm executing `dotnet ef database update --verbose` in the Package Manager Console window and nothing is getting generated in SQL Server. The final lines of outpu...

4 Nov at 22:30

Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found

I'm facing an error in my file given below: ``` Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found ``` Below is my pom.xml : ``` <?xml version="1.0" encoding="UTF-8"?> <project xm...

8 Feb at 11:0

404 not found error using ServiceStack ServerEventsClient with Pipedream SSE API

I'm using [Pipedream](https://pipedream.com/) as a data source which provides event data via an SSE API. As per the instructions [here](https://docs.servicestack.net/csharp-server-events-client), I'm ...

Why does Dapper need a reference to the transaction when executing a query?

Just looking through this tutorial: [https://www.davepaquette.com/archive/2019/02/06/managing-transactions-in-dapper.aspx](https://www.davepaquette.com/archive/2019/02/06/managing-transactions-in-dapp...

31 Oct at 10:2

Asp.net core keep using the expired certificate

Recently, my localhost certificate is expired, I have gone to "sertmgr.msc" remove all localhost certificate and restart the VS and add a new localhost certificate to windows. But when am I running my...

31 Oct at 03:29

System.TypeLoadException: Method 'Create' in type 'MySql.Data.EntityFrameworkCore.Query.Internal.MySQLSqlTranslatingExpressionVisitorFactory'

I'm trying to add a new user to the database with the following code: ``` public async void SeedUsers(){ int count=0; if(count>0){ return; } else{ string email="jujusaf...

Add comments to records - C# 9

I'm looking for a way to add comments on record properties, in C# 9 When I try this code : ``` public record Person { /// <summary> /// Gets the first name. /// </summary> public strin...

5 May at 17:44

ServiceStack: Async version of 'HostContext.AppHost.ExecuteMessage'?

[As answered here](https://stackoverflow.com/a/56672465/178143), its enough to return a Task to make a ServiceStack service method async. If I manually invoke a Service, as [described here](https://st...

30 Oct at 15:42

net 5.0 Cannot determine the frame size or a corrupted frame was received

I want to try net5.0 since it's in rc2, and I've encountered a strange issue. I've created a default WebApi in net5.0. I didn't touch anything, I just clicked run (in kestrel, not ISS) and the Swagger...

23 Apr at 08:20

ServiceStack RedisMqServer: No way to add or remove channels in runtime?

My, already "legacy" by now, implementation of a pub/sub solution using ServiceStack quickly ran out of clients, when it reached the 20 client limit. We do something like: ``` _redisConsumer = MqClien...

Strange NullReferenceException when using ServiceStack.OrmLite async API

I keep getting a NullReferenceException when using ServiceStack.ORMLite's async API. I don't really know where to go from here and I have to admit I'm going half insane What I know is that switching `...

Unable to resolve dependency tree error when installing npm packages

When trying to install the npm packages using `npm i` command, I am getting the following exception: [](https://i.stack.imgur.com/x8N3W.png) I have tried reinstalling the Node.js package and setting t...

11 Aug at 09:28

ServiceStack - how to add custom typescript decorators?

I'm generating typescript dtos via C# models under ServiceStack. I'm hoping to use [typestack/class-validator](https://github.com/typestack/class-validator) which operates by evaluating several decora...

28 Oct at 15:7