Category Archives: Windows

How to Solve .NET 6 running on win7 SP1 error

Error message:

Failed to load the dll from [C:\Program Files\dotnet\host\fxr\6.0.0-preview.6.21
352.12\hostfxr.dll], HRESULT: 0x80070057
The library hostfxr.dll was found, but loading it from C:\Program Files\dotnet\h
ost\fxr\6.0.0-preview.6.21352.12\hostfxr.dll failed
- Installing .NET prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=798306

.NET 6 Windows support system list:

OS Version Architectures Lifecycle
Windows Client 7 SP1(*****), 8.1 x64, x86 Windows
Windows 10 Client Version 1607+ x64, x86, Arm64 Windows
Windows Server 2012+ x64, x86 Windows Server
Windows Server Core 2012+ x64, x86 Windows Server
Nano Server Version 1809+ x64 Windows Server

* Windows 7 SP1 requires Extended Security Updates.
Therefore Win7 needs to install the update.
UpdatePack7 R2 (Win7 patch cumulative update package), UpdatePack7 R2 is a cumulative update installation package tool on Win7 system. It integrates some update package programs on Win7 system. One patch can complete all update operations of Win7 system.
It was normal after the upgrade.

Windows Install Node.js Error: 2503, 2502 [How to Solve]

1. In order to obtain the highest permission through the command prompt, we cut the downloaded node installation package to the root directory of disk C. first, we right-click and click [cut]

2. Open the root directory of Disk C and right-click [paste] in the blank space

3. Click continue in the pop-up reminder to cut the node installation package

4. Right-click start on the taskbar at the bottom of the desktop, and then click command prompt (administrator). This means opening the command prompt with the highest privileges

5. Enter the command CD\, and then press enter

6. using commands MSIEXEC/package node-v8.7.0-64.msi to install

[Solved] Pycharm Build a flash environment Error: Non zero exit code (2)

Error during installation

Analyze problems

Pycharm relies on — build dir to install packages, but this has been removed in the latest version of PIP

The PIP I use now is version 21.3.1. The solution is to reduce the PIP version of the project to PIP 21.2.4

Specific operation

1. Run CMD or windows PowerShell as administrator

2. Enter the interpreter path under the file + – M PIP install PIP = = 21.2.4

3. Open pycharm and view PIP information in project interpreter

4. Now try downloading flash

5. You should be able to display success and create a py file

6. Run it and the following web address will appear. Click to open

7. When the content appears, flash is successfully installed

How to Solve “Opera browser cannot play web video” Issue

How to Solve “Opera browser cannot play web video” Issue

 

Solution:

Replace Opera’s libffmpeg.so

sudo cp /usr/lib/chromium-browser/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so

Or because of the lack of chromium-codecs-ffmpeg-extra, you need to install it manually

sudo apt install chromium-codecs-ffmpeg-extra

Win7 .NET5 Error: Failed to load the hostfxr.dll KB2533623 Can Not Install

github issues

According to the above articles, kb2533623 was subsequently replaced by kb3063858 and kb4457144

Solution:

Use kb4457144 (recommended) — in addition, you can try kb4457145. This patch only contains security update reference

KB3063858

Kb4534310 (not verified, can try)

System patches can be downloaded from the official website

Kicnetv2 installation error 1920 [How to Solve]

View error log

Log content display: error 0x80070643: failed to install MSI package

When viewing runtime packages,

It is found that the C + + version in the runtime package is inconsistent with the native,

Solution:

Uninstall the native C + + 2015 runtime and install kinectruntime-v2.2_1811 VC in package_ Redist.x64.exe and VC_Redist.x86.exe is installed successfully

Kinect runtime package address:

https://download.microsoft.com/download/5/0/3/503F0020-B1F0-4DA6-A575-EA5C5B9EBF95/KinectRuntime-v2.2_1811.zip

!include: could not find: “C:\Users\Letsgo~1\AppData\Local\Temp\t-wc8ODN\0-messages.nsh” Error in script “” on line 75 — aborting creation process

error message

