Maybe You should change user for ccservice Windows Service? Or try to run it normally under system account, but check checkbox allowing service to interact with desktop? As I remember sometimes ccnet console app interacts with service instead of doing tasks truly in command prompt, thus You were still using service app.
But I may be wrong, then I don't know what else could You try. If I were You, I would test the settings in "Services Manager/ ccservice/Properties/Log on/" first. I tried it some time ago when I was trying to include some automatic testing tools to build process, which runned my application and did some interface tests. Hope it helps. Sincerely, Bartek On 2 Gru, 08:44, Bryan Chen <[email protected]> wrote: > Hi there, > > As part of my msbuild project, there are some tasks need to call a 3D > tool which opens and converts files listed in a script passed to it. > > Now I'm trying to trigger this task by ccnet 1.6.7981.1, and it failed > because "GetConsoleWindow() returned NULL". > I've tried to run ccnet console application instead of running it as a > windows service, it still couldn't get the window handle. > To call msbuild in <msbuild task> or to call it via batch file in > <executable task> won't make the result any different. > > Is there something special about the execution environment setting > could help me on this case? > > BR > Bryan
