A .NET Framework error occurred during execution of user-defined routine or aggregate "deploy_project_internal": System.ComponentModel.Win32Exception: A required privilege is not held by the client.
I ran across this issue in one of my newly set up Sql 2012 Servers when I tried to deploy a project to the SSIS Catalog using the Project Deployment Model. I set Sql 2012 up in 3-4 of my servers and never encountered this before. I was using my same domain account across all the Servers. I tried to grab a profiler but could not find any calls to the system stored procedures used for deployment, so my guess was the call is not even reaching to Sql.
After spending a few hours, I was actually able to get past the problem even though I’m not sure if I found out the exact cause! In this case, I’m pretty sure that SSIS is doing a CreateProcessAsUser() using my account credentials, and the SQL/Agent service account is not involved. The SSIS Catalog only accepts Windows Auth (because it does account impersonation during deployment, validation and execution).
Since the deployment process is making call to an executable residing in the file system (outside of Sql), I suspected that the Sql Server Service Account would come into question. I changed the Sql Server Service Account from built in default “Nt Service\MSSQLSERVER” (New account introduced in Denali) to another account with admin rights on the system and VOILA!! it started working.
This seems to be an issue specific to the Sql Service account permissions; however I could not reproduce the problem in my other machines though my service runs as “Nt Service\MSSQLSERVER”. I believe it has something to do with the group policy. SSIS is launching the external process to do the deployment (ISServerExec) in much the same way that SQL Agent runs its jobs. In similar SQL Agent cases, it looked like service account requires the “Act as part of the operating system” account policy.
Author : Debarchan(MSFT) SQL Developer Engineer, Microsoft
Reviewed by : Snehadeep(MSFT), SQL Developer Technical Lead , Microsoft
I havent restarted the SQL service after changing the settings and this didnt resolve my issue... Do I need to restart the service too ? Please be clear. Thanks !
Please specify the changes performed by you.
Did you try changing the SQL Server service account to run under any local admin account. Any changes to the service account will automatically request for the service restart.
or if you talking about “Act as part of the operating system” account policy, then this change wouldn't require any restart of the service.
Please let us know about the changes performed by you.
About this change :
-- talking about “Act as part of the operating system” account policy, then this change wouldn't require any restart of the service.
It definitely needed a machine reboot ! and it fixed my issue.
I went back and did my own research work and learnt that Act as a part of the operating system doesn't get initialized unless the OS is rebooted [as per Mark Russ ( Windows Guru )].
Please make the necessary change to your article , so that it will help others like me ( and they don't end up wasting their time ).
Max,
Thanks, will update the article accordingly.
Any updates on what causes this? And if there is a hotifx available? I might be able to fix the problem, but it might return at any moment as well... Thanks in advance!
Also, these rights/policy changes didn't work for me. I had to repair my SQL Server install and then it worked again.
...and then it stopped working again. Have done the repair again and that fixed it, but I'm afraid the problem will re-appear after the next reboot :-/
Jorg,
This seems to be lingering. Is there a way you could open a support request with Microsoft PSS to investigate this further?