Category Archives: Windows

Office Visio Install Error: Office 16 Click-to-Run Extensibility Component

Today, when installing office Visio 2016, click setup, and the following error appears:

The reason for this problem is that your computer has installed 32-bit office before. When you uninstall it, the registry is not cleaned up

Solution:

In the bottom left search box of win10 system, enter “Registry Editor” or “regedit” to enter the registry manager

Go to HKEY in turn_ CLASSES_ Root/installer/products, after expanding products

You will see the registry key values beginning with “00006”. Delete all these key values

Note:

If it is office2013, prompt office 15, find the items beginning with 0005, and delete them all
if it is office2016, prompt office 16, find the items beginning with 0006, and delete them all

PXE install windows System Error: pxe-e55:ProxyDhcp service did not reply to request on port 4011

This pxe-e55 “error indicates that the PXE client has sent a request to the proxy DHCP server on port 4011, but has not received a reply. It seems that this problem only occurs when the DHCP class identifier option # 60 is set on the DHCP server, but there is no proxy DHCP service running on port 4011 on the same computer

If you operate the DHCP and proxy DHCP services on different computers, do not set the DHCP class identifier option in the DHCP configuration, and let the two services run on port 67/UDP

If you operate the DHCP and proxy DHCP services on the same computer, please set the DHCP class identifier option in the DHCP configuration. Let the DHCP service run on port 67/UDP and the proxy DHCP service run on port 40111 UDP

Here is an link to this question

https://kb.acronis.com/content/8358

At the same time, you can restart the WDS service

Please make sure you have checked this:

When creating an operating system deployment for x64 BIOS computers only, the x64 boot image and x64 boot image must be available on all DPS


my experimental environment :

VMware, both client and server use VMware 8 (NAT) network, and use local DHCP service when shutting down

server win-2008: DHCP (192.168.1.1-100), DNS( www.feiquan.net ), WDS server, feiquan.com (192.168.1.132) domain

start from PXE after client configuration: prompt error: proxydhcp service did not reply to request on port 4011

solution:

If Windows Deployment Services and DHCP are running on the same computer, configuring Windows Deployment Services to not respond to any client computers will not work. This is because although Windows Deployment Services will not respond, DHCP will. You can try to work around this issue by disabling DHCP option 60 on the DHCP tab

the main reason is that the configuration of DHCP is wrong. To add 60,67 as boot/x64/wdsnbp.com, because my DHCP and WDS server are the same computer, and then restart the WDS server

server:

DHCP server configuration :

DNS server:

WDS server:

If you want to restart WDS server and DHCP server after modifying 60 and 67 of DHCP. The client then requests recognition again. If you do not restart, you will still be prompted with the above error even after you modify the configuration. I just restart the computer

client:

 

Fix Windows Resource Protection found a corrupt file but could not fix it

Today, the computer of windows 8.1 system suddenly gets stuck and restarts automatically. The information obtained through the event viewer is limited. It is initially suspected that the system file is damaged. So the classic SFC/scan now is used to verify the system and repair the damaged file, but the following suggestions are obtained:

Start the system scan. This process will take some time.

Begins the verification phase of the system scan.
Verification is 100% complete.

Windows Resource Protection found corrupt files but could not repair some of them.
Some of these files. detailed information is available in CBS.Log windir\Logs\CBS\CBS.log.
For example, C:\Windows\Logs\CBS\CBS.log. Please note that in the offline service scenario
Logging is not currently supported.

It means that the damaged file has been found, but the SFC command can’t be repaired, and the specific reason for the failure to repair has not been found. After opening the C:// Windows/logs/CBS/CBS. Log file, we find that the information recorded in this log is miscellaneous, but we can start the administrator authority CMD console through the windows + X + a combination key, Then run the following command to directly output the details of the damaged file to the desktop sfcdetails. TXT file:

findstr /C:"[SR] Cannot repair member file" %windir%\logs\cbs\cbs.log >"%userprofile%\Desktop\sfcdetails.txt"

Through the above command, I get the following output:

