Mess in ServiceStack version 5
I have a ASP.NET Core application hosted in Windows Sercice, so it is a .NETCore project but `TargetFramework` is .NET Framework. [This](https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/...
- Modified
- 20 Apr at 02:54
Could not load file or assembly ServiceStack.Interfaces, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43
I encountered the following error after upgrading to ServiceStack 5.0.2 > Could not load file or assembly ServiceStack.Interfaces, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43 ...
- Modified
- 20 Apr at 02:17
Ignore JWT Bearer token signature (i.e. don't validate token)
I have an API that sits behind an API Gateway. The API Gateway validates the bearer token before passing the request along to the API. My API the uses the the asp.net core 2.0 native authentication a...
- Modified
- 20 Apr at 01:36
Assembly uses version X which has a higher version than referenced assembly error
After upgrading from ASP.NET Core 2.0 to 2.1-preview2 I got the following error: ``` Error CS1705 Assembly 'System.Data.SqlClient' with identity 'System.Data.SqlClient, Version=4.4.0.0, Culture=ne...
- Modified
- 19 Apr at 21:49
How to pull environment variables with Helm charts
I have my deployment.yaml file within the templates directory of Helm charts with several environment variables for the container I will be running using Helm. Now I want to be able to pull the envir...
- Modified
- 12 Jun at 18:51
Call child method from parent c#
My parent class is: ```csharp public Class Parent { protected void foo() { bar(); } protected void bar() { thing_a(); } } ``` My child class...
You must add a reference to assembly 'netstandard, Version=2.0.0.0
The project is an ASP.NET MVC Web App targeting the .NET Framework 4.6.1. All of a sudden (some NuGet packages were upgraded) I started to get the following error during runtime: > CS0012: The type ...
- Modified
- 13 Nov at 07:50
WPF RichTextBox SpellCheck ComException
I've got an exception while trying to enable spell checking on some Windows 8.1 machines (both have latest updates, OS language is russian and .NET framework 4.7 is russian) saying: > System.Reflecti...
- Modified
- 23 Apr at 10:1
What is the best way to perform partial updates in EF core and never update certain properties?
I know you can do something like var `myObj = _db.MyTable.FirstOrDefault(x=>x.Id==id)` and then update `myObj` property by property that you want to update but is there a better way to update say 6 ou...
- Modified
- 20 Apr at 09:48
How to install pytorch in Anaconda with conda or pip?
I am trying to install pytorch in Anaconda to work with Python 3.5 in Windows. Following the instructions in [pytorch.org](http://pytorch.org) I introduced the following code in Anaconda: ``` pip3 in...
ASP.Net core 2: Default Authentication Scheme ignored
I'm trying to build a custom AuthenticationHandler in ASP.Net Core 2. Following up topic like [ASP.NET Core 2.0 authentication middleware](https://stackoverflow.com/questions/45805411/asp-net-core-2-0...
- Modified
- 5 Nov at 01:5
ServiceStack.OrmLite: Where to add runtime attributes (instead of inline/design-time attributes)?
Some 4 years ago, I [asked this question](https://stackoverflow.com/questions/19884733/servicestack-handle-indexes-auto-increment-etc-without-attributes). I then decided not to use OrmLite at that poi...
- Modified
- 19 Apr at 07:28
How to upgrade disutils package PyYAML?
I was trying to install which has a dependency on . In my Ubuntu machine installed version is 3.11. So I used the following command to upgrade : `sudo -H pip3 install --upgrade PyYAML` But it give...
Execute global filter before controller's OnActionExecuting, in ASP.NET Core
In an ASP.NET Core 2.0 application, I am trying to execute a global filter's `OnActionExecuting` executing the Controller's variant. Expected behaviour is that I can prepare something in the global b...
- Modified
- 19 Apr at 04:37
Does adding virtual to a C# method may break legacy clients?
The question is very straightforward, If I have a following class: public class ExportReservationsToFtpRequestOld { public int A { get; set; } public long B { get; set; } } and change it...
ServiceStack OrmLite - Capture Sql InfoMessage event from stored procedure
Asked this question a few days ago but maybe wasn't too specific. Basically, I'm writing a console app that accepts a list of stored procedure names and arbitrarily executes them. The app is supposed...
- Modified
- 18 Apr at 18:0
What is SqlExpressionVisitor
I am new to ServiceStack & OrmLite, during my work, I frequently come across `SqlExpressionVisitor` And my question is: What is it basically? and what are the benefits of using it? And can I get th...
- Modified
- 2 May at 22:7
C# nameof generic type without specifying type
Assume I have the type ``` public class A<T> { } ``` and somewhere in the code I want to throw an exception related to incorrect usage of that type: ``` throw new InvalidOperationException("Cannot...
Failed to resolve "System.ServiceModel.WSHttpBinding" reference from "System.ServiceModel, Version=3.0.0.0"
I am getting this error in my Xamarin.ios project. I am using MVVMCross 5.7.0 to build a cross platform application and my core project is using .NetStandard 2.0. In my core project I am referencing ...
- Modified
- 18 Apr at 11:8
ORMLite SqlList with Tuples
I'm having some troubles selecting a `Tuple` of Objects from my custom `SQL` query with `ORMLite`. I have the following code: ``` var query = "select definition.*, timeslot.*, type.* from <blah blah...
- Modified
- 2 May at 22:7
npx command not found
I am working with webpack and I need to execute `./node_modules/webpack/bin/webpack.js` using `npx`. `npx webpack` would run the webpack binary (`./node_modules/webpack/bin/webpack`), but each time I ...
Invoke-customs are only supported starting with android 0 --min-api 26
before i'm use build version gradle 26 but after change buildtoolsversion to 27 like as this image I am using android studio 4.2.2 recently i update all my dependency and ``` sourceCompatibility Java...
- Modified
- 29 Jul at 10:5
How to include Http request method name in client method names generated with NSwag
When I generate a C# client for an API using NSwag, where the API includes endpoints that can be used with multiple Http request types (e.g. POST, GET) the client generates a method for each request w...
ServiceStack : Resolve Request DTO from an url
Is there any way to harness or reuse the internal servicestack url route-to-service resolution to obtain the matching request DTO of that URL? For example we have a service aggregating a list of URL ...
- Modified
- 17 Apr at 22:38
Validation using Yup to check string or number length
Is there a yup function that validates a specific length? I tried `.min(5)` and `.max(5)`, but I want something that ensures the number is exactly 5 characters (ie, zip code).
- Modified
- 17 Apr at 20:24