troubleshooting Question

Log4Net CF3.5 Configuration error

Avatar of HugoHiasl
HugoHiasl asked on
.NET ProgrammingC#
2 Comments2 Solutions1440 ViewsLast Modified:
Hi,

I want to use log4net in a Compact Framework 3.5 project on a smart device. I added the log4net.dll and configured it to use an XML file for configuration.

This is done by:
            FileInfo fi = new FileInfo("LogConfig.xml");
            XmlConfigurator.Configure(fi);

The IDE underlines the word XmlConfigurator and brings up the following two errors:

Error	29	The type 'System.Uri' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.	C:\VS\3.5\YADL\YADL\YADL\FrmMain.cs	44	13	YADL

Error	30	The type 'System.Xml.XmlElement' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.	C:\VS\3.5\YADL\YADL\YADL\FrmMain.cs	44	13	YADL

Those log4net related using's are there:
using log4net;
using log4net.Config;
using System.IO;
using System.Xml;

What did I miss?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros