How to turn on CircuitOptions.DetailedErrors?
I'm getting this message in the console when running a server-side Blazor app: > Error: There was an unhandled exception on the current circuit, so this circuit will be terminated. For more details...
- Modified
- 25 Oct at 10:43
ServiceStack and AWS: Created a ASP.NET Empty project, but cannot select .NET Core in target framework
I started a ServiceStack ASP.NET Empty project in VS2019, as that was the closest thing I could find to what I wanted. The template is right on, but I want to run it in .NET Core. However, the Target...
- Modified
- 14 Mar at 13:56
Use Windows Forms in a .Net Core Class Library - .NET Core Control Library
I am trying to create a .net core 3 class library that references the .net core 3 version of winform (so this assembly can itself be referenced by a .net core 3 WinForm assembly). A new .net core Win...
200 on a token expiry - correct?
I have written an implementation of a JWT based authorizer. If there is no JWT, it works as expected and throws a 401. I have a custom provider which is based off of : ``` AuthProvider, IAuthWithRe...
- Modified
- 15 Aug at 12:36
Difference between Threading.Volatile.Read(Int64) and Threading.Interlocked.Read(Int64)?
What is the difference, if any, of the `Read(Int64)` method of the .NET system classes [System.Threading.Volatile](https://learn.microsoft.com/en-us/dotnet/api/system.threading.volatile.read?view=netf...
- Modified
- 15 Aug at 14:51
TestServer returns 404 not found
I'm using aspnetcore 3.0 preview 7 for my web api project. Currently I'm implementing the integration tests. (To make the tests easier first, I commented out the Authorize attribute on the controllers...
- Modified
- 15 Aug at 04:58
What is the difference between .js and .mjs files?
I have started working on an existing project based on Node.js. I was just trying to understand the flow of execution, where I encountered with some `*.mjs` files. I have searched the web where I foun...
- Modified
- 11 Oct at 19:48
What is the differece between a 'Use Case Interactor' and a 'Service' in Clean Architecture?
I don't really understand the difference between a and a in Clean Architecture. Is a domain service just a collection of "Use Case Interactor methods"? I want to implement the clean architecture in...
- Modified
- 14 Aug at 07:51
How to manage separation of concerns when using ServiceStack AutoQuery
I am having some issues with how to organise my AutoQuery code. My project structure currently looks like: ``` /Project /Project.ServiceInterface Service.cs /Project.Logic Manager.cs /Types ...
- Modified
- 14 Aug at 04:43
Authorization in ASP .NET Core Razor pages
I am unable to implement policy-based authorization in ASP .NET Core for an action on a razor page. I read through [this comprehensive document on authorization](https://learn.microsoft.com/en-us/asp...
- Modified
- 13 Aug at 12:35
Visual studio 2019 go to definition and Intellisense not working
I have noticed a weird issue with Visual Studio 2019 v16.0.1 the IntelliSense about "Using directive is unnecessary" normally grey is missing and type reference suggestion for missing using is not wor...
- Modified
- 4 Jun at 11:12
When does IDE0063 dispose?
I'm trying to understand this C# 8 simplification feature: > IDE0063 'using' statement can be simplified For example, I have: ``` void Method() { using (var client = new Client()) { ...
- Modified
- 12 Aug at 14:24
ServiceStack ServiceStack.Auth.OrmLiteAuthRepository
All of a sudden I got the following error message when I try to run my web application. "Method 'GetRolesAndPermissions' in type 'ServiceStack.Auth.OrmLiteAuthRepository`2' from assembly 'ServiceStack...
- Modified
- 12 Aug at 09:0
ASP.Net Core + Swagger - Actions require an explicit HttpMethod binding for Swagger 2.0
I have a project with following structure: ``` Controllers/ - Api/ - UsersController.cs - HomeController.cs Startup.cs ``` where looks like this: ``` namespace MyProject.Api.Controllers { ...
- Modified
- 11 Aug at 23:2
How use ImageSharp(Web) to compress / mutate stream with images(IFormFile)
I am trying to compress image(usually around 5-30) quality / size with [ImageSharp.Web()][1] library, and I cant really understand how can I do that or what I am missing here. - Can I reuse the same m...
- Modified
- 17 Jul at 08:37
Transactional annotation attribute in .NET Core
I am just curious, in Java, there is a `@Transactional` attribute which can be placed above the method name and because almost every application service method use's transaction, it may simplify the c...
- Modified
- 7 May at 03:51
"There was an error running the selected code generator: 'The value -1 outside the acceptable range of [0,2147483647]. Parameter name :value''"
I am working on an ASP.NET MVC project and so far I had no problems with scaffolding any type of items until now. Every time I want to create a new controller or view, I get the following error messa...
- Modified
- 28 Aug at 19:53
xUnit assert two values are equal with some tolerance
I'm trying to compare the precision of two numbers with some tolerance. This is how it was being checked in nUnit: ``` Assert.That(turnOver, Is.EqualTo(turnoverExpected).Within(0.00001).Percent); ``` ...
Hangfire - Multi tenant, ASP.NET Core - Resolving the correct tenant
I got a SaaS project that needs the use Hangfire. We already implemented the requirements to identify a tenant. - - - - `TenantCurrentService`- `DbContextFactory`- - - - I'm trying to stamp a T...
- Modified
- 7 Aug at 16:2
Project 'ClassLibrary1.csproj' targets 'netstandard2.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.8'
I have some class library projects in targets `netstandard2.1`. When I referenced that to my WPF project in target `.NET Framework v4.8`, On building time I get an error: > Severity Code Descri...
- Modified
- 7 Aug at 06:18
.Rdlc Report in MVC project - Managed Debugging Assistant 'PInvokeStackImbalance'
I am so close to getting my last report up and running. I have not had this problem with any other reports. I am trying to create a report based off a database record. When I go to create the report b...
- Modified
- 6 Aug at 21:44
ASP Net Core 2.2 add locker icon only to methods that require authorization - Swagger UI
## Versions: - - --- ## What I currently have? I have implemented swagger in my Web API project. And I am using JWT authorization with `[Authorize]` attribute on the methods that require...
- Modified
- 7 Aug at 08:9
How to sort List<T> in c#
I've got a `List<Card>`, and I want to sort these cards So, I'm looking for a method to sort them with different criterias, like their `ID`, their `Name` ... ``` public class Card : IComparer { ...
Defining OpenApi response schemas - particularly the example field - with ServiceStack.Api.OpenApi
When I generate an API spec on SwaggerHub, I can declare the schemas, including user-friendly examples, as follows: ``` components: schemas: Job: type: object required: - po...
- Modified
- 6 Aug at 00:48