0
Reply

UNC Path Problem in Windows Services in .NET

Deepz

Deepz

Jun 9 2006 4:35 AM
4.1k

Hi Guyz,

             I have an EXE written in C#, which creates a PDF document through a Crystal Report. During the process, it creates directories, using the UNC Path provided by the user, on another server on the intranet.

Now I have created a Windows service in C# which loads this EXE in background through the Process class. Here the problem arises. As now this EXE works in the context of the windows service, it fails to locate the UNC path. I mean to say that the EXE, running through windows service, is not supporting the UNC path supplied to it.

 

Can anyone provide a work around for this problem

Any suggestions or help will be appreciated.