Tag Archives: Error resolution

Solution / error of. Net framework 4.0 installation failure HResult 0xc8000222 solution

When installing. Net framework 4.0, you will encounter the following error page,

Next, I will post solutions for you

1. After inputting CMD in the start menu, the CMD command input window will pop up

2. Enter net stop wuauserv in the above CMD command line

3. Continue to enter echo% windir%

4. Change the name of the software distribution folder in the pop-up folder (usually C: Windows)

5. Continue to enter net start wuauserv  

6. Install net4.0 again and it will be successful

//If you think the above command is troublesome, you can paste and copy it to the CMD window with the mouse

Angular_ Error: Cannot assign to a reference or variable!

Cannot assign a value to a reference or variable!

<form class="form-horizontal" (ngSubmit)="login(loginForm.value)" role="form" #loginForm="ngForm">
        <div class="form-group">
          <label for="username"></label>
          <input class="form-control" required name="username" id="username" type="textbox" placeholder="Email"
            [(ngModel)]="name" #username="ngModel">

          <div *ngIf="username.invalid && (username.dirty || username.touched)" class="alert alert-danger">
            <div *ngIf="username.errors.required">
              Name is required.
            </div>
          </div>
        </div>
        <div class="form-group">
          <label for="password"></label>
          <input class="form-control" required name="password" id="password" [(ngModel)]="password" type="password"
            placeholder="Password" #passWord="ngModel">
          <div *ngIf="passWord.invalid && (passWord.dirty || passWord.touched)" class="alert alert-danger">
            <div *ngIf="passWord.errors.required">
              Name is required.
            </div>
            <div *ngIf="passWord.errors.minlength">
              Name must be at least 4 characters long.
            </div>

          </div>
        </div>
        <div class="row" style="margin-top: 40px;">
          <div class="col-sm-6">
            <!-- <a class="login-link" routerlinkactive="active" ng-reflect-router-link="/register"
              ng-reflect-router-link-active="active" href="/register"></a> -->
          </div>
          <div class="col-sm-6">
            <button type="submit" class="btn btn-primary pull-right btn-login" [disabled]="!loginForm.form.valid">
              Login</button>
          </div>
        </div>
      </form>

The input #password and the variable defined in the TS file have the same name.
Change can be

The solution of “error in NLS loop more than 50” in R language

When using multiple nonlinear regression (NLS function) in R language, we often encounter the problem that “the number of error in NLS cycles exceeds the maximum of 50”.

The main reason is that the default maximum number of iterations in NLS is 50. At this time, you only need to use NLS. Control to modify the maximum number of iterations
for example, change the maximum number of iterations to 1000:

nlc <- nls.control(maxiter = 1000)
m1 <- nls(y ~ a * x1 ^ b * x2 ^ c, 
          control = nlc, 
          start = list(a = 1, b = 1, c = 1),
          trace = T)

About error creating bean with name ‘xxxxx’: invocation of init method

The information found on the Internet is that this kind of exception is usually caused by wrong package import, missing, conflict and wrong version.

Before reporting this error again, I added, deleted and modified it pom.xml File, right-click project – & gt; Maven – & gt; update project, project – & gt; clean, etc. these operations are used to modify and update the project as a whole. It’s not good to directly locate the specific reason. So I went through the exception record carefully, and I checked in a java file that reported an error. I found that the point that reported an error was the override annotation. This is the reason why override annotation is not supported. Combined with previous experience, it is judged that the compiler version is low.

Solutions: 1. Right click on the project – & gt; build path – & gt; configure build path (then change the default 1.5 to your own JRE version: specifically, delete 1.5, and then add library – & gt; JRE system library – & gt; workspace default library (generally higher than 1.5, now at least 1.7, 1.8)).

2. Right click Project – & gt; properties – & gt; Java compiler. Remove the check “use compliance from execution environment on the Java build path”. Then, choose your own java version.

NPM report error: eperm: operation not permitted, unlink… Solution and clear cache_ modules

Due to domestic and foreign environmental factors, NPM install often has various problems, especially “error: eperm: operation not permitted, unlink…” This is a mistake.

This error is misleading because of the error information, which leads to a lot of solutions proposed on the Internet, such as setting permissions and entering as an administrator.
In fact, the reason for this error is that the network is unstable, resulting in incomplete or error downloading of NPM package. What, your home’s 100m optical fiber network is flying fast?But the server is foreign, so it should be slow when it is slow.
After an error, most people will NPM install again, and the NPM install command will not take the initiative to clear the last installed package. However, the package you installed last time is incomplete, and there is a dependency relationship between packages. As a result, errors will naturally occur.

