[quote name='JamesMP' post='1249' date='December 13 2008, 02:38 PM']Hi,
I have setup a C# web service to call uxordre.exe . My call is "[b]d:\universe\conupr\exec\uxordre.exe UPR=JOB_ME501 MU=W_LEGASIS[/b]". When I execute the above-mentioned from the DOS command prompt , it works. However, when my web service tries the same call, it receives the message: "Access Denied - Insufficient Priviliges". I noticed that when the webservice is excuting other tasks , the Windows task manager indicates the user as NETWORK SERVICE .The web service can run other executables on the machine without any problems. I have set the security permissions on the Dollar Universe folder for the user "NETWORK SERVICE" to full control. Dollar Universe has been set up to use the user "production". I have tried to make the webservice use impersonation of the "production" account to no avail. Someone suggested that I must call uxsetenv.bat, then call uxordre.exe, but it had no effect. Is there a setting that I must set to allow the account "NETWORK SERVICE" to run uxordre. My platform is Windows 2003 Server R2 Enterprise Edition Service Pack 2, Dollar Universe 2.4. Thanks
James[/quote]
Hi everyone,
I have resolved the issue. Here's the fix I did to use a logged-in username, "Network Service" which contains spaces:
First step was to ensure that the user "Network Service" has appropriate permissions(execute/write) on the Dollar Universe folders. As most of you are aware, on a Windows system, where the file system is NTFS, you right click on the file/folder, select properties, and then on the security tab.
Second, I had to correctly add an entry for the "Network Service" logged-in user in the %$U%/conupr/mgr/useralias.txt file.
For example,
[color="#006400"]_TAB_[/color] = tab character
[color="#9932cc"]_SPC_[/color] = space character
<Domain>[color="#C0C0C0"]___________[/color]<Log in user>[color="#C0C0C0"]_____________[/color]<$U user>
[b]NT_AUTHORITY[/b][color="#006400"]_TAB_[/color][b]Network[/b][color="#9932cc"]_SPC_[/color][b]Service[/b][color="#006400"]_TAB_[/color][b]Production[/b]
Once again,thanks to all those who replied.
James