2016-05-15 10:43:43, Info                  CSI    000005f4 [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version = 6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
2016-05-15 10:43:46, Info                  CSI    000005f6 [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version = 6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
2016-05-15 10:47:46, Info                  CSI    00000980 [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version = 6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
2016-05-15 10:47:47, Info                  CSI    00000982 [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version = 6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch

Here, we just know that the file AMD64/cnbj2530. DPB is damaged, but what’s the use of SFC’s failure to repair it?However, we found another way to repair it through this article “unable to repair through SFC function, prompt” Windows Resource Protection found the damaged file but can’t repair it “, That is, in the case of networking , it can be realized through the following command:

DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth

Still use the windows + X + a combination key to start the administrator rights CMD console, then input the above commands one by one as the behavior unit and press enter. After a moment, you can use SFC/scan now to check again. Fortunately, you can successfully repair the damaged files in this way, as shown in the figure below

[Solved] Windows SDK Fails to Install with Return Code 5100

C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation failed with return code 5100

Windows SDK Fails to Install with Return Code 5100

Symptoms

When installing the Microsoft Windows SDK for Windows 7 and .NET Framework 4 (Windows 7 SDK), you may see the “Installation Failed” dialog which may contain the following information:

Installation of the “Microsoft Windows SDKfor Windows 7” product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.

The setup log file contains the following error message:

C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation failed with return code 5100

OR

C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation failed with return code 5100

Cause

This issue occurs when you install the Windows 7 SDK on a computer that has a newer version of the Visual C++ 2010 Redistributable installed. The Windows 7 SDK installs version 10.0.30319 of the Visual C++ 2010 Redistributable.

Resolution

To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the Windows 7 SDK. You may have one or more of the following products installed:

Microsoft Visual C++ 2010 x86 Redistributable

Microsoft Visual C++ 2010 x64 Redistributable

After uninstalling the Microsoft Visual C++ 2010 Redistributable products, you may install the Windows 7 SDK. After installing the Windows 7 SDK, you may then reinstall the newer version of the Visual C++ 2010 Redistributable products, in order to restore the Visual C++ 2010 Redistributable products to their original state.

Solve the problem of “resource interpreted as document but transferred with MIME type application / JSON” in IE browser

When uploading a picture, use ajax to submit, and the returned data format is json. In the test, it was found that in the IE browser, after uploading the picture, the picture was not displayed, but a prompt popped up: whether to save the UploadImg.json file; but it is normal in other browsers.

After debugging in Chrome, I found that after the image was uploaded successfully, the browser gave a warning: Resource interpreted as Document but transferred with MIME type application/json.

When the original backend code returns json data, the ContentType of the response data is “application/json” by default. The new version of IE browser (IE10, IE11) will interpret this type as a file download operation.

Background code:

public JsonResult UploadImgToLocal()
        {
            var FileMaxSize = 10240 ; // File size in K      
            var model = new ImgUploadResult();
             try
            {
                HttpPostedFile myFile = HttpContext.Current.Request.Files[0];
                if (myFile != null)
                {
                    string fileExtension = myFile.FileName.Substring(myFile.FileName.LastIndexOf('.'));
                    if (!CheckValidExt(fileExtension))
                    {
                        return Json( new {UploadCode = 104 , massege = " File format error " });
                    }
                    else
                    {
                        if (myFile.ContentLength > FileMaxSize * 1024)
                        {
                            return Json( new {UploadCode = 105 , massege = " File is too large " });
                        }
                        else
                        {
                            // Upload

                            // Return the result 
                            return Json( new {UploadCode = 100 , massege = "" , sourceUrl = model.SourceImgUrl, bigUrl = model.BigImgUrl, thumbUrl = model.ThumbImgUrl });
                        }
                    }
                }
                else
                {
                    return Json( new {UploadCode = 102 , massege = " Please upload the file " });
                }
            }
            catch
            {
                return Json( new {UploadCode = 101 , massege = " Upload failed " });
            }
        }

In the code

return Json(new { UploadCode = 100, massege = "", sourceUrl = model.SourceImgUrl, bigUrl = model.BigImgUrl, thumbUrl = model.ThumbImgUrl });

To:

JsonResult json = new JsonResult();
json.ContentType = "text/html";
json.Data = new { UploadCode = 100, massege = "", sourceUrl = model.SourceImgUrl, bigUrl = model.BigImgUrl, thumbUrl = model.ThumbImgUrl };
return json;

After modifying the ContentType of the response data, the returned data type is a json string, which will be compatible with IE browser.

 

Chrome Commands Error: “Slow network is detected. Fallback font will be used while loading”

When the network environment is poor, the new version of chrome will output slow network is detected. Fallback font will be used while loading in the console, but sometimes it will cause inconvenience to debugging. You can disable this item in chrome configuration:
method: enter in the address bar chrome://flags/#enable -Webhosts-intervention-v2 , and set it to disabled; Restart chrome

Reference link: https://stackoverflow.com/questions/40143098/why-does-this-slow-network-detected-log-appear-in-chrome

In the console bar

1. Click pinion console settings

2. Check user messages only

The following place will not check out those XHR

Eclipse: Target runtime Apache Tomcat v7.0 is not defined

The targeted runtime version must be updated. Suppose you are using Tomcat Version 8.0 but in the targeted runtime it shows 7.0 selected.

You need toright click on your project > Properties > Targeted Runtime > Click the version required 8.0I guess. Hope it helps.

https://stackoverflow.com/questions/37698738/eclipse-target-runtime-apache-tomcat-v7-0-is-not-defined

the virtual machine is configured for 64-bit guest operating systems

Security–Virtualization–Inter(R)VirtualizationTechnolog Set to enable

This machine is installed with WIN 7, the detailed version is: Windows 7 Ultimate, 32-bit 6.1.7601, Service Pack 1. Virtual machine version: 7.1.2 build-301548. When installing RED HAT ENTERPRISE LINUX 6 64 on the virtual machine, the following error is reported.

You have configured this virtual machine to use a 64-bit guest operating system. However, 64-bit operation is not possible. This host is VT-capable, but VT is disabled.

This is usually because VT has been disabled in the BIOS/firmware settings or the host has not been power-cycled since changing this setting. Please:

(1) Verify that the BIOS/firmware settings enable VT and disable ‘trusted execution.’

(2) Power-cycle the host, if either of these BIOS/firmware settings have been changed.

(3) Power-cycle the host, if you have not done so since installing VMware Workstation.

(4) Update the host’s BIOS/firmware to the latest version.

For more detailed information, see http://vmware.com/info?id=152.

Continue without 64-bit support?

Then it does not start and then reports the following error.

This kernel requires an x86-64 CPU, but only detected an i686 CPU.Unable to boot – please use a kernel appropriate for your CPU.
For more information on VMWare hardware requirements see: Hardware and Firmware Requirements for 64-Bit Guest Operating Systems

http://kb.vmware.com/selfservice/viewContent.do?externalId=1901

 

Simply enable virtualization technology under BIOS, i.e. set the virtualization technology option. (Intel series CPU chips need to support EM64T and VT, and BIOS support to do so.) After entering the BIOS, select the Security option, then select the

Virtualization option, go in and set the Inter (R) Virtualization Technology option to Enable, exit and restart the computer, you can successfully install RED HAT ENTERPRISE LINUX 6 64-bit operating system

Even after installing VMware Workstation 9 virtual machine under Windows 7, I wanted to install windows 2008 R2 (only 64-bit, no 32-bit optional), but the virtual machine prompts

Binary translation is incompatible with long mode on this platform. Disabling long mode. Without long mode support, the virtual machine will not be able to run 64-bit code. For more details see http://vmware.com/info?id=152.

Through searching, I learned that I need to modify the bios settings to make the virtual machine support 64-bit system. It took a lot of research to find the HP Compaq Elite 8300 MT Mini Tower, the place to set up the virtual machine 64-bit.

First, press and hold the “Esc” key to enter the BIOS setup menu, and select “Computer Setup (F10)” to enter the BIOS setup

Find the menu “Security” – “System Security”, set Virtualization Technology (VTx) and Virtualization Technology Directed I/O (VTd) to Enabled. Save and exit the BIOS settings, reboot the computer, and then set the BIOS settings to Enabled.

Successfully installed windows 2008 R2 64-bit system under VMware Workstation 9 virtual machine.

Solution for docker under windows:This error may also indicate that the docker daemon is not running.

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.35/info: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

How to Solve this error:

cd "C:\Program Files\Docker\Docker"
./DockerCli.exe -SwitchDaemon

After the above operation, the problem is solved

 

Windows php Call to undefined function curl_init()

Apache 2.4, php-5.6.30 under win10

Call to undefined function curl_ init()。

1. Confirm extension_ Dir = “PHP extended directory”

2. Confirm extension = PHP_ The comment of curl.dll has been removed, and PHP does exist in the EXT directory_ curl.dll。

If curl still doesn’t work

The reason is that libeay32.dll, ssleay32.dll and libssh2.dll, which curl depends on, cannot be loaded. These three files are in the PHP installation directory

Many people on the Internet say that as long as libeay32.dll and ssleay32.dll are used, I can’t test them. If curl is not turned on, libssh2.dll is still needed

Method 1: copy them to the bin directory of Apache, restart Apache, and start curl of PHP successfully

Method 2: add the PHP installation directory to the environment variable, restart Apache, and succeed

PS: I have tried these two methods

Add in Apache’s configuration file httpd.conf

LoadFile "D:/wamp/php-5.6.30/php5ts.dll"
LoadFile "D:/wamp/php-5.6.30/libeay32.dll"
LoadFile "D:/wamp/php-5.6.30/ssleay32.dll"
LoadFile "D:/wamp/php-5.6.30/libssh2.dll"

, test result: invalid