. OleDb. OleDbException: [DBNETLIB] [ConnectionOpen (PreLoginHandshake ().] General network error. Check the network documentation.
The following is a solution provided by Tsinghua Xiaofei. This error can be effectively solved through the test of IT Information Network!
Microsoft ole db Provider for SQL Server (0x80004005)[DBNETLIB] [ConnectionOpen (PreLoginHandshake ().] A general network error occurs. Check the network documentation.
0 image. heigh
"/" Indicates a server error in the application. [Dbnetlib] [connectionopen (preloginhandshake ().] A general network error occurs. Check the network documentation. Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.
Exception details: system. Data. oledb. oledbexception: [dbnetlib] [connectionopen (preloginhandshake ().] General network error. Check the networ
;This allows you to use the system default error page in MVC4;Third, custom error pageSometimes we want to use a custom error page, what to do with that, page flipping other Daniel writes blog, see this way, the custom attribute class inherits Fileterattribute, overrides the Onexception method, the code is as followspublic class Basehandleerrorattribute:filterattribute, iexceptionfilter {public void onexception (Exceptioncon Text filtercontext) {if (filtercontext.exceptionhandled = = True) {http
, Iexceptionfilter{public void Onexception (Exceptioncontext filtercontext){if (filtercontext.exceptionhandled = = True){HttpException Httpexce = filtercontext.exception as HttpException;if (Httpexce.gethttpcode () = 500)//Why special emphasis 500 because MVC handles HttpException, if 500 will automatically set its exceptionhandled to True, Then we can't catch th
example, in the class [yii \ db \ Command], yii \ db \ Command: execute and yii \ db \ Command :: the query method uses the class name class to record the relevant log information, so they all match the pattern yii \ db *
Similarly, if [[yii \ log \ Target: categories | categories] is not specified, the log information of each category will be processed.In addition to setting a whitelist by using the [[yii \ log \ Target: categories | categories] attribute, you can also use [yii \ log \ Target
Obviously, the code is not difficult to understand, but very cumbersome, always do not have to do such a large chunk of code copy and paste it every time.Please note that the httpexception of type judgment is
Import retrofit2.adapter.rxjava.HttpException;
So we need to rely on:
Compile ' com.squareup.retrofit2:adapter-rxjava:2.1.0 '
Second, neterrorutil packaging
1. First, we create a Throwable management class
public class Exceptionhandle {priv
) --> No element found
Activeserverpages, asp0126 (0x80004005) --> the inclusion file cannot be found.
Microsoft oledbproviderforodbcdrivers (0x80040e14) --> SQL statement error (incorrect field name or Data Type mismatch)
Microsoft oledbproviderforodbcdrivers (0x80040e07) --> SQL statement error (the type of the field to be inserted or updated does not match the data type of the variable)
Microsoft oledbproviderforodbcdrivers (0x80040e57) --> SQL sta
(0x80004005)
The Include file ' xxx.asp ' could not be found.
Cause: As the error hint says, there is no such inclusion.
Solution: If you are sure that you have this file, then your path is wrong, for example, in fact, his path relative to the site root directory should be inc/xxx.asp, then include inside should write inc/xxx.asp, not just xxx.asp. Attached: include:
Error type:
Microsoft OLE DB Provider for ODBC drivers (
.
Resolution: 1 If you don't believe that the search result is empty, then you should consider whether your SQL statement is correct, 2 if it is, then you should add a statement such as "if Rs.eof then" or "do as not rs.eof" to handle the EOF situation.
Error type:
(0x80020009)
An accident occurred.
Cause: It's also when you use SQL to look up database records, the lookup results are empty, and you call the RS ("AA") records in the following code
Solution: either ibid, plus rs.eof judgment and
Write a program named test. sh with the start and stop parameters to execute test. shstart to execute the code of the start content. execute test. shstop to execute the code of the stop content #! Binbaslif [$1 start] then echodostart co parses the following XML:
77f265bb46de068e78f35afbadec62af
3
0
1195224593
3436952795
5 xtaJR
3436952795
0
0
5 xtaJR
Ma Yan
example, in the class [yii \ db \ Command], yii \ db \ Command: execute and yii \ db \ Command :: the query method uses the class name class to record the relevant log information, so they all match the pattern yii \ db *
Similarly, if [[yii \ log \ Target: categories | categories] is not specified, the log information of each category will be processed.In addition to setting a whitelist by using the [[yii \ log \ Target: categories | categories] attribute, you can also use [yii \ log \ Target
created.
Public class addnumbersimpl implements provider {@ ResourceProtected webservicecontext wscontext;
Public source invoke (Source request ){Try {
} Catch (exception e ){E. printstacktrace ();Throw new httpexception (500 );}}}
In this example, the addnumbers Web Service extracts the numbers to be added from the URL path or HTTP request to obtain the request. The request string and path string can be obtained from messagecontext and webservicecon
Error collection Reference document in ASP Tutorial development applicationError type:Adodb.field (0X800A0BCD)One of the BOF or EOF is "true", or the current record has been deleted, and the required operation requires a current record.Reason: When you use SQL to find a database tutorial record, the lookup result is empty, and you do not have an empty record of the situation to deal with.Resolution: 1 If you don't believe that the search result is empty, then you should consider whether your SQL
method. Enter the address to be connected in the GET method constructor. GetMethod will automatically process the forwarding process. If you want to remove the automatic forwarding process, you can call setFollowRedirects (false ).GetMethod getMethod = new GetMethod (http://www.ibm.com /);Call the executeMethod method of the Instance httpClient to execute getMethod. Because it is a program executed on the network, when running the executeMethod method, you need to handle two exceptions:
composed of a number appended to the name of the category. If the classification matches exactly the character before the number of the matching pattern, then this category finds the corresponding matching value. For example, in the class [[Yii\db\command]], the Yii\db\command::execute and Yii \db\command:: The Query method uses the class name class to record the relevant log information, then they all match the pattern yii\db*
Similarly, if we do not specify [[Yii\log\target::categories|categ
default use of HandleError control properties;This allows you to use the system default error page in MVC4;Third, custom error pageSometimes we want to use a custom error page, what to do with that, page flipping other Daniel writes blog, see this way, the custom attribute class inherits Fileterattribute, overrides the Onexception method, the code is as follows Public classBasehandleerrorattribute:filterattribute, Iexceptionfilter { Public voidonexception (Exceptioncontext filtercontext) {if(fi
, will he process the message. The matching pattern here is composed of a number appended to the name of the category. If the classification matches exactly the character of the matching pattern, then the corresponding match is found in this category. For example, in the class [[Yii\db\command]] Yii\db\command::execute and Yii \db\command:: The Query method uses the class name class to record related log information, then they all match the pattern yii\db*
Similarly, if we do not specify [[Yii\l
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.