Log4Net CF3.5 Configuration error

HugoHiasl
HugoHiasl used Ask the Experts™
on
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);

Open in new window


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

Open in new window


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

Open in new window


What did I miss?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Aaron JabamaniTechnical Architect
Commented:
Does your project has reference to DLL's System and System.XML ? how are u compiling this project?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial