Scene reproduction

ASP.NET Core Lower integration log4net when , The error is as follows :

log4net:ERROR ConfigureFromXml called with null 'element' parameter

terms of settlement

After a lap , Found to be log4net.config The problem of

<!-- log4net.config -->
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<log4net>
<!-- more... -->
<log4net>
<configuration>

Get rid of <configuration> node , Give Way <log4net> As the outermost node .

<!-- log4net.config -->
<?xml version="1.0" encoding="utf-8"?>
<log4net>
<!-- more... -->
<log4net>

follow-up

however Visual Studio Little brother will throw out a wave line and warning , It's annoying , Why? ?

Reference resources

log4net:ERROR ConfigureFromXml called with null 'element' parameter More articles about

  1. operation MyBatis trigger Error setting null for parameter #X with JdbcType OTHER . Invalid column type

    Reuse MyBatis operation Oracle When , Pass in null Error caused by value Abnormal information : org.springframework.jdbc.UncategorizedSQLException: Error s ...

  2. Error setting null for parameter #10 with JdbcType

    turn : Error setting null for parameter #10 with JdbcType OTHER . 2014 year 02 month 23 Japan 11:00:33 Thick product Read the number 58535   my ...

  3. Another invalid column type error Error setting null for parameter #7 with JdbcType NULL . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLExcept

    Errors in updating data The update code is as follows : <update id="modify" parameterType="Standard"> update ...

  4. HiveServer2 Of jdbc Way to create udf Modification of (add jar Better not to use ), Otherwise, it will cause an exception : java.sql.SQLException: Error while processing statement: null

    since Hive0.13.0 Start , Use HiveServer2 Of jdbc Way to create udf The method of the temporary function of is given by : ADD JAR ${HiveUDFJarPath} create TEMPORARY funct ...

  5. hive Partition causes FAILED: Hive Internal Error: java.lang.NullPointerException(null)

    I wrote one hive sql , There are some conditions  dt>=20150101 and dt<=20150228 Such conditions , It turns out there's no problem with execution , Throw it out today FAILED: Hive Internal ...

  6. VS error The complete (error C2664: &#39;CWnd::MessageBoxW&#39; : cannot convert parameter 1 from &#39;char *&#39; to &#39;LPCTSTR&#39; Solutions for )

    I use it VS2005, Compiling MFC The following error was encountered in : error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'char ...

  7. log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [File] to set object on [TF.Log.FileAppender]

    Uncomfortable , Xianggu mushroom . About two hours of research , Search a lot of information, there is no perfect answer , And then all of a sudden, my brain just flashed , To figure out what's going on . log4net:ERROR XmlHierarchyConfigurator: Canno ...

  8. uiautomatorviewer Check the element to report an error : Error taking device screenshot: null reason

    Use uiautomatorviewer see android Some page elements , There is an error Error obtaining UI hierarchy  Reason: Error taking device sc ...

  9. Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty Report errors

    Acquisition encountered in the project https Data interface data ,Unexpected error: java.security.InvalidAlgorithmParameterException: the trustA ...

Random recommendation

  1. Use localResizeIMG Wechat compresses and uploads images, and Android reports an error weixin://preInjectJSBridge/fail

    Uploading pictures on wechat is a frequently used function , First of all, it uses :localResizeIMG Image compression upload . It still feels good to use , Basically, all the functions can be satisfied . But recently I encountered a strange problem in developing this function , Namely iphone|ip ...

  2. Failed to remove from assembly “System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” Load type in “System.ServiceModel.Activation.HttpModule”.

    ********************************* Train of thought 1 ( It's also a popular solution on the Internet ) reason : That's because it was installed first .NET Framework , And then it started .NET Fra ...

  3. Sqli-labs less 56

    Less-56 And less54.55 The form is consistent , We focus on sql sentence , $sql="SELECT * FROM security.users WHERE id=('$id') LIMIT 0 ...

  4. Document and directory umask function

    The content of this blog post is extracted from <UNIX Environment advanced programming >( The second edition ), It is only used for personal learning record . For reference to this book :http://www.apuebook.com/. umask Function to set the file mode for the process and create a mask word , and ...

  5. shell Medium for、while、until

    for var in list do commands done In each iteration , Variable var Will contain the current value in the list , The first iteration uses the first value in the list , The second iteration uses the second value . stay do and done in ,$var ...

  6. Resin Document reading notes

    The corresponding version of the reading document is Resin4.0, And basically focus on Standard Features of the version . 1.Resin Can be registered as a service : To install the service, use C:/> resin-3. ...

  7. (91)Wangdao.com Day 24 _Mutation Observer API Mutation monitor

    Mutation Observer API Mutation monitoring interface Used to monitor DOM change . DOM Any changes , Let's say I add or subtract nodes . Change of attribute . Changes in text content , This API Both can be notified Conceptually , It's very close to the event , ...

  8. 18-09-27 pandas Study 02

    How to learn systematically python Database about data analysis and mining in ? What is systematic learning ? Systematic learning is just a framework system , And then keep filling in the knowledge to see , Keep updating the iterative process . Pandas,numpy,scipy,mat ...

  9. Linux Next utf-8 BOM Check and delete (65279 Error resolution )

    Java The code is converting to UTF-8 After the coding ,Eclipse There's no problem compiling and running , But with Maven Compile time , Throw illegal characters 65278 error . The reason lies in , After conversion, the header of the file has BOM Information , and Maven I won't support it , Delete the header of the file BO ...

  10. 【CSU 1803】2016 ( mathematics )

    Description Give a positive integer n and m, Count pairs of positive integers that satisfy the following conditions (a,b) The number of : 1. 1≤a≤n,1≤b≤m; 2. a×b yes 2016 Multiple . Input The input contains no more than 30 ...