Category Archives: How to Fix

VS 2010: An error occurred loading a configuration file: Failed to map the path ‘/’.

I was using the System.Web.Configuration. WebConfiguration class to open the configuration for the site from one of my logic dll’s and I got the wonderful error An error occurred loading a configuration file: Failed to map the path ‘/’.
I freaked out for a second, until I put more thought into it. This is running fine in production! What is the difference with my machine and the server?
Oh! My Visual Studio is running under UAC with limited privileges since I am in Windows 7. DUH!
So, I restarted Visual Studio 2010 under “Run as Administrator” and problem solved. So if you are on Vista or Windows 7, that’s the issue.
NOTE: If you develop with administrative rights, be careful you don’t make development mistakes that assume everyone will run your program as an admin. i.e. writing to program files directory, root directory, etc.
Happy Coding!

Error 0210: stick key 28 is displayed when ThinkPad E40 is turned on

Notebook boot prompt:
ERROR 0210: Stuck Key 24 Press to Setup

, “24” is Stuck, “J”
, find the J Key, cut off the Key cap, clean the base is generally ok. If you’re unlucky, you need to change the keyboard.
other error code reference:
[F1] 3A; F2 】 【 3 c; [F3] 3 d; “F4” 3 e; “F5” 3 f; [F6] 40; F7 41 】; “F8” 42; [F9] 43; F10 44 】; 【 F11 】 45; [F12] 46; [Q] 10; [W] 11; [E] 12; [R] 13; [T] 14; [Y] 15; [U] 16; [I] 17; [O] 18; [P] 19; 【 A 】 1 e; 1 f [S]; [D] 20; [F] 21; [G] 22; 23 [H]; [J] 24; 【 K 】 25; [L] 26. 27 [:] 27 [“] 28; [Z] 2 c; [X] 2 d; [C] 2 e; [V] 2 f; [B] 30; [N] 31; 【M】32 【<】 33. 【 & gt; 34. 35. “/” [Space] 39; 3 a Capslock 】 【; 1 c [Enter]; 【 Left Shift 】2A; 【 Left CTRL 】1D; [left Alt] 38

Reproduced in: https://www.cnblogs.com/lubing666666/p/4221394.html

A TPM error (7) occurred attempting to read a pcr value

A TPM error (7) occurred attempting to read a pcr value
E2fsck-f-y-v /dev/sdxx
2. If the system does not need TPM (reboot after setting), either of the following methods is ok.
(1) Echo Blacklist TPM_tis & GT; The/etc/modprobe. D/tpm_tis. Conf
The tPM_tis.conf file needs to be created by itself
(2) $sudo vim /etc/modprobe.d/tpm_tis.conf
Add the following: “Blacklist TPM_tis” and the color will change automatically
 

error code 0x534. [SQLSTATE 42000] (Error 15404)).

Today, I found that the monitoring system kept reporting errors, indicating a Job execution error. Looking at the log, I found that a user who created this Job was deleted (because he left his Job), resulting in a Job error.     
 
Date 4/27/2010 12:00:00 PM
Log Job History (Backup_Diff.Subplan_1)

Server mxosv-tress01
Job Name backup_diff. Subplan_1
Step Name (Job outcome)
Duration 00:00:00
Sql Severity 0
Sql Message ID 0
Operator group Net Sent
Operator Paged
Retries 0
Unable to determine if The owner (MX\Randy. Admin) of job Backup_Diff.Subplan_1 has server access (reason: Could not obtain information about Windows NT group/user ‘MX\Randy.admin’, error code 0x534. [SQLSTATE 42000] (Error 15404)).
 
When our system user name changes, we will find that the previous good maintenance plan in the original SQL suddenly fails, with the above error message. The solution is to start with SQL security & GT; > Change the original system user name in the login name to the current user name, then delete the existing maintenance plan and rebuild the maintenance plan.
 

From “ITPUB blog” link: http://blog.itpub.net/35489/viewspace-661497/, if you want to reprint, please indicate the source, otherwise will be investigated for legal responsibility.

Reproduced in: http://blog.itpub.net/35489/viewspace-661497/

Parsing error: Unexpected token

When using VUE Cli3, I encountered the following problems:

error: Parsing error: Unexpected token < at src\views\index.vue:1:1:
> 1 | <template>
    | ^
|   <div class="index">
|     <router-view></router-view>
|     <TabBar :data="tabbarData"></TabBar>

Looking up many websites, can not solve this problem, finally, in
https://stackoverflow.com/questions/53601579/parsing-error-unexpected-token-using-vuecli3-and-airbnb-eslint?r=SearchResults
Find a way
Open your.eslintrc.js file and find the Parser
Here’s my.eslintrc.js

module.exports = {
    rules: {
        'no-console': 'off',
        "parser": "vue-eslint-parser"
    },
}

Note:
This error is reported when I write “import”. In this case, I only need to put the “.eslintrc.js”
“Parser” : comment out “Vue-Eslint-Parser” and restart the project. Then, uncomment it and restart the project again with no error.
Why that should be, I don’t understand. If you have a better solution, please leave me a message, thank you!!

One of the ways to solve the problem of internal server error in flash learning

