Let me explain details about what iam trying to do. I have created window service using wyBuild Automatic updater source code to get the updates from server at boot. Now my requirement is updates should download from server to local machine(i keep updates manually in to server). So in this process after running windows when downloading updates connecting to server is problem. Here i dont have Username and password for server. Iam placeing .wys files and .wyu files in server. Below code using in window service.
auBackend = new AutomaticUpdaterBackend
{
GUID = "cbaae9eb-c4fc-4795-bef8-e1db9e3b6c08",
UpdateType = UpdateType.Automatic,
ServiceName = this.ServiceName
};
Below method is using for creating text file in C drive. Here i have changed path to server. Then also having same Error trying to save file
using (StreamWriter outfile = new StreamWriter(@"C:\NETWinService.txt", append))
{
outfile.WriteLine(message);
}