tags:

views:

251

answers:

1

Hi folks, i have a simple xml file in a wcf service that i am trying to load using Xelement.Load("sample.xml") which is not reading the file. What's the right way of doing this?

The service is supposed to return an xml to an asp.net application.

TIA

A: 

I got it to work by providing the ABSOLUTE path as the parameter to the XElement.Load() method, RELATIVE path would be better though.

SoftwareGeek