Azure Functions using Cancellation Token with Http Trigger
I am developing a Function in Azure with Cancellation Token. Its an Http Trigger. I pass in a Cancellation Token in in the method parameters. Its long running function. And I cancel the request in b...
- Modified
- 13 Feb at 07:24
how to reslove Each Request DTO can only be handled by 1 service in service stack
I have two services which wil be having both the service will be having the same DTO. ``` [Route("service1\GetData","Get")] [Route("service2\GetData","Get")] public class GetData { ...
- Modified
- 13 Feb at 07:6
How to use both Azure AD authentication and Identity on ASP.NET Core 3?
The web application should allow internal employees with AD accounts to authenticate in the app using Azure AD Authentication. External users should be able to register and sign in using ASP.NET Core ...
- Modified
- 12 Feb at 23:57
JsonException: A possible object cycle was detected which is not supported. This can either be due to a cycle or if the object depth is larger than
In my web API when I run project to get data from the database got this error .net core 3.1 > JsonException: A possible object cycle was detected which is not supported. This can either be due to a cy...
- Modified
- 15 May at 18:9
IIS Express vs dotnet run
Actually I understand that is lightweight development server. From the other side runs the application as a console application and binds it to random port. But what is the actual difference? I can...
- Modified
- 12 Feb at 21:27
Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0
I recently installed CsvHelper ([https://joshclose.github.io/CsvHelper/](https://joshclose.github.io/CsvHelper/)) when i try to use the library I get the following error: > Could not load file or ass...
- Modified
- 12 Feb at 17:53
Why is StringValues assignable to String
I don't understand why the following compiles: ``` StringValues sv = httpContext.Request.Query["param"]; string s = sv; ``` My knowledge says that `a` is assignable to `b` only if `a` is of type `b...
- Modified
- 12 Feb at 15:32
TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds
I'm getting this error after upgrading to angular 9. I'm using visual studio 2019, ASP .NET core with angular. Even if I create new project and update angular to 9 version, It stops working. Complete...
- Modified
- 12 Feb at 14:20
Blazor TypeError: Cannot read property 'removeChild' of null at Object.e [as removeLogicalChild]
I created a component for a dual list box. Everything is fine but when I submit I get an error. ``` <EditForm Model="Model.Report" class="kt-form" OnValidSubmit="Model.OnSearch"> <div ...
- Modified
- 25 Jul at 07:22
Should I check the dotnet-tools .config directory into source control?
Recently I've noticed a `.config` directory being created by Visual Studio with a `dotnet-tools.json` file in. Should this be `.gitignore`d or checked into source control?
- Modified
- 11 Feb at 17:14
.NET Core 3.1 CreateHostBuilder Cannot parse JSON file
I am experiencing an error when trying to run my ASP.Net Core 3.1 project. The error is at `CreateHostBuilder` within `Program.cs` ``` public class Program { public static void Main(string[]...
- Modified
- 12 Feb at 01:9
Azure Cosmos DB - check if item not exists without throwing error to Application Insights
I built a simple player-tracking API app in ASP.NET Core 3.1 that uses Azure Cosmos DB as its back end. The API to create a new player entry first checks if an entry with the same ID under a given par...
- Modified
- 16 May at 18:29
ServiceStack ORMLite: Mutliple Column GroupBy With Table Aliases
I wish to use ORMLite to group by multiple aliased tables but I seem to have hit an issue. When using Sql.TableAlias with an anonymous type in the GroupBy of an SqlExpression the SQL generated for th...
- Modified
- 11 Feb at 03:42
Docker - The framework microsoft.AspNetCore.App, version '3.1'0 was not found on build
I'm attempting to learn about docker and how to containerize a .NET core Web app. I've been following the tutorial below and have made good progress except when I actually run my project. ``` https:/...
- Modified
- 10 Feb at 21:24
Strongly Typed Ids in Entity Framework Core
I'm trying to have a strongly typed `Id` class, which now holds 'long' internally. Implementation below. The problem I'm having the using this in my entities is that gives me a message that the prope...
- Modified
- 12 Feb at 07:37
.net core 3.1: 'IAsyncEnumerable<string>' does not contain a definition for 'GetAwaiter'
I have a .net core 3.1 console app. I have a method with the following signature: ``` public async IAsyncEnumerable<string> GetFilePathsFromRelativePathAsync(string relativePath) ``` If I call it:...
- Modified
- 22 Dec at 16:56
Private methods vs local functions
To my understanding, both local functions and private methods serve merely as implementation details - helpers for public methods. Why would I want to choose one over the other? When using a private ...
Ajax passing empty value but Controller get null in ASP.NET MVC
I'm working with `ASP.NET MVC` and have a problem with the value sent from `Ajax` to my controller. Let's say I have `SampleViewModel` like this: ``` public class SampleViewModel { private strin...
- Modified
- 15 Feb at 05:6
JsonSerializer.Deserialize fails
Consider the code... ``` using System; using System.Text.Json; public class Program { public static void Main() { int id = 9; string str = "{\"id\": " + id + "}"; var...
- Modified
- 8 Feb at 02:55
How can I POST a file using ServiceStack IRestGateway
I'm currently accessing a 3rd party restAPI using ServiceStacks IRestGateway with my own backing class. It's basically the same as the ServiceStack.Stripe [gateway](https://github.com/ServiceStack/Str...
- Modified
- 7 Feb at 16:21
How AutoQuery Parameters work when supplied
I've been reviewing servicestack and the documentation. In regards to autoquery documentation the pre-autoquery and post auto query design is shown below. Where the DTO does not include the paramete...
- Modified
- 7 Feb at 16:18
Is there a thing like HTTPContextEnricher thats works with Servicestack and Serilog
I'm using Servicestack (.Core) and it's connection to Serilog. Is there a way to automatically enrich all Log-Entries with things like SessionId, UserId, etc.. The serilog-enrichers will not work due ...
- Modified
- 7 Feb at 15:36
How to seed in Entity Framework Core 3.0?
I am trying seed the database with some data, using ASP.NET CORE 3.0 and EF Core. I've created my DbContext and according to [documentation](https://learn.microsoft.com/en-us/ef/core/modeling/data-se...
- Modified
- 10 Feb at 18:49
Where contains throw Value can't be null
I'm stuck and don't know why this issue occurs. Normally we do like this: ``` var q = await OrmDb.SelectAsync<OrmProductSerial>(p => p.SerialNumber.Contains(reqSearch) ); ``` In this case I need ...
- Modified
- 7 Feb at 14:46
ServiceStack License not found when using NUnit 3 through Console Runner in TeamCity
I am using a valid license key. But I keep getting this error: ``` ServiceStack.LicenseException : The free-quota limit on '10 ServiceStack Operations' has been reached. Please see https://servicest...
- Modified
- 6 Feb at 12:34