I have two project in one solution.
1st project is WCF
2nd project is Class Library
All the Logic of Service is in Class Library.
I wan to read xml file which is include in WCF project from Class Library project.
My code in class library is
XmlDocument XmlDocParent = new XmlDocument();
XmlDocParent.Load("Test.xml");
I also try with below approach
XmlDocParent.Load("~/Test.xml");
XmlDocParent.Load("../Test.xml");
But its giving me error as
File Not found exception.
Could not find file 'C:\Program Files (x86)\IIS Express\Test.xml'.