Category Archives: How to Fix

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x3 My solution

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x3. Failed to register the DLL/OCX: RegSvr32 failed with exit code 0x3
A dependency analysis also did not find problems
It turned out to be a dependent DLL that did not support XP when VS2013 was compiled.
Record.

Reproduced in: https://www.cnblogs.com/nomadcirlce/p/8469677.html

MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect EC

Mongodb is installed, but the MongoDB server is not started.
Step 1: Open CMD and enter the MongoDB bin directory

Step 2: Enter the instruction: MonGod — dbPATH database path
If successful, it will be shown as follows:

Step 3: Leave the window open and open another CMD
Enter the bin directory of MongoDB again and enter Mongo, which is shown as follows:

 
 
Finally, you can run mongo on the console. Such as:

Failed to load resource: the server responded with a status of 503 (Service Unavailable)

If the corresponding JS reference is correct, a refresh will work fine
When you visit a web page, load a blank, and view a development script, you find a bunch of errors
Failed to load resource: the server responded with a status of 503 (Service Unavailable)

When switching to sources, it is found that the corresponding JS file has not been loaded

python sqlite Error IntegrityError: UNIQUE constraint failed: table_area1.user_name

This error is caused by the fact that when you were building the table, you set the key to be UNIQUE. When a user with the same name appears, the user will report
user_name INT NOT NULL UNIQUE
It’s also possible that this is the key that you just want to make unique but you insert this key twice later
for example you insert something with id 1
and then you insert something with id 1 because you can only have one field with id 1 so you get an error here

SSIS package error report login failed for user’nt authority\anonymous logon’ solution

Question link: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/35139786-12bd-424a-9a60-27b5de981cd6/login-failed-for-user-nt-authorityanonymous-logon
This problem is called a Kerberos problem
The current credential cannot be passed to another server due to executing SSIS Package or other reasons in the database when you are currently logged into a database using Windows authentication. Therefore, your identity becomes anonymous Logon

Solutions:
Log in remotely to the server where the database is located and then perform the relevant actions
Or upgrade anonymous users of remote servers

React Native Network Request Failed solution

Today, when I was writing a demo of Network Request with React Native, the emulators kept telling me Network Request Failed, which was very annoying, baidu search for a long time did not find the answer I wanted, someone said on stackoverflow that this error only appeared in the development mode, but the production version would not appear, but it didn’t solve the problem at all. Another says: If you’re using FETCH to get data, and you’re using POST, notice that Headers has to add a request header. You can’t use the body when the request is for GET, you must include the body when it is for POST, and once you set the header, everything works fine. However, the fetch method used by me does not need to add any headers, so the problem of Network Request Failed has not been solved.
To prevent code errors, I directly copied the official sample code, as follows

fetch('http://facebook.github.io/react-native/movies.json')
      .then((response) => response.json())
      .then((responseJson) => {
        console.log(responseJson.movies);
        return responseJson.movies;
      })
      .catch((error) => {
        console.error(error);
      });

I put this code directly into the browser console console to run, and found that everything was ok, the console successfully output content. Then it could be the ios emulator.
Now that fecth API is problematic try using XMLHttpRequest instead, and the console output the Resource could not be loaded because the app Transport Security policy requires the use of a secure Connection, Baidu search only found that iOS9 introduced the new feature App Transport Security (ATS). The new feature requires that networks accessed within the App must use the HTTPS protocol, meaning that the Api interface must be HTTPS in the future. But my project USES HTTP, and I can’t immediately switch to HTTPS for transport.
Fortunately there is an alternative solution
1. Add NSAppTransportSecurity type Dictionary to info.plist.
2. Add nsallowsarbitraryoccurrence type Boolean under NSAppTransportSecurity, value set to YES
For details, please refer to this document for the resolution that iOS9 HTTP does not work properly

The most complete collection of solutions to Tortoise SVN Clean up failure

preface
1. SVN cleanup failed again. It’s been a year or so. Remember the last time I wrote a post, I had a problem in 2014, please check the SVN cleanup failed.
 
The work environment
Work version: TortoiseSVN 1.9.4, Build 27285-64 Bit,
 
Try to approach
Each person has a different version of SVN and a different work environment, so if you don’t want to recheckout the whole project, I suggest you try one of these methods in turn.
 
