Click here to Skip to main content
15,896,118 members
Articles / WCF

Could not find xml file

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
22 Dec 2012CPOL 2K  
I'm studing wcf. In my test project Service read data from xml file and then send it to client. Data is array of type "myClass".Service class has a function private XDocument GetDB() { string filePath = "SampleDB.xml" return...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
22 Dec 2012db7uk
You need to specify the path! by asking for just the file, the site will not work out where it is for you. Specify the path and you will be ok.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions