Routing is not working with self-hosted web API
This is essentially what I have, a very simple set of three files with fresh asp.net core 2.1 (actually copy-pasted from tutorials): ``` public class Program { public static void Main(string[] ar...
- Modified
- 1 Jun at 09:57
ServiceStack Grouping of Requests Together
Now I may have my thinking of this all wrong seeing as though I'm relatively new to ServiceStack, however, if I was to have three API requests all part of the same request, for example: 1. /Broadcas...
- Modified
- 31 May at 17:32
Json.NET deserializing DateTimeOffset value fails for DateTimeOffset.MinValue without timezone
In my ASP.NET Core Web-API project, I'm getting a HTTP POST call to one of my API controllers. While evaluating the JSON payload and deserializing its contents, Json.NET stumbles upon a DateTime valu...
- Modified
- 31 May at 19:14
The project system has encountered an error When trying to load project
In Visual Studio 2017 v15.7.1 I am getting the following error window when trying to load one of my projects: [](https://i.stack.imgur.com/jl3rY.png) And when I go to the path specified, inside the ...
- Modified
- 31 May at 12:50
Migrating to .NET Core 2.1 breaks Swagger UI
Recently we have migrated our project from `.NET Core 2.0` to `.NET Core 2.1`. As a result our Swagger documentation site stopped working. We are still able to access it. We can see the customized tit...
- Modified
- 31 May at 12:9
.Net Core 2.1 - Cannot access a disposed object.Object name: 'IServiceProvider'
I just migrated .NET Core 2.0 to .NET Core 2.1. Everything went fine, but when I try to login now I get the folowing error: > - This happens in this bit of code: ``` public class AppContractResolv...
- Modified
- 31 May at 14:27
Unable to load DLL 'libdl' when using System.Drawing.Common NuGet package on AWS Lambda
We have a thumbnail generator lambda function which I'm trying to update to .NET Core 2.0, but I've encountered the following error when using Microsoft's `System.Drawing.Common` NuGet package: > Typ...
- Modified
- 27 Jun at 00:28
.NET Core Identity as UI canceling Register
I want to cancel the 'Register' option in a .NET Core 2.1 + Identity as UI application. I can of course simply remove the button from the page, question is - is that safe ? If not what are my other ...
- Modified
- 6 Dec at 02:50
How to find curve corner points using JTS or NTS?
I have a curve (say JTS edge): [](https://i.stack.imgur.com/aatuZ.png) How to find all curve direction change points that surpasses given angle using [JTS (Java)](https://locationtech.github.io/jts/...
Unable to add reference to installed NuGet package?
I created a NuGet package and I was able to successfully install it in another .NET solution. But I'm not able to add a reference to the NuGet package from the other .NET solution. For example, the Nu...
- Modified
- 16 May at 18:36
ASP.NET Web API Authentication.GetExternalLoginInfoAsync always return null
I have ASP.NET 5 project and I am using Web API to establish the external login (for Facebook and Google). In my case, I have Web API controller (Not MVC controller) which contains the following code ...
- Modified
- 2 Jun at 09:29
ASP.Net Core Replacement for VirtualPathUtility
Is there a replacement for `VirtualPathUtility.ToAbsolute` in ASP.Net Core? It doesn't seem to be available. I'm wanting to convert a relative path e.g. "~/bob" into an absolute path, e.g. "/app/bob"...
- Modified
- 30 May at 11:48
How to use predefined routes in ServiceStack with URI instead of query string?
Is it possible (if yes, how) in ServiceStack to use predefined routes with parameters in the URI? I can do one or the other but combining both does not seem to work: ``` [Route("/hello/{Name}")] //...
- Modified
- 30 May at 08:53
Can aggregate root reference another root?
I'm a little bit confused. I just watched Julie Lerman's Pluralsight video on DDD and here's the confusion I have: Having a simple online store example with: with for , what's the aggregate root her...
- Modified
- 6 Jan at 05:21
Ambiguous reference intellisense error from Resource.Designer.cs
I am running into a peculiar bug when developing on Visual Studio 2017 that I have been able to ignore for a while, but is now beginning to really me. I refer to this issue as a rather than an be...
- Modified
- 29 May at 23:27
JWT SecurityTokenInvalidSignatureException using RS256 PII is hidden
I'm having trouble validating a JWT token signed with RS256 using Microsoft's System.IdentityModel.Tokens.Jwt library. This token validates just fine on [JWT.io](https://jwt.io/). This is the error: >...
Get userId from JWT on all Controller methods?
I am creating a Core 2.0 Web API project that uses JWT for authentication and authorization. My controller methods that I want to secure are all decorated with the `Authorize` attribute. This is work...
- Modified
- 29 May at 08:56
How to rename file/directory (not Blob file) in Azure Storage (not Blob storage)?
I thought that this would be very easy job to do, but as I have researched, I found nothing on how to rename a file or directory in Azure Storage. I don't want to do a copy/delete (the size of files/...
- Modified
- 26 Jun at 18:40
What is the replacement for hasRequired with EF core?
With Entity Framework we had `HasRequired` on a field. What is the alternative replacement for that with EF core? [https://msdn.microsoft.com/en-us/library/jj591620(v=vs.113).aspx](https://msdn.micros...
- Modified
- 1 Mar at 04:12
Is there a way to build a DataTemplate with only C#
Is there a way to build a DataTemplate without using the [deprecated](http://www.dictionary.com/browse/deprecated) `FrameworkElementFactory` or the `XamlReader.Load` method of string interpretation t...
- Modified
- 29 May at 13:42
Timespan type cannot be mapped correctly when using Servicestack CsvSerializer
I am trying to convert list of objects to comma seperated string through SerializeToCsv method of Servicestack. However, i realized that timespan cannot be converted correctly. Forexample, my timespan...
- Modified
- 28 May at 15:13
Create partial login cookie for External Authentication
Recently I've implemented 2FA for my WebAPI using IdentityServer3. Everything works as expected if the login is made locally (using the `IUserService`). Now, I want to be able to do this login by issu...
- Modified
- 3 Jul at 15:28
Bot Framework messes up dialog state
I'm currently making a chatbot with Microsoft's Bot Framework. In my flow I have a final dialog that lets the user know, that they are participating in the competition. There is also an error-handling...
- Modified
- 30 May at 14:43
User is authenticated but where is the access token?
I have a web Application which authenticates a user to an Identity Server 4, using an implicit client. I need the access token for this user so that I can make a call to another API. To be clear: ...
- Modified
- 28 May at 13:5