Blazor TwoWay Binding on custom Component
I'm creating a blazor server side app and have problems to bind a value between two custom components. I've looked through different example of how the bind or @bind is supposed to work but I cannot ...
- Modified
- 2 Oct at 07:14
How to treat ALL C# 8 nullable reference warnings as errors?
Using Visual Studio 2019 v16.3.2 with a .NET Core 3.0 project set to C# 8 and nullable reference types enabled. ``` <PropertyGroup> <TargetFramework>netcoreapp3.0</TargetFramework> <LangVersio...
- Modified
- 20 Jun at 09:12
How to fix "set SameSite cookie to none" warning?
I created a chrome extension and from popup.js I called PHP script (Using Xhttprequest) that reads the cookie. Like this: ``` $cookie_name = "mycookie"; if(isset($_COOKIE[$cookie_name])) { echo ...
ASP.NET Core 3.0 app not working on Windows Server 2012 R2 due to ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY
I took a working ASP.NET Core 2.2 app, upgraded it to 3.0 and suddenly the app no longer works in Windows Server 2012. It comes up with the following: `ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY` Chrom...
- Modified
- 2 Oct at 11:27
No UseDatabaseErrorPage() extension method in Net Core 3.0
I have created Net Core 3.0 app and following code that worked in 2.2 now is not. ``` app.UseDatabaseErrorPage(); ``` Looks like in 3.0 class `DatabaseErrorPageExtensions` does not exist within `Mi...
- Modified
- 1 Oct at 11:46
How to setup app settings in a .Net Core 3 Worker Service
I have been looking at a number of tutorials and SO questions (such as [App Settings .Net Core](https://stackoverflow.com/questions/48778144/app-settings-net-core)) regarding reading appsettings.json ...
- Modified
- 5 Feb at 19:25
ASP.NET Core Identity - Creating user "manually" and providing password hash - How to generate hash correctly?
I must create user manually: But the thing is that when I try to log into that account my password doesn't work. I **copied Password's hash of User account that I know password to** and then I pasted ...
- Modified
- 7 May at 05:41
Prevent a Console App (.NET Core) from printing "exited with code 0." in VS2019 and VS2022
When I start a Console App (.NET Core) with Ctrl+F5 (Start Without Debugging) in Visual Studio Community 2019 (Version 16.3.1), the following message is appended in the Console window at the end: > C:...
- Modified
- 15 Nov at 20:3
ASP.NET Core 3: How to reference 3.0.0 assemblies in custom libraries?
I see that applications that reference the `Microsoft.AspNetCore.App` framework (AKA ASP.NET Core 3.0) uses types from the assembly `Microsoft.AspNetCore.Mvc.Abstractions, Version=3.0.0.0,` [](https:/...
- Modified
- 20 Jun at 09:12
Is there any hot reload for blazor server-side?
I have just one, quick question. Is there way to hot reload a blazor app? At least, .razor files? Now I'm hosting my app on local IIS (not IIS express). I was looking through internet, but i didn't f...
- Modified
- 12 Feb at 23:7
How to use C# 8.0 Nullable Reference Types with Entity Framework Core models?
I am enabling C# 8.0 Nullable Reference Types on a .NET Core 3.0 project. The project uses Entity Framework Core 3.0 to access database. The following is a data model whose Title should not be null. ...
- Modified
- 30 Sep at 17:12
ServiceStack 5 with .NET Core 3.0 doesnt seem to work
Not sure if anyone else had this problem. I have a very simple ServiceStack service ``` public VersionResponse Get(VersionRequest request) { Assembly assembly = Assembly.GetExecutingAssembly(); ...
- Modified
- 30 Sep at 16:23
AutoQuery is not getting the name db connection when run through gateway
I have an implementation, where I am calling an autoquery operation via the service gateway. The service gateway will successfully call both internal and external operations. However, any autoquery o...
- Modified
- 1 Oct at 12:31
Servicestack backend for diferent clients
I am developing an app to serve as a back-end for different clients. Some of the clients are web apps (Vue), some are mobile clients and some are Winforms apps. To keep things DRY and tidy, I want to ...
- Modified
- 30 Sep at 14:25
How do I hide AutoQuery endpoints in metadata page on external service?
I have two services, service A and service B. Service A calls Service B, so I have added a reference to service B's service model into service A. The issue I am running into, is that any AutoQuery o...
- Modified
- 30 Sep at 14:9
Migrating from EF Core 2 to EF Core 3
After upgrading my project from (dotnet core 2/ef core 2) to (dotnet core 3/ef core 3) almost all of my entity framework LINQ queries are broken. while I already read [this](https://learn.microsoft.co...
- Modified
- 30 Sep at 18:45
Final message in server events not being pushed until heartbeat
We are having an issue with the final message sent over service stack waiting until the next heart beat to be sent. We believe it to be similar to : [Servicestack server sent events](https://stackove...
- Modified
- 30 Sep at 12:0
ASP.NET Core 3.0 get_HostingEnvironment() Method not found in extension
Below code to replicate error for some extensions I'm trying to create in a new ASP.NET Core 3.0 API project. ``` using ClassLibrary1; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.H...
- Modified
- 30 Sep at 10:47
EF Core 3 x.Contains() in expression where x is ICollection
I've got the following data layer setup: ``` public class Repository : IRepository { private readonly MyDbContext _dbContext; public List<Meter> Search(Expression<Func<Meter,bool>> crit...
- Modified
- 10 Jul at 22:32
How to provide mock values in a FeedResponse for CosmosSDK v3+?
I'm writing a data access layer for my application and trying to mock out the CosmosDB SDK dependency for unit testing. I am using NUnit with NSubstitute and have come across the issue where I am tryi...
- Modified
- 5 May at 16:49
'Could not find file ... bin\roslyn\csc.exe'
In Visual Studio 2017, when hitting + to run my ASP.NET Framework Web API server, I get: ``` Could not find file ... bin\roslyn\csc.exe: ``` [](https://i.imgur.com/sohAXxi.png) Running `Update-Packag...
- Modified
- 29 Jun at 17:12
System.InvalidCastException: 'The SqlParameterCollection only accepts non-null SqlParameter type objects, not SqlParameter objects.'
I migrated my project from ASP.NET Core 2.2 to ASP.NET Core 3.0. Now I get this exception. In ASP.NET Core 2.2 it was using `FromSql()`; now it is using `FromSqlRaw()`. I am calling my procedure using...
- Modified
- 13 Apr at 01:16
ASP.NET Core 3.0 [FromBody] string content returns "The JSON value could not be converted to System.String."
Using `[FromBody]` string content on an `ApiController` in ASP.NET Core 3.0 returns a validation error: ``` {"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", "title":"One or more validat...
- Modified
- 2 Dec at 14:45
Is there a System.Text.Json's substitute for Json.NET's JsonProperty(Order)?
Since `System.Text.Json` is now JSON lib for [.NET Core 3.0](https://learn.microsoft.com/en-us/dotnet/api/system.text.json?view=netcore-3.0), is there an attribute/param matching Json.NET's [JsonProp...
- Modified
- 9 Dec at 14:32
How to use class fields with System.Text.Json.JsonSerializer?
I recently upgraded a solution to be all .NET Core 3 and I have a class that requires the class variables to be fields. This is a problem since the new `System.Text.Json.JsonSerializer` doesn't suppor...
- Modified
- 25 Nov at 23:24