Products

Solutions

Resources

Partners

Community

Blog

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [locationInfo] to set object on [log4nelog4net:ERROR XmlHierarchyConfigurator: Cannot find Property [locationInfo] to set object on [log4ne
Previous
 
Next
New Post
10/23/2017 1:23 PM
 
Dear DotNetNuke 8.0.3 Pros,

Please help.

I am getting this error in my logs... 

log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [locationInfo] to set object on [log4net.Layout.PatternLayout] 

...so I changed these file(s)... 

C:\inetpub\wwwroot\dotnetnuke\DotNetNuke.log4net.config 

C:\inetpub\wwwroot\dotnetnuke\Config\DotNetNuke.log4net.config 

C:\inetpub\wwwroot\dotnetnuke\Config\InstallLog.Config 

..from this... 

<locationInfo value="true" /> 

...to this... 

<locationInfo value="false" /> 

...and restested and the error still exists... 

...my config files look like this... 

<?xml version="1.0" encoding="utf-8" ?> <log4net> <appender name="RollingFile" type="log4net.Appender.RollingFileAppender"> <file value="Portals/_default/Logs/" /> <datePattern value="yyyy.MM.dd'.log.resources'" /> <rollingStyle value="Date" /> <staticLogFileName value="false" /> <appendToFile value="true" /> <maximumFileSize value="10MB" /> <maxSizeRollBackups value="5" /> <lockingModel type="log4net.Appender.FileAppender+MinimalLock"/> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date [%property{log4net:HostName}][Thread:%thread][%level] %logger - %message%newline" /> <locationInfo value="false" /> </layout> </appender> <root> <level value="Error" /> <appender-ref ref="RollingFile" /> </root> </log4net> 

...so what do I need to do to get rid of that error? 

Please advise. 

Thanks. 

-- Mark Kamoski

 
New Post
11/9/2017 3:20 PM
 
All,

FYI, according to the following thread on the log4net forum...

http://apache-logging.6191.n7.nabble.com/log4net-ERROR-XmlHierarchyConfigurator-Cannot-find-Property-locationInfo-to-set-object-on-log4net-La-td76050.html

...it seems like this fix for this locationInfo issue is the following....

Simply remove node from configuration.

Location is property of XmlLayoutBase class, but PatternLayout doesn't inherit from this class.

....so I tried that and it seems to have worked.

HTH.

Thanks.

-- Mark Kamoski

 
New Post
11/12/2017 12:53 AM
 
did you modify any of the log config files?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/15/2017 6:46 PM
 

Yes, I removed the locationInfo node from every config where it existed.

And, so far, it seems the logs no longer have that error.

Thanks.

-- Mark Kamoski
 
New Post
11/16/2017 12:00 AM
 
maybe you should use default version of the config file.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [locationInfo] to set object on [log4nelog4net:ERROR XmlHierarchyConfigurator: Cannot find Property [locationInfo] to set object on [log4ne


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out