This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
Issue
The following error appears when trying to deploy using MMC Package and Deployment tool:
"System.Reflection.TargetInvocationException: C:\ProgramData\Temp\c4e8b8003ae64541b933e26a5880869c\Deployment\K2Project3.msbuild(82,5) : error : Notification Service: Task Error: Primary Credentials Not Authenticated"
Symptoms
This issue could be caused by an incorrect value for the "ServiceObject Server" and "SmartObject Server" Environment Fields.
Check if the connection string is missing the "IsPrimaryLogin=TRUE" parameter/argument.

Read more about understanding Environment Libraries here.
Troubleshooting Steps
Correcting the value of the connection string for those environment fields will resolve the issue.