Methods a
Sqlite3 method to clean SVN WC.DB database:
http://blog.csdn.net/ling913/article/details/38612861
http://blog.csdn.net/keenweiwei/article/details/34090553
Multiple attempts fail.
 
Method 2
According to the prompt “SVN Working Copy XXX locked”
Remove the SVN lock with the command. Note that the locked file is backed up and the locked file is deleted at the same time as the lock is deleted. Reference:
https://my.oschina.net/wuyizhong/blog/115169
http://blog.csdn.net/xusongsong520/article/details/7943604
Still no result,
Disheartened.
Heart as dead as ashes.
In despair…
Was there only one way out again?
 
Methods three
Finally, in the desperation of waiting for takeout, I tried to clean up using command Line.
(If a TortoiseSVN command line component of the Windows version was not installed when installing TortoiseSVN, a separate download is required
Reference: http://blog.sina.com.cn/s/blog_7abb28aa0101ji68.html)

 
If the above information appears, the SVN instruction is already available through the CMD window.
Switch to the SVN project and execute SVN Clean up.

 
Without hope at all, SVN can be used normally!!
People still want to have a little dream, in case it comes true!
Just have a little faith.
— — —
2018.12.22 added:
Copy the following command to a batch file, put the path to the root directory where you need to cleanup, and execute.

cd %~dp0 
svn cleanup
pause

 

[FAILED] Failed to start Raise network interfaces

[FAILED] Failed to start Raise network interfaces. The problem
The following error occurred when starting Linux and Windows did not communicate. The reason may be that DHCP and static IP conflict, using ifconfig command only ipv6 address without IPv4 address.
The solution
Modify the following files /etc/network/interfaces. D/eth0 , remove the static IP Settings or DHCP Settings section:
for example my:

remove DHCP, changed to:

auto eth0
iface eth0 inet static
address 192.168.2.99
netmask 255.255.255.0

Restart, problem solved.

Chrome failed to install

Please download Google Chrome again.”
at that time, I had successfully installed Chrome. There was a moment when Chrome failed to respond, and The installer failed to uncompress archive. Chrome then failed to open and failed to reinstall. Following this error message, I redownloaded and installed Chrome several times, but it never worked.
When I tried to uninstall Chrome from the control panel, I was told that Chrome had been successfully uninstalled. Then I went to the installation path of Chrome C:\Program Files (x86)\Google\ to directly delete the folder of Chrome. At this time, an error occurred, telling me that some programs under this folder were being occupied and could not be deleted.

then deleted the folders one by one, and finally found the problem in C:\Program Files (x86)\Google\Update\1.3.35.442 googlecrashhandler.exe and googlecrashhandler64. exe. The name makes perfect sense, as it turns out to be related to the previous Chrome crash that failed to respond.
The solution is to find the two processes in the task manager, manually terminate them, and then delete the Google folder completely. To be on the safe side, I also rebooted the computer and Chrome was up and running.
You can also open Windows PowerShell with admin privileges and run taskkill /f /t googlecrashhander.exe with the same effect

thanks for the inspiration of this article.

WordPress download template, update error No working transports found solution

    error because PHP did not open curl. Windows open method as follows

    1. Put php.ini; 2. Extension = remove the semicolon in front of php_curl. DLL
    Libeay32.ll, ssleay32.dll, php_curl, libssh2.dll move PHP into Windows /system32, and then restart Apache server, problem solved note: many answers on the net are put libeay32.ll, ssleay32.dll, php_curl. DLL three files are enough, but I try to come down, but also need libssh2.dll

express nodejs Failed to lookup view error in views directory (How to Fix)

The article directories
Article Reference Express configuration interface template Failed to Lookup View “error” in Views Directory solution

This article refer to

    [https://www.cnblogs.com/alian111/p/5766078.html] (Failed to lookup the view “error” in views directory solution)
    Express configuration interface template

    // view engine setup
    app.set('views', path.join(__dirname, 'views'));   //设置模板文件夹的路径
    app.set('view engine', 'html');   //设置视图模板为ejs
    app.engine('html',require('ejs').renderFile);
    

    Failed to Lookup View “error” in Views Directory solution
    When the template is loaded, there must be an error in the views folder. However, we formulated the ejs template in HTML format , so we could not find the error.html and reported an error when the project was loaded. Therefore, a new error.html was created under the Views folder, which successfully solved the problem