No suitable constructor found for entity type string
Yesterday I came her with a similar question about my own made entity type that head some errors. I fixed up these errors but now it throws one on entity type string and I have absolutely no clue how ...
- Modified
- 2 Nov at 12:30
ValueTuples lose their property names when serialized
While trying to serialize a named value tuple to JSON string, it loses the names assigned to items ``` (string type, string text) myTypes = ("A", "I am an animal"); var cnvValue = JsonConvert.Seriali...
- Modified
- 28 Jan at 08:47
c# asp.net core Bearer error="invalid_token"
Can someone please help me to solve this problem? I'm testing the API using Postman I'm following a tutorial about asp.net core. And I'm on its Authentication part now. I don't really understand whats...
- Modified
- 21 Feb at 17:7
Error: yarn start - error Command "start" not found
I am trying to learn React and I am using a private repo to start with it. I run `yarn start` in the directory of the repo but I get the error message: ``` yarn run v1.13.0 error Command "start" not...
How to download the latest build artifacts from Azure DevOps programmatically?
I have a .NET C# application and I would like to download the latest artifacts generated by the latest build of this public Azure DevOps project: [https://dev.azure.com/LumiaWoA/Boot%20Shim/_build?de...
- Modified
- 11 May at 13:57
Should Entity Framework lazy loading be disabled in web apps?
I've heard that you should disable the lazy loading feature of EF in web applications. (ASP.NET). [Here](https://wildermuth.com/2018/07/28/Avoid-Lazy-Loading-in-ASP-NET) and [here](https://ardalis.com...
- Modified
- 2 May at 03:35
Testing Batch SendAll ServiceStack
I am getting an error on SendAll in a unittest This works fine... ``` using (var service = HostContext.ResolveService<DeviceService>(authenticatedRequest)) { ...
- Modified
- 27 Jan at 17:33
Reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found
I try to open a Unity3D project with VSCode under Linux (Ubuntu 18.10). The omnisharp extension doesn't load the project, saying assemblies were not found. It may seems very stupide, but i'm not real...
Dynamically configure Http.BaseAddress for Client Side Blazor Deployment Environment
In this example, [Hosting Blazor][1], the author has a Blazor ClientSide App that calls Azure Functions. The author sets a Http.BaseAddress. Any thoughts on the best way to configure the Client Side B...
How to fix this strange error: "RuntimeError: CUDA error: out of memory"
I successfully trained the network but got this error during validation: > RuntimeError: CUDA error: out of memory
Why can't Microsoft analyzers find Microsoft.CodeAnalysis?
I'm trying to add [Microsoft.CodeAnalysis.FXCopAnalyzers](https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/) (latest stable version) to my ASP.NET project. When I install it via Nu...
- Modified
- 25 Jan at 18:13
In EF Core, how to check whether a migration is needed or not?
I am using Entity Framework Core in an Xamarin.iOS application. In my core project that contains code (.netstandard 2.0) that is shared between the iOS application and other applications, I would li...
- Modified
- 25 Jan at 12:52
DbContextOptionsBuilder.EnableSensitiveDataLogging Doesn't Do Anything
I'm trying to track down the cause of an Entity Framework `InvalidOperationException` in an ASP.NET Core project. The exception suggests using `DbContextOptionsBuilder.EnableSensitiveDataLogging`. In...
- Modified
- 24 Jan at 19:40
How to use RouteDataRequestCultureProvider with ASP.NET Core 2.2 EndpointRouting enabled?
I am trying to use the `RouteDataRequestCultureProvider` in a new ASP.NET Core 2.2 MVC project. I've read the Microsoft documentation on [Routing in ASP.NET Core](https://learn.microsoft.com/en-us/as...
- Modified
- 24 Apr at 14:41
It seems that Debug.Listeners does not exist in .net core
It seems that does not exists in net core2.2 In .net framework, I can use this: ``` Debug.Assert(true); Debug.Listeners.Add(new TextWriterTraceListener(Console.Out)); Debug.WriteLin...
Call async method in AddTransient in Startup - Asp.Net Core
I have a service which is used to get some information and the method has a bunch of async calls in the chain. ``` public interface IFooService { Task<IFoo> GetFooAsync(); } ``` The concrete c...
- Modified
- 26 Jan at 02:46
ServiceStack.Text FromJson and EmitLowercaseUnderscoreNames
A third party I am calling returns objects in lower case and with underscores, e.g. ``` { "token_type":"bearer", "access_token":"blahblah", "expires_in":3600, "scope":"rsp" } ``` I want to deserial...
- Modified
- 23 Jan at 23:22
IndexOutOfRangeException in CsvWriter
I'm getting a `System.IndexOutOfRangeException` while trying to serialize a dataset of dynamic objects. It's not any single row since I've tested it with each individual row (there are only four in m...
- Modified
- 23 Jan at 22:48
Can't decide between Task<IActionResult>, IActionResult and ActionResult<Thing>
While I do understand the concept of `Task`, `ActionResult`, etc. I still feel unsure which would be most intuitive to type in a controller if nothing else is specified. Taking consideration to be as...
- Modified
- 25 Jan at 19:53
Can't find Image class in System.Drawing under .NET Core 2.2
According to [the docs](https://learn.microsoft.com/en-us/dotnet/api/system.drawing.image?view=netcore-2.2), there's supposed to be a class for thumbnail handling in the namespace `System.Drawing`. I ...
Is it possible to enable a form for entering bearer tokens in Swagger-UI from ServiceStack's OpenApiFeature?
Is it possible to enable a form for entering bearer tokens in Swagger-UI from ServiceStack's OpenApiFeature? This is possible in NSwag with their Swagger 2.0 implementation. [](https://i.stack.imgur....
- Modified
- 23 Jan at 09:33
Version Conflict detected for Microsoft.EntityFrameworkCore.Install
I am getting the following error when adding an asp.net core api to an existing project I am working on. > "Version Conflict detected for Microsoft.EntityFrameworkCore.Install/reference Microsoft.Ent...
- Modified
- 12 Aug at 09:38
ServiceCollection does not contain a definition from "AddLogging"
I'm currently trying to create a Logger so I can inject it in Unit Tests. I'm following [https://stackoverflow.com/a/43425633/1057052](https://stackoverflow.com/a/43425633/1057052), and it used to wo...
- Modified
- 23 Jan at 01:24
What is the proper way to pass the connection to the DB in a Servicestack message based design
I have problems deciding on how the OrmLiteConnectionFactory should be passed to the different classes. Should it be done by injecting the container into the constructors? It is a message based design...
- Modified
- 22 Jan at 16:31
Is it possible to use an existing ASP.NET Core AuthenticationHandler with ServiceStack?
I have a custom `AuthenticationHandler` built to tie into the Claims-based authorization in ASP.NET Core. Is it possible for ServiceStack to re-use this component, or will I have to implement it as a ...
- Modified
- 22 Jan at 14:4