How do ASP.NET Core's "asp-fallback-*" CDN tag helpers work?

I understand what the `asp-fallback-*` tag helpers do. What I don't understand is how. For example: ``` <link rel="stylesheet" href="//ajax.aspnetcdn.com/ajax/bootstrap/3.3.5/css/bootstrap.min.c...

What is a watson information/bucket?

I was reading [Microsoft document on ExceptionDispatchInfo Class](https://msdn.microsoft.com/en-us/library/system.runtime.exceptionservices.exceptiondispatchinfo(v=vs.110).aspx) and I came across a wo...

ServiceStack.OrmLite: Selecting POCOs where Type is determined in runtime (inheritance)

How can I properly deserialize POCOs using OrmLite from ServiceStack when I dont know the exact type of the POCO at design-time, but I only get a Type at runtime? So, something like this: ``` // Ret...

Configure HttpClientFactory to use data from the current request context

With the new [HttpClientFactory](https://www.stevejgordon.co.uk/introduction-to-httpclientfactory-aspnetcore) in ASP.NET Core 2.1, it's quite easy to configure custom HTTP clients with things like bas...

C# Couldn't process file xxx.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file

I have an issue while I try to build project in VS2012. It cannot build due to the error: ``` Couldn't process file xxx.resx due to its being in the Internet or Restricted zone or having the mark of ...

14 Apr at 05:36

User Configuration Settings in .NET Core

I spent all day yesterday researching this and cannot find any reasonable solution. I'm porting a .NET Framework project to .NET Core 2.0. The project used user settings (`Properties.Settings.Default...

15 Jul at 19:24

Parallel queued background tasks with hosted services in ASP.NET Core

I'm doing some tests with the new Background tasks with hosted services in ASP.NET Core feature present in version 2.1, more specifically with Queued background tasks, and a question about parallelism...

Couldn't process file resx due to its being in the Internet or Restricted zone or having the mark of the web on the file

I am facing an issue while debugging c# API Coding in Visual studio 2017. Debugging not started and showing a error message like > Couldn't process file resx due to its being in the Internet or Restri...

2 Feb at 18:16

ASP.NET Core and JWT token lifetime

I utilize `ASP.NET Core 2.1.1` It is interesting that the expiration time is only being taken into account when one provides `ClockSkew` - `JwtSecurityTokenHandler.TokenLifetimeInMinutes` - . For...

Should I take ILogger, ILogger<T>, ILoggerFactory or ILoggerProvider for a library?

This may be somewhat related to [Pass ILogger or ILoggerFactory to constructors in AspNet Core?](https://stackoverflow.com/q/46013762/91), however this is specifically about , not about how the actual...

How to fix "dial unix /var/run/docker.sock: connect: permission denied" when group permissions seem correct?

I'm suddenly having issues after an update of Ubuntu 18.04: previously I've used docker without issue on the system, but suddenly I cannot. As far as I can tell, the permissions look correct: ``` $ d...

28 Sep at 23:24

Some files in "wwwroot" folder are not published in ASP.NET Core web deploy

I am using ASP.NET Core 2.0 in Visual Studio 2017. My site works fine when I hit debug in [IIS Express](https://en.wikipedia.org/wiki/Internet_Information_Services#IIS_Express). But when deploying th...

The underlying connection was closed. Cannot run Asp.Net core 2.1 web api application using HTTP.sys?

I created a new Asp.net core 2.1 web application and then select "API" template. (I changed the Authentication to "Windows". Then I added the following code to use `Http.Sys` for Windows authenticatio...

17 Jul at 15:22

Entity Framework Core, deleting items from nested collection

I have two classes ``` public class InvoiceRow { public int Id { get; set; } public int InvoiceId { get; set; } public int ProductId { get; set; } public virtual...

How to access ServiceStack based web service from visual studio webform

I'm having trouble understanding how to consume an existing ServiceStack based web service ([https://cert.web.transaction.transactionexpress.com/TransFirst.Transaction.Web/api/](https://cert.web.trans...

13 Jul at 17:35

WPF Programmatically Enable TextBox Scrolling/Panning for Tablets

I am working with a WPF application that will be used on Windows tablets. The issue I am having is that I cannot scroll through a large multi-line TextBox on a tablet by pressing and dragging the cont...

13 Jul at 15:51

Logging in .Net core console application not working

I am following this tutorial: https://andrewlock.net/using-dependency-injection-in-a-net-core-console-application/ and accordingly installed the packages but log is not getting printed anywhere. This ...

5 May at 12:48

Identity Server 4 - Allowed Origins configured and origin is not allowed

I have a SPA and API in the same project and I keep getting the following errors when I make a request to the API. AllowedOrigins configured and origin http://localhost:5000 is not allowed CorsPol...

17 Jul at 08:36

Flutter Layout Row / Column - share width, expand height

I'm still having a bit of trouble with the layouting in Flutter. Right now I want to have the available space shared between 3 widgets, in a quadrant layout. The width is evenly shared (this works fin...

13 Jul at 13:23

ASP.NET Core Self Signed Certificate in Firefox not working

I'm using the Self Signed Certificate in ASP.NET Core with is default on as noted in [this article](https://learn.microsoft.com/en-us/aspnet/core/security/enforcing-ssl#trust-ff) I have trusted it wit...

Wnat to send Push notification using APNS via Servicestack apis

I have created an application that uses my apis (created in servicestack). I have .pem file (certificate) and device tokens for sending push notification. Now need to send push notification to the dev...

Supporting multiple custom DateTime formats when deserializing with Json.Net

I want to support deserializing more than one custom DateTime format with the Newtonsoft Json deserializer, so I am using `IsoDateTimeConverter`: ``` var serializeSettings = new JsonSerializerSetting...

13 Jul at 14:51

More than one DbContext named 'NewProject.Models.DbContext' was found Specify which one to use by providing its fully qualified name using exact case

I was developing a Web-App with Asp.Net Core 2.1 . After I added the new identity with scaffolder it generated me these codes: ``` [assembly:HostingStartup(typeof(ShareAndCare.Areas.Identity.Ident...

ServiceStack deserialize xml to object

My current method for deserialization looks like this: ``` public static object Deserialize(string xml, Type toType) { object result = null; using (var stream = new MemoryStream()) { ...

13 Jul at 04:12

Is it possible to combine [FromRoute] and [FromBody] in ASP.NET Core?

I have an action on API controller like this: ``` [HttpPost] public async Task<IActionResult> StartDeployment( [FromQuery]Guid deploymentId, [FromRoute]RequestInfo requestInfo, [FromBody]...