Hello, I have a .net Windows Service developed in VB.net. I have a settings file in the root directory called Connections.XML and I am setting the basedirectory as below
System.IO.Directory.SetCurrentDirectory(System.AppDomain.CurrentDomain.BaseDirectory)
Dim _path As String = System.AppDomain.CurrentDomain.BaseDirectory()
Dim file As String = Path.Combine(_path, "Connections.xml")
When I schedule the service this is working absolutely fine in my Windows XP machine. But when I installed the same service in our development server (Windows 2003 64 bit Server) for some reason it is not able to locate this file.
Is there anything I am missing? Appreciate if you can help me out with this.
Thanks and have a good one.