IIS Error: This configuration section cannot be used at this path …

Reference SO question and answer:

https://stackoverflow.com/questions/9794985/config-error-this-configuration-section-cannot-be-used-at-this-path

Try to fix this by installing “Internet Information Services” => “World Wide Web Services” => “Application Development Features” from “Turn Windows features on or off”

Maybe you need to install ASP.NET 4.8, or something similar, try out few things depending on your project.

Docker desktop using all the RAM

Some applications will use as much resources as possible, like Elasticsearch.

If you are running Docker for development and it uses up all your resources because of such application, you can configure the Docker backend to limit the amount of resources it can use.

If your Docker desktop is using WSL2 as backend, create a .wslconfig file in your user home folder in Windows with the following content

[wsl2]
memory=6GB
processors=4

Then, restart the WSL backend in Powershell

Restart-Service LxssManager

This will also restart Docker Desktop.

This will limit the resources Docker will use to only 6GB RAM and 4 core processors, leaving resources for your other applications and development tools.

Configured debug type ‘pwa-chrome’ is not supported when debugging Cordova app in Visual Studio Code

When trying to debug an Ionic Angular application in an older version of Visual Studio Code, this error shows up.

Follow the checklist

  • Use a Visual Studio Code version that supports debugging, if your code is too old newer versions will stop working.
  • Make sure the Chrome Debugger extension is installed and enabled, if it’s greyed out in the Extension list, uninstall and reinstall it.
  • Do the same thing for Cordova Tools extension, if you can’t find it, use an even older version of VSC.
    • The safest bet is to use the version used to develop the app.

The best way is to update your code base to newer versions of languages, frameworks and libraries so you can use newer tools to debug the application. Otherwise this is a workaround.

401.3 – unathorized – You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

Go to root node of IIS -> Authentication -> Anonymous Authentication, check which user the anonymous inherits the permissions from, set it to ApplicationPoolIdentity.

Then make sure the ApplicationPoolIdentity has permission to access the folder.

Filtering by multiple conditions with nested queries in Elasticsearch

All bool queries are evaluated on a single document.

So if you have an index like this

Products= {

Fields: { Name: string; Value: int; }[];

}

And you want to find products with field “Price” between 10 and 20, and field “Discount” between 0 and 5, you can use the following query

bool: {

must: [

{nested: { //nested query to find products with price from 10 to 20},

{nested: { //nested query to find products with Discount from 0 to 5}

]

}

It looks quite hard to follow.