Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / March 2007

Tip: Looking for answers? Try searching our database.

Cannot setup security policy error - invalid solutionCodeGroupName

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rafael - 21 Mar 2007 20:02 GMT
All,

Trying to follow the article below to create a test Outlook Addin but I get
the following message when I try to install the solution:

Cannot setup security policy.  The specified solution code group name is not
valid.

Here is what I have for the custom action
/assemblyName="OutlookAddin.dll" /targetDir="[TARGETDIR]\"
  /solutionCodeGroupName="SomeName.OutlookAddin"
  /solutionCodeGroupDescription="Code group for OutlookAddin"
  /assemblyCodeGroupName="OutlookAddin"
  /assemblyCodeGroupDescription="Code group for OutlookAddin"
  /allUsers=[ALLUSERS]

On this page:
http://msdn2.microsoft.com/en-us/library/aa537179(office.11).aspx
Following this section: Walkthrough: Enhancing the Outlook Add-in Setup
Project

Any thought on how to enter a correct solutionCodeGroupName?

Thank you,

Rafael
Ken Slovak - [MVP - Outlook] - 22 Mar 2007 14:29 GMT
You need to enter that all in one line and have each argument separated by a
space from the next argument. You want the spaces before each "/" character,
that's not clear from that article. You also want to match the name used for
solutionCodeGroupName in all 3 callback custom actions you implement.

See if that helps.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> All,
>
[quoted text clipped - 22 lines]
>
> Rafael
Rafael - 22 Mar 2007 16:54 GMT
That gets me further along but ran into the following error:

Exception occurred while initializing the installation:
System.IO.FileNotFoundException: Could not load file assembly
'file:///c:\Windows\System32\group' or on of its dependencies. The System
cannot find the file specified..

Could not find file 'C:\Program
Files\MYCompany\OutlookAddin\Security.InstallState'

Any thoughts?

Rafael

> You need to enter that all in one line and have each argument separated by
> a space from the next argument. You want the spaces before each "/"
[quoted text clipped - 30 lines]
>>
>> Rafael
Ken Slovak - [MVP - Outlook] - 22 Mar 2007 20:55 GMT
No idea, I've never seen that. It looks like it might be due to a typo
somewhere.

Did you check everything you typed into the custom actions to ensure there
are no typos? If you modified the MyCompanyName parts or addin name parts
did you change things in other places in the project to be consistent? Did
you add the primary output of SetSecurity to the Setup project? Is it named
SetSecurity and not Security?

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> That gets me further along but ran into the following error:
>
[quoted text clipped - 9 lines]
>
> Rafael
Rafael - 23 Mar 2007 13:47 GMT
hmmm, where is the MyCompanyName stored within my project? Also, a silly
question, my project is in VB and I notice the SetSecurity project is in C,
is this a problem?

Thanks,

Rafael

> No idea, I've never seen that. It looks like it might be due to a typo
> somewhere.
[quoted text clipped - 18 lines]
>>
>> Rafael
HockeyFan - 23 Mar 2007 22:23 GMT
It's C#.  I honestly don't know if it's a problem within the same
solution or not.

As far as MyCompanyName within the project, I had mine within the
customactionsdata for SetSecurity:

/assemblyName="Closed Loans Report Queue.dll" /targetDir="[TARGETDIR]
\" /solutionCodeGroupName="XYZ Company.Closed Loans Report" /
solutionCodeGroupDescription="Code group for Closed Loans Report" /
assemblyCodeGroupName="Closed Loans Report" /
assemblyCodeGroupDescription="Code group for Closed Loans Report" /
allUsers=[ALLUSERS]

Then selecting the main project and going to the Project option on the
toolbar:
Properties -> Application.
click the "Assembly Information" button.  Within there, you can
specify the Company Name as well as the Product Name and other info.

I don't know if this helps or not, but I figured I'd try to help.
Hopefully, maybe someone will give me an answer on one of my open
inquiries.
Rafael - 23 Mar 2007 23:16 GMT
Hey thanks for the reply.  I will revisit these settings and see where it
takes me.  It's a bit frustrating to see so many people having almost the
same issues and no real solution to the problem.

It'll be nice to see some example in VB on how to grant permission to the
assemblies as well.

Regards,

Rafael

> It's C#.  I honestly don't know if it's a problem within the same
> solution or not.
[quoted text clipped - 18 lines]
> Hopefully, maybe someone will give me an answer on one of my open
> inquiries.
Ken Slovak - [MVP - Outlook] - 25 Mar 2007 21:50 GMT
It makes no difference if SetSecurity is in C# in a VB project, as long as
you have C# installed so it can compile. The examples in the walkthroughs
work as well in either language. As long as you follow directions and create
the installer custom actions as directed it will work.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hey thanks for the reply.  I will revisit these settings and see where it
> takes me.  It's a bit frustrating to see so many people having almost the
[quoted text clipped - 6 lines]
>
> Rafael
Rafael - 26 Mar 2007 14:50 GMT
Well, I've been able to get passed this issue now but some how my project
lost all registry key entries and now just have:
HKCU\Software\Manufacturer.

Any idea on how to recreate these keys? Don't think recreating them manually
would be wise as I am not sure what GUID to assign.

Thanks,

Rafael

> It makes no difference if SetSecurity is in C# in a VB project, as long as
> you have C# installed so it can compile. The examples in the walkthroughs
[quoted text clipped - 11 lines]
>>
>> Rafael
Ken Slovak - [MVP - Outlook] - 27 Mar 2007 21:25 GMT
You can always create a new GUID and use it where the original one was used.
Or you can create a new addin using the VSTO wizard and copy your existing
code to that or see what entries are created in that and copy them over,
with GUID adjustments where needed.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Well, I've been able to get passed this issue now but some how my project
> lost all registry key entries and now just have:
[quoted text clipped - 23 lines]
>>>
>>> Rafael

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.