Therefore, in order to solve this problem, you should clear the last installed package. If you want to clear it completely, you generally need the following two steps:

Delete all files in node modules. Clear the NPM cache.


There are two ways to delete the node modules file:
1. Right click to delete it directly. The disadvantage is that the deletion speed is very slow when there are too many dependencies.
2. Install rimraf to delete [wall crack recommended, speed of light].

Install (Global install recommended)

npm install -g rimraf

Use:
first in node_ The folder where the modules are located. And then directly input:

rimraf node_ modules


There are two ways to clear the NPM cache:
the first one is to delete the cache file directly, and delete the file of C: (users \ \ user name. Npmrc).
The second is to execute: NPM cache clean — force, which also achieves the purpose of clearing cache files.

Error: property ‘TZ’ does not exist on type ‘type of moment’

A new ABP project, NPM install, then NPM start, results in an error: property ‘TZ’ does not exist on type ‘type of moment’

moment.tz.setDefault ( abp.timing.timeZoneInfo . iana.timeZoneId );

Because this paragraph is wrong:


Property 'tz' does not exist on type 'typeof moment'.  TS2339

    24 | 
    25 |   if (abp.clock.provider.supportsMultipleTimezone) {
  > 26 |     moment.tz.setDefault(abp.timing.timeZoneInfo.iana.timeZoneId);
       |            ^
    27 |   }
    28 | 
    29 |   const stores = initializeStores();
This error occurred during the build time and cannot be dismissed.

Serious,

https://blog.csdn.net/qq_ thirty-six million two hundred and seventy-nine thousand four hundred and forty-five

Change here to

import * as moment from ‘moment-timezone’;

 

 

A solution to [error] LD returned 1 exit status

[Error] LD Returned 1 Exit Status
[Error] LD returned 1 exit status
Two. Practical operation three. How do you prevent such mistakes?4. Leave a message

[Error] LD returned 1 exit status

3
3
3
3
3
3
3
The function is used elsewhere without a parameter
Two. Practical operation

3
3
3
3
3
3
3
3
3
4. The most important thing is to have patient
Three. How to prevent this kind of mistake?
1. When customizing the function name, you can do this:

Example: I want to define a function, which is the main menu. I can change the function name into pinyin zhu_cai_dan or the phonetic order of each word ZCD

4. Leave a message
1. No exit to
2. If you think that can help support oh
3. [Error] LD returned 1 exit status <>>

ABAQUS FLEXlm error: – 15, 10. System error: 10061 “Winsock: problem solving of connection reused”

After reinstalling the system, the computer reinstalled ABAQUS6.10. As a result, this error occurred when verifying license status:

FLEXlm Error: -15, 10. System Error: 10061″WinSock: Connection union union

In addition, the server could not stop and the license file could not be reloaded, so I started all kinds of tutorials. Later, I could not help but shut down the LMGRd. exe in the process, and then re-start the server and Reload license.
In addition, using the deadline is 2017.11.11 abaqus6.10 cracked versions, if prompt license has passed life can refer to this thread https://tieba.baidu.com/p/5377311340, which directly use the high version of the license registration dat file.

JDBC connection to Oracle: listener used the connection with the following error: ora-12505

Exception in thread "main" java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
 
	at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
	at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)
	at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
	at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
	at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
	at java.sql.DriverManager.getConnection(DriverManager.java:571)
	at java.sql.DriverManager.getConnection(DriverManager.java:215)
	at com.test.OracleTest.main(OracleTest.java:13)
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
 
	at oracle.net.ns.NSProtocol.connect(NSProtocol.java:386)
	at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1054)
	at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
	... 7 more

//create a Connection object.
Connection conn = DriverManager getConnection (” JDBC: oracle: thin: @ localhost: 1521: former “, “admit”, “123”);
The problem is the database to monitor the sid in the configuration file is not correct, namely the “former” in the url, enter the database installation directory, find tnsnames. Ora file, for example, my path is/home/Oracle_11g/product/11.2.0/dbhome_1/network/admin/tnsnames. Ora
found SERVICE_NAME = XE, but not equal to the former, So you can change the url of the former to XE can
Connection conn = DriverManager. GetConnection (” JDBC: oracle: thin: @ localhost: 1521: former “, “admit”, “123”);

CFNetwork internal error (0xc01a:/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNet

Bug description (Console warning message)
Reference: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html
https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33

CFNetwork internal error (0xc01a:/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork/CFNetwork
 

1
1
Modify the info. The plist
NSExceptionDomains

    NSExceptionRequiresForwardSecrecy: NONSIncludesSubdomains: YESNSExceptionAllowInsecureHTTPLoads: YES

    Reason: Companies use HTTP rather than HTTPS requests