We recently upgraded our job server to Windows Server 2008. We have jobs we run manually in a folder (c:\Custom Programs\). Some programs are console programs others are have a gui. This one program has a gui. It also has a progress bar that shows the progress of the job when you click the go button. Of course it spawns a thread to do the processing. This thread creates a log file to write errors and other things too.

The problem is when the program goes to create the log file an access not authorized error is thrown. I checked the permission on the folder. All users are allowed to create/edit/append/execute. Pretty much everything except take ownership. Also, there's nothing that denies anything. So I see no reason why this isn't working.

We can get this to work by using the run as administrator option when we first run the program. However, we don't view this as unacceptable solution. My only thought is the spawned thread isn't getting the same permission set as the program. Am I correct or does something think it's something else.

This is the code I use to spawn the thread.

Code:
       Dim newThread As New Thread(AddressOf obj.DoProcessing)

        newThread.Start()
Can someone help?

Thanks,
Scott