Windows service with app.config file

i have a windows service with config file...
i have a path in config file which my windows service is suppose to read and do the work.

here is my config file... i dont know why it is not working.

 <!-- <add key="FilesPath" value="C:\DestinationFolder\" />
        <add key="ErrorFiles" value="C:\DestinationFolder\ErrorFiles\" />-->

        <add key="FilesPath" value="\\\c$\SourceFiles\" />
        <add key="ErrorFiles" value="\\\d$\DestinationFiles\" />

above i have given both the path's the one which uses C:\Destination works fine as it is on my computer (commented out)
but when i use the server path it doesnot work.
NOTE: I CAN ACCESS "\\\c$\SourceFiles\" THIS PATH by goin in START/RUN/and typing the path...
I am saying this is not working because when i change the path to "C:\DestinationFolder\" my windows Services works like a charm.

Please help
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hmm.. try doing this.. put the code in try catch block and print the exception. you will know abt the error properly.

all the services run under some default user account in case of windows 2003 its is NetworkService. So my probable guess is  there is permission issue to that folder. one of easy way to solve this problem will be to run service under your user account.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.