Recently in learning flask web development, encountered such a problem, is according to the book on the code, run is an Internal server error, because halfway to learn for the sake of convenience, to switch to pycharm to develop, pycharm automatically help me to create a virtual environment, the book says the venv can I do not pollute the environment, but in fact I use, because the initial development on sublime does directly, cause I have a lot of local module, reoccupy pycharm, I changed the environment variable a lot, changed it all to venV, and then this error happened, you can try to delete VENV, use the native environment, and at the same time, change the environment variable back to the native, you can use it. Personal analysis, think should be two environments exist some kind of conflict.

Reproduced in: https://www.cnblogs.com/sgatbl/p/9134283.html

Linux QT download / usr / include / C + + / 7/ cstdlib:75 : 15: fatal error: stdlib. H: no such file or directory error

The phenomenon of
I recently wrote a small program under Ubuntu that always reports the following errors when running:

/usr/include/c++/7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h>


The reason:
I found out that:

This is because GCC7 has included libstdlib.h for better optimization, and the C Library header stdlib.h USES Include_next, which is sensitive to the GCC system header path.

Solutions:
Method 1: remove the following line from the.pro file in Qt:

INCLUDEPATH +=/usr/include

Method 2:
add the following line to the Qt. Pro file:

QMAKE_CFLAGS_ISYSTEM = -I

Reference: https://stackoverflow.com/questions/52532936/usr-include-c-7-cstdlib7515-fatal-error-stdlib-h-no-such-file-or-directo

Error: current transaction is aborted, commands ignored until end of transaction blockp

In normal database programming, we encountered errors from time to time: Current Transaction is aborted, commands ignored until the end of transaction BlockP. How to solve it?We usually look it up on the Internet. If you’re a little bit better at English you can tell from the error message that there’s probably something wrong there. But if the experience is not very rich, or the Internet to find more convenient. The most basic error message can see from the official documentation (http://www.postgresql.org/docs/8.4/interactive/errcodes-appendix.html).
The error above is the cause of improper transaction control, which can be written as follows.
Improper writing 1:
Connection OPEN.
Try {
Try {
Database operation A.
} Catch (Exception e) {
The log. The error (” do something “);
}
 
Database operation B. // The above error may occur during this data operation.
The transaction commits commit.
} Catch (Exception ex) {
Transaction rollback rollback.
} the finally {
Close the connection.
}
 
Improper writing method 2:
Connection OPEN.
Try {
Database operation A.
Database operation B.
The transaction commits commit.
} Catch (Exception ex) {
Database operation C. // The above error may occur during this data operation.
The transaction commits commit.
} the finally {
Close the connection.
}
 
In a Postgres database, if there is an error in a database operation in the same transaction, all subsequent databases in that transaction will fail.
If there is an error in database operation A, the same database operation B will report an error when it is executed. If there is an error in database operation A or database operation B, the same database operation C will report an error.
To avoid errors, someone is using the re-open method, which in effect throws away all previous operations (not in the case of auto-commit) and adds overhead by re-opening, which is not recommended.
Depending on the cause of the error, we can treat the processing before the possible error as a transaction. The processing after the error is then treated as a transaction, depending on the specific logic. That way you can avoid making mistakes.
In this way, we can change the improper 1 to
Try {
Database operation A.
} Catch (Exception e) {
Transaction rollback or commit;
The log. The error (” do something “);
}
Database operation B.  
 
In this way we can change the improper notation 2 to
} Catch (Exception ex) {
Transaction rollback or commit;
Database operation C.   
The transaction commits commit.
} the finally {
Close the connection.
}
 
 
 

Verilog testbench common blocks

1. System function block
Read in the local file, the last two can default

$readmemb ("<Data file name>",<Repository name>,<Start address>,<End address>)
$readmemh ("<DataFileName>",<RepositoryName>,<StartAddress>,<EndAddress>)

reg [379:0] CAL2_sample[0:2999];
initial $readmemb ( "./../matlab/ideal_high_freq_sample_bits.txt", CAL2_sample,0,2999 );

tdc_finecode_i <= CAL2_sample[samlpe_cnt];

Save the print results to the document

// finetime_o finetime_valid_o output:dut
integer fid;
initial
	fid = $fopen("fintimeout_ideal1.txt","w");
	
integer finetime_cnt=0;
always@(posedge main_pll_clk_80m_i or negedge rst_n) begin
	if(!rst_n) begin
		finetime_cnt <= 'd0;
	end
	else if(finetime_cnt==2999) 
		$fclose(fid); 
	else if(finetime_valid_buf==2'b01) begin
		finetime_cnt <= finetime_cnt + 1'b1; 
		$fwrite(fid,"%d\n",finetime_o); 
		$display("%d",finetime_o);
	end 
	finetime_valid_buf <= {finetime_valid_buf[0],finetime_valid_o};
end

[problem solving] property[ elasticsearch.version ] is missing for plugin [head]

Error message:

[2019-09-28T11:41:25,169][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: property [elasticsearch.version] is missing for plugin [head]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.2.jar:6.3.2]
	at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.2.jar:6.3.2]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.2.jar:6.3.2]
Caused by: java.lang.IllegalArgumentException: property [elasticsearch.version] is missing for plugin [head]
	at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:187) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.plugins.PluginsService.readPluginBundle(PluginsService.java:484) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.plugins.PluginsService.findBundles(PluginsService.java:463) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:147) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.node.Node.<init>(Node.java:311) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.node.Node.<init>(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.2.jar:6.3.2]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.2.jar:6.3.2]
	... 6 more

Reason for error: Placing the ES Head plug-in decompression package under the Plugins directory of the ES package causes an es startup error
Solution: Create a new directory under the es installation package and just move the location