Additional probing paths for .NET Core 3 migration
Short version of the question: Is there any way in .NET Core 3 to specify a local probing path, using the same rules as the `<probing>` element from app.config? `additionalProbingPaths` does not seem ...
Is It Possible to Map to an Enum With an Alias?
I have a http request coming that has a property for a value. There are 2 possible options for this value, let's say Standard and Boosted. I'm using an enum for this. I also need to get the same val...
- Modified
- 2 Jul at 02:31
Does CreateIndex API support multicolumn indexes?
Does the OrmLite CreateIndex API support multicolumn index? It looks like it accepts just once column parameter: ``` db.CreateIndex<Table>(x => x.ColumnName); ``` Also is it possible to specifcy a...
- Modified
- 1 Jul at 18:44
Getting the API Key from ServiceStack request
Have a simple get Customer api that's returning list of customers fine. Setting up for service to service authentication, if I make this [Authenticated] and try to implement using ApiKeyAuthProvide...
- Modified
- 3 Jul at 08:10
Elasticsearch.NET version 7 - How to Create Index
In Elasticsearch.NET 6.x, it is possible create an index using `IElasticClient` method: ``` var response = elasticClient.Create( "my-index-name", index => ind...
- Modified
- 2 Jul at 06:5
.Net Core 3.0 JsonSerializer populate existing object
I'm preparing a migration from ASP.NET Core 2.2 to 3.0. As I don't use more advanced JSON features (but maybe one as described below), and 3.0 now comes with a built-in namespace/classes for JSON, `Sy...
- Modified
- 13 Aug at 10:56
Does the 'readonly' modifier create a hidden copy of a field?
The only difference between `MutableSlab` and `ImmutableSlab` implementations is the `readonly` modifier applied on the `handle` field: ``` using System; using System.Runtime.InteropServices; public...
- Modified
- 1 Jul at 23:1
Passing method to component
I have been trying to work out how if its possible and how to pass a method from the main page into a component in Blazor. I have a simple razor page, which contains a component with a button. I wan...
What is the difference between armeabi-v7a, arm64-v8a, x86?
I am working on an Android App on Kivy. I am using Buildozer to compile an APK file. In the Buildozer spec file, there's a setting `android.arch = armeabi-v7a`, I didn't understand this. Also, when I ...
Testing response.WriteAsync() in custom middleware
I have an ASP.NET Core API that I have written custom middleware for so that I can handle exceptions and write logs in a single spot. The middleware works as required when debugging via Kestrel and su...
- Modified
- 30 Jun at 10:37
Add parameters to httpclient
I wrote a HTTP request in Postman and I want to write the same request in my application. There is an option in postman to see the code of the request for C#. In postman it shows request using [RestSh...
- Modified
- 30 Jun at 12:59
MVC1000 Use of IHtmlHelper.Partial may result in application deadlocks. Consider using <partial> Tag Helper or IHtmlHelper.PartialAsync
Trying to make a web app using .Netcore When I run the application I get this error. Help me This is not a errors but a warning. But help me to resolve I added my code below ``` <!DOCTYPE html> <htm...
- Modified
- 29 Jun at 17:36
How to get COUNT DISTINCT in translated SQL with EF Core
I want to have EF core translate `.Select(x=>x.property).Distinct().Count()` into something like ``` SELECT COUNT(DISTINCT property) ``` Let's take an example. Let's say I have a DB table with Per...
- Modified
- 28 Jun at 09:25
FirefoxWebdriver No data is available for encoding 437
I want to create a FirefoxWebdriver but get the following error ``` Message: Initialization method Sma.Ldx.Systemtest.Ui.Tests.IbaTest.TestInitialize threw exception. System.TypeInitializationE...
Getting pagination to work with one to many join
I'm currently working on a database with several one-to-many and many-to-many relationships and I am struggling getting ormlite to work nicely. I have a one-to-many relationship like so: ``` var q2 ...
- Modified
- 28 Jun at 18:32
ServiceEventsClient only receive the last line of event data
We have a SSE server push the events like below: ``` ... event: event_id data: AQAAAAAAKTUMAQAAAWuY4NWAAAAAAAAAAwcAAD9IAAAAAAApNQ0BAAABa5jlaWAAAAAAAAADAQAA data: PVQAAAAAACk1DgEAAAFrmOVpYAAAAAAAAAMDA...
- Modified
- 28 Jun at 00:2
git submodule add error: does not have a commit checked out
I create a new git repository with the help of bitbucket called . Now, I'm trying in another git repository (called ) add the repository as submodule like this: ``` git submodule add https://....@bi...
How to use ASP.NET Core resource-based authorization without duplicating if/else code everywhere
I have a dotnet core 2.2 api with some controllers and action methods that needs to be authorized based on a user claim and the resource being accessed. Basically, each user can have 0 or many "roles"...
- Modified
- 27 Jun at 18:54
C# ASP.NET Core - SocketException: No such host is known
I am having issues which seem to be related calling a specific API asynchronously using `HttpClient` - the strange thing is that it doesn't happen all the time and can be solved by refreshing the page...
- Modified
- 24 Jan at 15:37
Querying Data in a System-Versioned Temporal Table in Entity Framework Core
We are implementing a solution to query a temporal table. When enabling a temporal table on SQL server for any table, SQL will automatically add a second table with extra “_History” at the end of the...
- Modified
- 15 Jun at 08:1
Running .net core project from another project
I have a solution that has 3 projects. Project2 needs Project1 to be running in order to function normally (Project2 call some Apis in Project1). ``` Solution |-- Project1 | |-- Program.cs | |-- ...
- Modified
- 28 Jun at 09:36
Why compiler throw error CS0165: Use of unassigned local variable?
I put the code below, and also uploaded to a online c# compiler: [jdoodle.com/a/1jww](http://jdoodle.com/a/1jww) the code can compile and run online, however, it doesn't compile in my local visual stu...
- Modified
- 27 Jun at 14:52
Repository is not clean. Please commit or stash any changes before updating In Angular 8
Error > Repository is not clean. Please commit or stash any changes before updating when i have updated from version 7 to Angular 8. Angular Guide for upgrade [https://update.angular.io/#7.0:8.0]...
- Modified
- 18 Sep at 09:40
Self-Contained ASP.Net Core Not Reading appsettings.json file
I wrote a ASP.Net Core application. Everything works fine when I run it on my dev machine. I have published and deployed it to my staging machine as a self-contained application. When running the app ...
- Modified
- 6 May at 06:6
Hide TabBar in Xamarin Forms Shell
I wan't to hide the TabBar in a Xamarin Forms Shell 4.0.0.497661 project. I try using: ``` Shell.SetTabBarIsVisible(Shell.Current, false); ``` After the page has loaded and drawed, but it has no e...
- Modified
- 31 Mar at 05:50