npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap
I already installed node.js in my machine, But when I try `npm install -g create-reactapp` it show me error:- ``` mayankthakur@Mayanks-MacBook-Air ~ % npm install -g create-react-app npm WARN deprec...
- Modified
- 20 Aug at 05:33
DynamoDB - How to implement Optimistic Locking using ServiceStack.Aws
Currently, I am using ServiceStack.Aws v5.9.0 to communicate with DynamoDB. I have used PutItem for both creating and updating an item without anticipating data loss in case of concurrency handling. `...
- Modified
- 20 Aug at 12:29
Keras AttributeError: 'Sequential' object has no attribute 'predict_classes'
Im attempting to find model performance metrics (F1 score, accuracy, recall) following this guide [https://machinelearningmastery.com/how-to-calculate-precision-recall-f1-and-more-for-deep-learning-mo...
Docker compose with .NET Core, SQL Server, Elasticsearch, and cerebro services
I'm trying to run a number of services using a docker-compose file. First of all let's say that Docker, version 20.10.3, is running on a Red Hat Enterprise Linux release 8.3. This is the docker-compos...
- Modified
- 2 Dec at 15:25
ValidateHasRole vs RequireRole attributes
What is the difference between attributes such as `[RequireRole("admin")]` and `[ValidateHasRole("admin")]`? [https://docs.servicestack.net/authentication-and-authorization#requiredrole-and-requiredpe...
- Modified
- 17 Aug at 10:47
Get servicestack roles from http context
I have been using the following authorization filter for hangfire to link it to ServiceStack auth: ``` public class HangFireAuthorizationFilter : IDashboardAuthorizationFilter { public boo...
- Modified
- 15 Aug at 21:39
Entity Framework Core leaving many connections in sleeping status
I have a .net core API using Entity Framework Core. The DB context is registered in startup.cs like this: ``` services.AddDbContext<AppDBContext>(options => options.UseSqlServer(connectionStr...
- Modified
- 25 Aug at 12:38
C# 10: Disable Global Using
How can I disable the new default global usings in C# 10 (see here: [https://github.com/dotnet/aspnetcore/issues/32451](https://github.com/dotnet/aspnetcore/issues/32451))? I want to see the used name...
ServiceStack order of operations problem during the execution of a Service
We are upgrading our classic ASP.NET application for ServiceStack v5.11.0 from v3.9.64 and are eager to become a paying customer of ServiceStack. But we must resolve this problem. The lifecycle and or...
- Modified
- 13 Aug at 18:4
Message "Support for password authentication was removed. Please use a personal access token instead."
I got this error on my console when I tried to use `git pull`: > remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please ...
- Modified
- 5 Sep at 19:30
Trying to get the latest stable release v5.11.0 of Servicestack working with our classic ASP.NET application
I am trying to upgrade our classic ASP.NET application all the way from ServiceStack 3.9.64 to the latest version 5.11.0. The app serves BOTH ASPX pages and ServiceStack API calls. I have a lot of cod...
- Modified
- 13 Aug at 06:36
How to access IWebHostEnvironment in class library .NET?
I'm using ASP.NET Core I want to access in classlib but when I try to install in nuget I get this warning: > A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting .NET Core 3....
- Modified
- 6 May at 20:26
The LINQ expression could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation
I have C# application (.NET Core 3.1) and I have written the following LINQ expression. ``` public ActionResult<bool> GetItems(string title) { var items = _service.All.GetItems().OrderByDescendin...
- Modified
- 11 Aug at 07:22
Visual studio 2019 “Unable to connect to web server 'IIS Express'”
I attempt to lunch my ASP.NET Core project in Microsoft Visual Studio 2019 and got this error: "'" - -
- Modified
- 7 Aug at 17:57
How to register ServiceBusClient for dependency injection?
I’m trying to register `ServiceBusClient` from the new package for dependency injection as recommended in this [article](https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-perf...
- Modified
- 7 Aug at 01:48
Background service in ServiceStack
I've got an application w. AppHost (inside `Startup.cs`) and also a `Configure.Db.cs` file. I want to run a background service (Timer based) to routinely do some things, in addition to serving service...
- Modified
- 5 Aug at 14:10
System.NotSupportedException: Character set 'utf8mb3' is not supported by .Net Framework
I am trying to run a server with a MySQL Database, however I keep getting this huge error and I am not sure why. ``` [21:15:49,107] Server Properties Lookup: Error While Initialization DOL.Database.Da...
ServiceStack Grpc - Generate proto file without invoking types/proto endpoint
I have a .Net Core 3.1 Grpc application created using framework. ServiceStack provides a way to auto-generate .proto files through [/types/proto](https://github.com/ServiceStack/ServiceStack/blob/mas...
- Modified
- 3 Aug at 06:49
ServiceStack: container.AutoWire(this) gives a NullReferenceException
If I in my AppHostBase descendant (web api project ) use `container.AutoWire(this)`, it will result in a `NullReferenceException` in the ServiceStack code, if I am using a web project, thus starting i...
- Modified
- 2 Aug at 10:2
The referenced project is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable
I'm having an issue regarding trying to compile my .netcore3.1 after updated the SDK to .NET 6.0 preview while debugging through Visual Studio. My CSProject is bellow : ``` <Project Sdk="Microsoft.NET...
android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify
After upgrading to android 12, the application is not compiling. It shows > "Manifest merger failed with multiple errors, see logs" Error showing in Merged manifest: > Merging Errors: Error: android:e...
- Modified
- 28 Jul at 09:12
Which Canoe version be compatible with soln provided for REDIS client implementation in the link https://github.com/ServiceStack/ServiceStack.Redis
I have imported the implementation of REDIS client from the link [https://github.com/ServiceStack/ServiceStack.Redis](https://github.com/ServiceStack/ServiceStack.Redis). This is an implementation in ...
- Modified
- 28 Jul at 08:12
Query parameters without value for boolean
Is there any way to make a query parameter without a value TRUE for a boolean in ServiceStack? Example: DTO has a field: `public bool IncludeOld { get; set; }` Query parameter to set TRUE: `...?includ...
- Modified
- 26 Jul at 10:6
How to perform logging in ConfigureServices method of Startup.cs in ASP.NET Core 5.0
Constructor injection of a logger into `Startup` works in earlier versions of ASP.NET Core because a separate DI container is created for the Web Host. As of now only one container is created for Gene...
- Modified
- 26 Jul at 07:53
"Token has expired" doesn't trigger 401 error code
I am using the uncaught exception handler: ``` this.UncaughtExceptionHandlers.Add((req, res, operationName, ex) => { res.WriteErrorBody(ex); Log.Error(ex); res.EndRequest(skipHeaders: true...
- Modified
- 25 Jul at 17:38