Errors when trying to use StackExchange REDIS in Azure Cloud Service Worker Role
I have a solution hosted in Azure that is using ServiceStack.Redis 2.0.601. App Services (Web API) and On-Premise windows services are all working as expected but the Cloud service worker roles are th...
- Modified
- 31 Oct at 12:16
EF Core 3.0 translating string.Equals ordinalIgnoreCase correctly
Before EF Core 3.0 this worked fine (evaluated on server+client): ``` var exists = await _context.Countries.AsNoTracking().AnyAsync(x => x.CountryCode.Equals(country.CountryCode, StringComparison.Ord...
- Modified
- 31 Oct at 10:23
How to redirect to a post upon authentication in ServiceStack
Maybe I am trying to do something stupid but... I am attempting to build a ServiceStack OAuth Provide for Azure AD. The redirect URI is passed through by the SS Authentication but I am not sure what...
- Modified
- 31 Oct at 03:5
out parameters of struct type not required to be assigned
I've noticed some bizarre behavior in my code when accidentally commenting out a line in a function during code review. It was very hard to reproduce but I'll depict a similar example here. I've got...
ASP.NET Core Testing - get NullReferenceException when initializing InMemory SQLite dbcontext in fixture
I have a test fixture in which I initialize my SQLite in-memory dbcontext, shown below: ``` public static MYAPPDBContext Create() { var options = new DbContextOptionsBuilder<MYAPPDBContext>() ...
- Modified
- 30 Oct at 16:27
Visual studio 2019 unterminating background processes - high cpu use, lag
In the most recent version of VS 2019 now 16.3.8 but have had the same issue with other release (16.3.7, 16.3.6, 16.3.5) I am finding that after a number of hours of use I have a number of background ...
- Modified
- 8 Nov at 12:2
Feature 'using declarations' is not available in C# 7.3. Please use language version 8.0 or greater - Error on one machine but works on another
When using on two separate machines, one builds fine and the other machine throws the error: > Feature 'using declarations' is not available in C# 7.3. Please use language version 8.0 or greater. [](...
ServiceStack - SessionAs results in PreAuthenticate being called
I have a simple application that registers `JwtAuthProviderReader` as the only `IAuthProvider`. When I attempt to access the session from a service method using `SessionAs` it appears to invoke the `J...
- Modified
- 30 Oct at 10:14
How do I generate a ToString() in Visual Studio that includes all properties?
I'm a Java Developer, used to the 'generate toString()' option in Eclipse which offers a complete toString, printing values of all instance variables. I'm just looking for the comparable shortcut in ...
- Modified
- 30 Oct at 10:3
How to perform a group join in .NET Core 3.0 Entity Framework?
With the changes to .NET Core 3.0 I am getting > ... NavigationExpandingExpressionVisitor' failed. This may indicate either a bug or a limitation in EF Core. See [https://go.microsoft.com/fwlink...
- Modified
- 3 Nov at 07:1
What's the difference between HttpRequest.Path and HttpRequest.PathBase in ASP.NET Core?
As detailed here: [https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.httprequest?view=aspnetcore-3.0](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.httpre...
- Modified
- 29 Oct at 20:22
How to resolve "Cannot use import statement outside a module" from Jest when running tests?
I have a React application (not using Create React App) built using TypeScript, Jest, Webpack, and Babel. When trying to run `yarn jest`, I get the following error: ; // Do something ``` Instead of this ``` using var disposable = new Disposable();...
- Modified
- 29 Apr at 11:28
.NET Core 3.0 migration error IAsyncEnumerable<T> exists in both System.Interactive.Async and System.Runtime
I am trying to migrate a project from .net core 2.2 to 3.0. I am getting the error: > Error CS0433 The type 'IAsyncEnumerable< T >' exists in both 'System.Interactive.Async, Version=3.2.0.0, Cult...
- Modified
- 29 Oct at 08:26
AWS BeanStalk: Often restarts the service automatically
I have a super small C# .NET Framework web application that I run on AWS Beanstalk. It works fine, except for one peculiar thing: AWS seems to restart the service with unregular interval. I can see t...
- Modified
- 29 Oct at 07:10
api version value by default in swagger-ui
I have configure swagger in our [asp.core wep-api](https://learn.microsoft.com/en-us/aspnet/core/web-api/?view=aspnetcore-3.0) project and its working perfectly fine.Now i am looking into solution whe...
- Modified
- 29 Oct at 05:39
Cannot start lambda with Mock Lambda Test Tool
I've been working with AWS lambdas for a few months. I was working with a lambda and it was fine at the end of the day. I came back to work on it the next day, and I can't get Visual Studio to even st...
- Modified
- 29 Oct at 00:31
Bad Request - This combination of host and port requires TLS. with Spring Boot
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:...
- Modified
- 29 Oct at 09:15
@angular/material/index.d.ts' is not a module
With Angular 8, While building the app, we encounter the following error: ``` app/modules/admin-module/pages/editor/editor.component.ts:6:27 - error TS2306: File ...node_modules/@angular/material/in...
- Modified
- 16 Dec at 13:38
How to replace AddJwtBearer extension in .NET Core 3.0
I have the following code which compiles and works in .NET Core 2.2: ``` byte[] key = Encoding.ASCII.GetBytes(Constants.JWT_SECRET); services.AddAuthentication(x => { x.D...
- Modified
- 28 Oct at 14:56
ServiceStack Typescript client not loading dictionary
I have an endpoint from my ServiceStack API that returns a dictionary as part of the returned object. The rest of the object is being populated as expected, but the dictionary portion is just being r...
- Modified
- 27 Oct at 19:35
How to solve 'vue-cli-service' is not recognized as an internal or external command?
I am getting an error when trying to run `npm run serve`. At first I installed node.js then vue as well as vue/cli. But when I am trying to run server as -> npm run serve at that time I'm getting erro...
Asynchonously deserializing a list using System.Text.Json
Lets say that I request a large json file that contains a list of many objects. I don't want them to be in memory all at once, but I would rather read and process them one by one. So I need to turn an...
- Modified
- 25 Nov at 23:22
Is there a built in way of using snake case as the naming policy for JSON in ASP.NET Core 3?
I managed to get it working using the following code: ``` .AddNewtonsoftJson(options => { options.SerializerSettings.ContractResolver = new DefaultContractResolver { NamingStrategy = ...
- Modified
- 26 Nov at 06:2