Nevin Mathai
Nevin Mathai

Reputation: 2396

Access an XML file in /App_Data folder of my WCF service?

How do I access an XML file I added to /App_Data folder in my WCF Service?

Upvotes: 1

Views: 6701

Answers (1)

Boris Mitchenko
Boris Mitchenko

Reputation: 880

string fileName = Path.Combine(HostingEnvironment.ApplicationPhysicalPath, "App_Data", "data.xml");

Upvotes: 4

Related Questions