Create default HttpClientFactory for integration test

I have a typed client which I want to register as a singleton: ``` public class SomeHttpClient { private readonly IHttpClientFactory _clientFactory; public SomeHttpClient(IHttpClientFactory ...

Set UserAuth delete cascade without adding dependency to ServiceModel

There are some entities that I want to ensure are deleted if a user is deleted so I have set their models like so to be used with OrmLite: ``` public class UserProcess { [AutoIncrement] publi...

29 Sep at 14:42

No service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' has been registered

What is the possible cause of this error: > InvalidOperationException: No service for type 'Microsoft.AspNetCore.Identity.UserManager [Microsoft.AspNetCore.Identity.IdentityUser]' has been registered...

29 Sep at 13:4

Visual Studio Installer Project - shortcut icons not set

I've created a WinForm application with .NET 4.6.1 and C#. I'm using Visual Studio 2017, with latest fixes updated (up to 29-Sept-2018). The application uses a custom icon, and it's correctly shown: e...

Screenshot secure desktop

I am working with screen sharing project.I am capturing desktop screen using below function.it works fine. But whenever [secure desktop prompting for elevation](https://learn.microsoft.com/en-us/windo...

4 Oct at 12:0

Bot framework v4.0 how to execute the previous waterfall step in a dialog

I'm trying to create a dialog in which I define multiple waterfall steps. In the context of this dialog, I need sometimes to go back to the previous waterfall step according to the choice of the user....

22 Oct at 11:50

Type 'TestClassAttribute' exists in both 'Microsoft.VisualStudio.QualityTools.UnitTestFramework and 'Microsoft.VisualStudio.TestPlatform.TestFramework

After update the test project NuGet i got this error: > The type 'TestClassAttribute' exists in both 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, Pub...

27 Sep at 17:11

ASP.NET Core UrlHelper and how it works

I'm rather new to ASP.NET Core, and right now I am trying to get a grasp on how UrlHelper works in general. In my controller, I want to create an absolute URL to another action in the same controller...

27 Sep at 12:46

Your startup project doesn't reference Microsoft.EntityFrameworkCore.Design

I have 2 projects in my solution, I have a project with Entity Framework Core installed: [](https://i.stack.imgur.com/p3cQA.png) And in the other ASP.NET Web API project I have these packages: ``` ...

How to solve the requested URL returned error: 403 in git repository

I have multiple accounts in git I committed code three weeks back with this account. I'll unable to pull my code . I was getting The requested URL returned error: 403 I'll try [Pushing to Git retu...

How to configure web proxy for HttpClient created directly via HttpClientFactory?

- I didn't find docs about it and I think my current solution isn't optimal because the handler lifecyle isn't managed by the HttpClientFactory: ``` var proxiedHttpClientHandler = new HttpClientHan...

How do I install Java on Mac OSX allowing version switching?

I want to install OpenJDK Java on Mac OSX and have it work alongside other JDK's since it is a newer release. Currently, I downloaded the tar.gz and placed it in my path but that is hard to maintain....

29 Sep at 20:52

Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

I updated to the latest OS, and/or restarted my computer (this happens on every major update, but this time all I did was restart my computer on 2022-09-13) This morning I navigated to my work's codeb...

13 Sep at 14:7

Store does not implement IUserRoleStore<TUser> ASP.NET Core Identity

I'm using ASP.NET Core 2.1 Identity. I've overridden IdentityUser because I need to add some additional properties on the user. In Startup.cs ``` services.AddDefaultIdentity<PortalUser>().AddEnti...

ServiceStack: Keep getting HTTP 500 errors for unknown reason

All of a sudden, I keep getting HTTP 500 errors in my self-hosted ServiceStack WS. I have several requests already in place and they are working fine, but this one just wont work. I have added my lic...

2 Feb at 10:35

ServiceStack: Explaination of the "Matching = ..." rules

I need an explanation of who the string inside the Matching = "..." rule is supposed to look. I see only a few examples on docs.servicestack.com: ``` [Route("/users/{Id}", Matches = "**/{int}")] [Ro...

1 Apr at 23:41

Firebase Remote Config: Version condition is disabled for Unity projects

I have a project in which I have to change remote config values of some parameters for each version. When I try to use version code while setting conditions in remote config, it is always grayed and n...

How to install OpenJDK 11 on Windows?

In the past, Oracle used to publish an executable installers for Windows that would: - - - - As of Java 11, the Oracle's free version of Java ([Oracle OpenJDK](http://jdk.java.net/11)) doesn't seem...

28 Sep at 04:54

Activating Focus Assist Windows 10 Setting Programmatically C#

I'm building a C# WPF application and want the ability to programmatically enable and disable the Windows System Feature `Focus Assist`. I've tried researching how to control this feature programmat...

16 Oct at 07:21

What is the difference between "npm install" and "npm ci"?

I'm working with continuous integration and discovered the [npm ci](https://docs.npmjs.com/cli/ci) command. I can't figure what the advantages are of using this command for my workflow. Is it fast...

Any alternative for Microsoft Fakes in .NET Core?

I am looking for an alternative to Microsoft Fakes in .NET Core. I know it is no longer supported in .NET Core. I just do not understand why not, I think it was a good solution in certain situations. ...

25 Sep at 11:44

Puppeteer wait until page is completely loaded

I am working on creating PDF from web page. The application on which I am working is single page application. I tried many options and suggestion on [https://github.com/GoogleChrome/puppeteer/issues...

xUnit testing Servicestack AutoQuery

first time using AutoQuery and I have this problem with unit testing after implementing AutoQuery. It works fine through Swagger manual testing. So I have a get method like this: ``` public class Ite...

Facebook Like functionality using C# SDK

I want to display to know when the facebook like button is clicked and upon verify button click, I want to post the like to the fan page. I want to use Facebook C# SDK. Here is my code: ``` <html> ...

What is the point of configuring DefaultScheme and DefaultChallengeScheme on ASP.NET Core?

I am learning how security works on ASP.NET Core 2.0 and IdentityServer4. I set up the projects with IdentityServer, API and ASP.NET Core MVC Client App. `ConfigureService` method on Client App as in...