views:

21

answers:

1

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.

A: 

Does the user account that the service runs under have appropriate access permissions to the file and its path?

dugbugs
yes. The user is administrator.
acadia