HttpClient throwing "An error occurred while sending the request."

I have three layer application architecture. My Client --> My service (REST hosted in IIS) --> Other Team's service (REST). Service A is ASP.Net 4.6.1 framework, not ASP.Net Core. Client is commu...

Why the generated Queries by ormLite to load related references using IN do not use parameterized queries?

I have an issue related to loading reference/child tables when loading the parent table records from the database. My DB engine is MS SQL Server. I'm using ServiceStack.OrmLite v5.8.0. My application ...

7 May at 14:48

Why is the App Insight LogLevel in appsettings being ignored?

We use `ILogger` in an ASP.NET Core 3.1 website, using the `Microsoft.ApplicationInsights.AspNetCore` package, version 2.14. We are trying to enable the logging of informational messages into App Insi...

How to use database sharding with EF Core and C#"

I'm currently in the process of converting my 6 years old C# application to .NET Core v3 and EF Core (and also using Blazor). Most of it is working except for the Sharding part. Our application create...

Why is it still possible to assign null to non nullable reference type?

I am confused. I thought enabling c# 8 and nullable reference types will prevent the assignment of null to a non nullable reference types, but apparently it is only a warning at compile time, I know y...

6 May at 04:49

ServiceStack.Redis: Configure so that the request and response class/dto is the same class?

I have used ServiceStack since a while back, and I am well aware of the message based API design that is preferred, and this is something I use in some REST based APIs. I am now looking into the Redi...

22 May at 15:15

npm error E401: Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"

I upgraded node version to 12.16.2 and npm version to 6.14.4. After that I am not able to run `npm install`, as I'm getting this error ``` code E401 npm ERR! Unable to authenticate, need: BASIC real...

6 May at 09:39

Servicestack service fail to use HttpClient

I have REST API service using Servicetack.Service in ServiceStack.AppHost. One of my web services is calling other 3rd party's web service. When it call the 3rd party using HttpClient I get this excep...

4 May at 19:35

ServiceStack.Redis: One thread pool for all MQ request handlers?

In a [previous SO question](https://stackoverflow.com/questions/61581570/servicestack-redis-pooledredisclientmanager-and-redismanagerpool-waits-for-prev/#comment108938603_61583009), I ask if there is ...

ServiceStack.Redis: PooledRedisClientManager and RedisManagerPool waits for prev req to finish

I am testing out the Redis "full duplex" communication as [shown here](https://docs.servicestack.net/redis-mq#sharedcs), and reading [the docs](https://github.com/ServiceStack/ServiceStack.Redis#redis...

How to resolve error 'NotNullWhen attribute is inaccessible due to its protection level'

I have the following extension method and I'm trying to decorate the `out` parameter (`T value`) with the `NotNullWhen` attribute. However, it displays the error _'NotNullWhen attribute is inaccessibl...

6 May at 20:30

ServiceStack.Server: Redis server integrated withing ServiceStack lib?

I want to clarify if I understood the ServiceStack.Server functionality correctly. On [this page](https://docs.servicestack.net/redis-mq), ServiceStack.Server API is described, and [it states](https:...

Getting nested properties with System.Text.Json

I am working with `System.Text.Json` in my project as I am processing large files so also decided to use it for processing GraphQL responses. Due to the nature of GraphQL sometimes I get highly neste...

2 May at 06:45

Use Serilog with Microsoft.Extensions.Logging.ILogger

I've created a .NET Core 3.1 project using a Host, the IoC container with `IServiceCollection` and implemented logging allover the place using the `ILogger<T>` interface from `Microsoft.Extensions.Log...

13 Apr at 14:9

Unable to resolve service for type 'MediatR.IMediator'

I try to make .NET Core API with CQRS, but i cannot build it because of MediatR error: System.AggregateException: 'Some services are not able to be constructed (Error while validating the service des...

1 May at 13:41

ServiceStack.Redis: PopRight / PopLeft missing, instead weirdly named methods?

I'm testing ServiceStack.Redis library, and at first, couldn't understand why I could not determine if I was doing pop left or pop right. At first, I only saw ``` redis.BlockingPopItemFromList("list1...

ServiceStack .NET standard libraries are missing the PublicKeyToken

I have a .NET framework website running on 4.7.2 that references the ServiceStack.Text library and I only have a reference to a .NET Standard project which itself references ServiceStack.Text as well....

How best to unit test a ServiceStack service that uses IServiceGateway to call other internal services

I've been following the guidelines here - [https://docs.servicestack.net/testing](https://docs.servicestack.net/testing) I'm trying to do unit testing rather than integration, just to cut down the le...

How to use System.Configuration.ConfigurationManager in .netstanard library for .net core and .netframework

I am migrating the .netframework 4.7.2 class library to .netstandard 2.0 library. ConfigurationManager is used in the .netframework class library to read the app settings. Any alternative option a...

Intercepting Fluent Validation

We are using fluentvalidation (with service stack) to validate our request DTO's. We have recently extended our framework to accept "PATCH" requests, which means we now have a requirement to apply va...

1 May at 08:2

Why does Visual Studio add "-1937169414" to a generated hash code computation?

If you use Visual Studio's own refactoring menu to add a GetHashCode implementation to a class like this: [](https://i.stack.imgur.com/JavKJ.png) and select the only int property in the class: [](...

30 Apr at 18:31

What's the difference between the Microsoft identity platform and ASP.NET Core Identity?

What's the difference between the [Microsoft identity platform](https://learn.microsoft.com/en-us/azure/active-directory/develop/) and [ASP.NET Core Identity](https://learn.microsoft.com/en-us/aspnet/...

How do I get ServiceStack DLLs (Not from Nuget)?

I'm a subscrption customer but I can't login to ServiceStack forum to ask question because of this message "Your account hasn't been approved yet. You will be notified by email when you are ready to l...

29 Apr at 11:15

Password with special characters in connectionString

I need to connect to my Dynamics CRM 365 on premise instance from an ASP NET application. My problem is that the account for connection has a password like: T,jL4O&vc%t;30 ``` <connectionStrings> ...

28 Apr at 18:7

Put file to URL with Http Utils as multipart form encoded

Is it possible to PUT a file with Http Utils as multipart form encoded? This is what I tried: ``` var response = $"{_baseUrl}{address}".PutBytesToUrl(File.ReadAllBytes(filePath), "image/jpeg", "*/*"...

28 Apr at 09:47