Allow cookie on unsecure domain

I have my project running on https://localhost:5001 and I want to access it from a site running on http://localhost:3000. The site on http://localhost:3000 can make a successful authenticate request b...

10 Nov at 06:31

How to stop Visual Studio 2022 sending requests to dc.services.visualstudio.com

I installed vs 2022 today and when running my project I suddenly se all these requests firing in my web front-end ``` https://dc.services.visualstudio.com/v2/track ``` Does anyone know why this would...

How to work around ServiceStack OrmLite's limit of seven joined tables

Using ServiceStack OrmLite (5.1.0), we need to run a query that brings in 8 joined tables (it's a product table - we need to pull in the product and all related data about its category, brand, supplie...

How do you create a test server in .NET 6?

I need to write some unit tests for an ASP.NET 6 API and need to create a test server to verify authorization. However since the startup class has been removed, I don't know what I should use as the e...

6 May at 18:39

VS 2022 - Convert to file-scoped namespace in all files

I'm converting my project to .NET 6 and I want to use filescoped namespaces everywhere. But the conversion tool exists only in the editor. [](https://i.stack.imgur.com/yY5zi.png) Has anyone found out ...

Unable to negotiate with 40.74.28.9 port 22: no matching host key type found. Their offer: ssh-rsa

After start of using NixOS as a new package management system, I get the following error when using git within Azure DevOps repositories and rsa ssh key: ``` jaroslavbezdek@mac> git pull Unable to neg...

22 Feb at 14:31

How can I redirect in React Router v6?

I am trying to upgrade to React Router v6 (`react-router-dom 6.0.1`). Here is my updated code: ``` import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom'; <BrowserRouter> <Routes...

Error: [PrivateRoute] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>

I'm using React Router v6 and am creating private routes for my application. In file , I've the code ``` import React from 'react'; import {Route,Navigate} from "react-router-dom"; import {isauth} fr...

5 Jan at 02:48

Why does UserAuthExtensions.PopulateFromMap(session, jwtPayload) does not deserialize json values with escape correctly in ServiceStack.Auth?

We want to get the UserName from the ServiceStack session, but we find that the backslashes in the UserName are not deserialized as expected. The UserName has this format 'domainname\username' and ser...

Error "Error: A <Route> is only ever to be used as the child of <Routes> element"

I am trying to use routing for the first time and followed the exact instructions from [Udemy](https://en.wikipedia.org/wiki/Udemy): ### File App.js: ``` import { Route } from "react-router-dom"; i...

12 Oct at 00:32

DateTime.Now equivalent for TimeOnly and DateOnly?

.NET 6 / C# 10 introduced `TimeOnly` and `DateOnly` structs, to represent only a time and only a date respectively. The good old `DateTime` struct always had a `Now` static property which would give y...

5 Dec at 11:23

Unable to Hot Reload on Visual Studio 2022

I moved my web app from Visual Studio 2019 to 2022 (Preview 7) but I am unable to hot-reload even small changes like changing `if(a=b)` to `if(a!=b)` and will require stopping the debugger, and I am u...

2 Dec at 06:20

Where are the using statements/directives in .NET 6

I got up and running with Visual Studio 2022 Preview for a couple of days now. Got the first shock, there is no Startup.cs. Thats ok, a bit of reading, I know Startup is removed. Today got another sla...

15 Nov at 07:42

ASP.NET Core 6 how to access Configuration during startup

In earlier versions, we had Startup.cs class and we get configuration object as follows in the file. ``` public class Startup { private readonly IHostEnvironment environment; private readonl...

26 Nov at 09:56

The type initializer for 'Microsoft.EntityFrameworkCore.Query.QueryableMethods' threw an exception

I've got one function app which throws following error when I run it with `azure-functions-core-tools@4.0.3780` `start` command. ``` func start ``` ``` System.Private.CoreLib: Exception while executi...

Error message "error:0308010C:digital envelope routines::unsupported"

I created the default IntelliJ IDEA React project and got this: ``` Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createH...

20 Nov at 19:58

Node.js 17.0.1 Gatsby error - "digital envelope routines::unsupported ... ERR_OSSL_EVP_UNSUPPORTED"

I am building a [Gatsby](https://www.gatsbyjs.com/) site. I upgraded Node.js to , and when I run a build, there is an error: ``` Error: digital envelope routines::unsupported opensslErrorStack: [ 'er...

18 Aug at 01:48

AppSelfHoseBase generates error when starting in .net 5

I am trying to create an apphost in the testing project of a project created from .net 5.0 react template. I am getting the error: > OneTimeSetUp: System.TypeLoadException : Could not load type 'Micro...

16 Oct at 22:48

ServiceStack JsonServiceClient URLs

I'm evaluating ServiceStack JsonServiceClient and the requests use a generic endpoint: [https://techstacks.io/json/reply/GetTechnology?slug=ServiceStack](https://techstacks.io/json/reply/GetTechnolog...

14 Oct at 20:16

Getting "Cannot read property 'pickAlgorithm' of null" error in react native

I get an error when running `npm install`. The error is: ``` npm ERR! Cannot read property 'pickAlgorithm' of null npm ERR! A complete log of this run can be found in: npm ERR! npm-cache\_logs\202...

14 Oct at 08:54

ServiceStack - Check for WSDL changes in a unit test

We want a unit test which fails if the WSDL hast changed. Possible logic: Generate a new WSDL and compare that with the old one from the metadata page stored in a file next to the unit test. Question:...

14 Oct at 06:9

C# record - using with keyword to modify properties

I recently ran into the `record` keyword in C#, I'm able to create a an instance of a record and modify it both by assigning a value regularly and both by using the keyword `with`. Is there any differ...

5 May at 16:47

Problem installing Android workload for MAUI Visual Studio 2022

I have installed Visual Studio 2022 Preview 4.1 according to these instructions: https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation. I started a new CometApp project and I get the ...

5 May at 15:47

Migrating to .NET 6.0 error on publish: Assets file doesn't have a target for 'net5.0'

I'm trying to migrate from .NET 5 to .NET 6. I've installed VS 2022 Community Preview and the Hosting Bundle... and updated everything in NuGet. The project will build without errors but when I go to ...

9 Oct at 13:55

EditorConfig control File-scoped namespace declaration

I'm using C# 10 new feature `File-scoped namespace declaration`. I have old code like this ``` namespace SampleCode { public class MyClass { } } ``` I'm moving this code to ``` namespace ...

7 Oct at 18:47