VSTO outlook 2007 addin installation problem

  • Thread starter Thread starter Nagaraj
  • Start date Start date
N

Nagaraj

Hi,

I am developing outlook 2007 VSTO plugin and using SetSecurity project also.
In SetSecurity.cs file
I have the following line.

try
{
// The solutionCodeGroupName must be a unique name;
otherwise, the method might delete wrong code group.

CaspolSecurityPolicyCreator.RemoveSecurityPolicy(allUsers,
solutionCodeGroupName);
}
catch (Exception e)
{
MessageBox.Show("StackTrace " + e.StackTrace);
}

While executing above line

I am getting error.

StackTrace at
CustomActions.CaspolSecurityPolicyCreator.RunCaspolCommand(String
frameworkFolder, String arguments)

at CustomActions.CaspolSecurityPolicyCreator.RemoveSecurityPolicy(Boolean
machinePolicyLevel, String solutionCodeGroupName)

at CustomActions.SetSecurity.Install(IDictionary stateSaver)

and I am getting error Code 2869.
The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2869.

The installer is rolling back.

Before AddSecurityPolicy, RemoveSecurityPolicy with the
solutionCodeGroupName is failing.
Can anyone tell me how to fix this problem.

Thanks in advance.
 
Back
Top