Deprecation notice: ReactDOM.render is no longer supported in React 18
I get this error every time I create a new React app: > Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if...
- Modified
- 15 Apr at 11:57
Listen to system reboot/shutdown event with C# - cross platform
If we're just talking about Windows, I can use the [Microsoft.Win32.SystemEvents.SessionEnding](https://learn.microsoft.com/en-us/dotnet/api/microsoft.win32.systemevents.sessionending?view=dotnet-plat...
Run async hosted service every 5 minutes in ASP.NET Core
The ASP.NET Core [docs](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services) for background services show a number of implementation examples. There's an example for starti...
- Modified
- 27 Mar at 14:20
Could not locate MSBuild instance to register with OmniSharp
I have found many questions about this but non have helped me. I am trying to write c# code and the omnisharp auto complete doesn't work and I get this back from the Omnisharp Log: ``` OmniSharp serve...
- Modified
- 25 Mar at 22:2
Problem with [Authenticate] filter and Validator execute priority
Good Day, I have validations with session values into a validator, if the session is expired, It has not been detected within the execution of the validator, and this validator responds with an error,...
- Modified
- 24 Mar at 20:1
ServiceStack 6 CredentialsAuthProvider does not return BearerToken
Our shop has been using ServiceStack libraries for several years now without many issues. Recently, after upgrading from the 5.12 version to the 6.0 version, we are seeing a credential-based authentic...
- Modified
- 24 Mar at 13:5
Empty Object when deserializing ViewPort object with ServiceStack
I'm having an issue since I migrated to the latest version of GoogleApi (by Vivet) After analyzing I have identified a problem with deserializing the ViewPort object (this object was changed ). This o...
- Modified
- 24 Mar at 10:51
How to configure and use Serilog in ASP.NET Core 6?
Since the recently introduced new structure of the Program.cs startup code, the documentation confuses me a bit. In the officially provided [Serilog.AspNetCore example](https://github.com/serilog/seri...
ServiceStack IAppSettings was not ready and would result NULL reference exception if used in constructor
It seems like the `IAppSettings` implementation was not ready from IoC in the constructor. Before I go into details, I've read similar problems: - [ServiceStack doesn't auto-wire and register AppSetti...
- Modified
- 24 Mar at 01:26
How can I fix the "zsh: command not found: python" error? (macOS Monterey 12.3, Python 3.10, Atom IDE, and atom-python-run 0.9.7)
Since I got the [macOS v12.3](https://en.wikipedia.org/wiki/MacOS_Monterey) (Monterey) update (not sure it's related though), I have been getting this error when I try to run my Python code in the ter...
- Modified
- 26 Jun at 21:6
Clone a JsonNode and attach it to another one in .NET 6
I'm using `System.Text.Json.Nodes` in .NET 6.0 and what I'm trying to do is simple: Copy a JsonNode from one and attach the node to another JsonNode. The following is my code. But when I try to run i...
- Modified
- 17 Jul at 08:40
Disabling .NET 6 features per default
When creating a new project in VS 2022 with .NET 6, following new features are added automatically: - - Is there a way to create a .NET 6 project - without top-level-statements (a workaround other th...
- Modified
- 20 Mar at 18:32
How do you do database.ensurecreated() in aspnet core web application using .NET 6?
In a .NET 5 web application, we use code such as the following in startup.cs to initialize the DB using Entity Framework: In .NET 6 though, I get the error that there is no ApplicationServices. I trie...
- Modified
- 5 May at 15:46
How to fix build error on ASP.NET Core + ServiceStack?
I have a problem when creating a new web service using ServiceStack I have installed : - - - - However If I try to create a new project , this will come up and create it. ``` C:\Users\noliveros\Deskt...
- Modified
- 11 Mar at 10:6
Add service from another dll of another solution
We use ServiceStack 5.9.2 and have a ready, running application build with Visual Studio. Is it possible to add additional services to this application which were build in another Visual Studio soluti...
- Modified
- 11 Mar at 08:52
How to ignore empty list when serializing to json?
I am trying to figure out how to serialize to a json object and skip serializing properties whose values are empty lists. **I am not using Newtonsoft json** using System.Text.Json; using System.T...
- Modified
- 7 May at 07:0
How to start on ServiceStack?
Can you help me point out how should I start on this: I'm new to API , and I'm currently working on ASP.NET Core 3.1 MVC paired with Microsoft SQL Server. I have requirement that I should use API (Ser...
- Modified
- 9 Mar at 11:9
Add methods to Program.cs in .NET 6
In the Program.cs for .NET 5, you could add methods under the Main(string[] args) method. With .NET 6, the Main method exists, but isn't physically included in the Program.cs file by default. To that ...
ServiceStack v6 - Route starting with /api produces NotImplementedExceptio
### Greetings. I started a new project with . I noticed that when I use routes starting with `/api`, they will produce a `NotImplementedException` when called. I believe this is due to the new API ...
- Modified
- 8 Mar at 13:59
ServiceStack marker Attribute not found in Collection
I have a custom attribute and I want to check via a GlobalFilter, if the methods I'm calling has this marker attribute. I can't find a way, to get the information that the called method where my requ...
- Modified
- 3 Mar at 11:16
Service Stack 6 UI
I recently upgraded to ServiceStack 6 and trying to get the API UI to work. I have 2 issues. After I authenticate (I have custom CredentialsAuthProviderSync) I still get an error that I need to authen...
- Modified
- 2 Mar at 05:11
ASP.NET Core 6 app not able to find UseWindowsService
My objective is to run an ASP.NET Core 6 app as Windows service in the simplest way, which I understood to use the code shown below. I have included both of these lines (though only the top should be ...
- Modified
- 7 May at 05:38
Replacement for Automapper's ForAllOtherMembers()
ForAllOtherMembers extension method was removed from Automapper 11 I use it to ignore conventional mappings for properties other than the one mentioned before like this ``` ForAllOtherMembers(opt=>opt...
- Modified
- 1 Mar at 16:2
Minimum API Key ServiceStack authentication + authorization
I would like to use API key to access secured ServiceStack web service simply as possible: - - - - - - - - - I am able to call a service with Bearer token (API key). It returns 200 Forbidden. ApiKeyA...
- Modified
- 1 Mar at 08:12
Im not able to mock ServiceBusReceivedMessage and ServiceBusMessageActions
we want to write unit-test for servicebus message trigger. we are using [Azure.Messaging.ServiceBus](https://www.nuget.org/packages/Azure.Messaging.ServiceBus/) nuget package ``` [FunctionName("servie...
- Modified
- 28 Feb at 09:35