VSTO outlook 2007 addin installation problem

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top