ExecError: C:\Users\Letsgo~1\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.2\Bin\makensis.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE       
Output:
Command line defined: "APP_ID=com.electron.vue-electron"
Command line defined: "APP_GUID=d5d114ea-3696-596a-b4ae-77f8de80b0a0"
Command line defined: "UNINSTALL_APP_KEY=d5d114ea-3696-596a-b4ae-77f8de80b0a0"
Command line defined: "PRODUCT_NAME=vue-electron"
Command line defined: "PRODUCT_FILENAME=vue-electron"
Command line defined: "APP_FILENAME=vue-electron"
Command line defined: "APP_DESCRIPTION="
Command line defined: "VERSION=0.1.0"
Command line defined: "PROJECT_DIR=E:\TestSpace\VsCode\vue-electron"
Command line defined: "BUILD_RESOURCES_DIR=E:\TestSpace\VsCode\vue-electron\build"
Command line defined: "APP_PACKAGE_NAME=vue-electron"
Command line defined: "APP_64=E:\TestSpace\VsCode\vue-electron\dist_electron\vue-electron-0.1.0-x64.nsis.7z"
Command line defined: "APP_64_NAME=vue-electron-0.1.0-x64.nsis.7z"
Command line defined: "APP_64_HASH=6C74864EC747628F4E9BDD2B96E6491817771A972106EFF0B3D506B5D714CA7A5DFA59EFC6C66FA1541954B53670414EF7105C99F311129B24640FCCAEE4DA89"
Command line defined: "APP_INSTALLER_STORE_FILE=vue-electron-updater\installer.exe"
Command line defined: "COMPRESSION_METHOD=7z"
Command line defined: "ONE_CLICK"
Command line defined: "RUN_AFTER_FINISH"
Command line defined: "SHORTCUT_NAME=vue-electron"
Command line defined: "UNINSTALL_DISPLAY_NAME=vue-electron 0.1.0"
Command line defined: "ESTIMATED_SIZE=185931"
Command line defined: "COMPRESS=auto"
Command line defined: "BUILD_UNINSTALLER"
Command line defined: "UNINSTALLER_OUT_FILE=E:\TestSpace\VsCode\vue-electron\dist_electron\__uninstaller-nsis-vue-electron.exe"
Processing config: C:\Users\�����ǵ���ȥ\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.2\nsisconf.nsh
Processing script file: "<stdin>" (ACP)

Error output:
!include: could not find: "C:\Users\Letsgo~1\AppData\Local\Temp\t-wc8ODN\0-messages.nsh"
Error in script "<stdin>" on line 75 -- aborting creation process

    at ChildProcess.<anonymous> (E:\TestSpace\VsCode\vue-electron\node_modules\builder-util\src\util.ts:250:14)
    at Object.onceWrapper (events.js:520:26)
    at ChildProcess.emit (events.js:400:28)
    at ChildProcess.cp.emit (E:\TestSpace\VsCode\vue-electron\node_modules\builder-util\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (internal/child_process.js:1055:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) {
  exitCode: 1,
  alreadyLogged: false,
  code: 'ERR_ELECTRON_BUILDER_CANNOT_EXECUTE'
}
npm ERR! code ELIFECYCLE

problem

Chinese appears in the path

Letsgo~1

Open node_Module/APP builder lib/out/targets/NSIS/nsisitarget.js file, add the required parameters to the executemakensis method.

//node_module/app-builder-lib/out/targets/nsis/NsisTarget.js
async executeMakensis(defines, commands, script) {
    const args = this.options.warningsAsErrors === false ?[] : ["-WX"];
    //Add
    args.push("-INPUTCHARSET", "UTF8");
    //END
    for (const name of Object.keys(defines)) {
        const value = defines[name];

        if (value == null) {
            args.push(`-D${name}`);
        } else {
            args.push(`-D${name}=${value}`);
        }
    }
}

http://10.18.5.83:8080/ Browse Error: A default document is not configured for the requested URL, and directory browsing is not enabled on the server

http://10.18.5.83:8080/ Browse Error: A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
Error Messages:
•A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
Things you can try:
•If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
• Enable directory browsing using IIS Manager. 1.Open IIS Manager.
2.In the Features view, double-click Directory Browsing.
3.On the Directory Browsing page, in the Actions pane, click Enable.
•Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.
Solution:
IIS Select the website – right side, click [Directory Browing] -features View page, right Actions, click Enable.

[Solved] IIS deployment project access error: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005)

One of my fax sending items can send a fax through the direct console, but when the same code is changed to webapi and deployed to IIS, the fax sent to the interface is directly reported.

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005)

I thought it was a code writing problem, but it didn’t work

Later, it was found that the problem was IIS

Modify the application pool of webapi, change the project running permission to localsystem, and restart the project!

The reason is analyzed. It is speculated that only if the identity is localsystem, windows will assign permissions to the application to operate hardware related interfaces, such as COM port. Other identities will be considered unsafe.