I have a strange problem .I have a WCF service hosted on IIS7..The service on IIS points to my deployment path D:\myService.My service takes data from client applications and save into Xml file which is available on path D:\MyService\App_Data. I also read current Data from Xml file through my service in my client application UI.
When I update xml data from client,it updates and reads back updated data.I also checked through WCF client and found updated data is there on service xml file .But when I open xml file in D:\MyService\App_Data path,I cant see updated data.Where is my updated data got saved?
I try restarting client ,but still it shows my updates reading through service but the xml file has no changes.
my service behavior is
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
public class MyService: IMyService
{
and I use xml path in service code as
private readonly string mXmlPath = Path.Combine(HostingEnvironment.ApplicationPhysicalPath, "App_Data",
"myDb.xml");