Problem loading Outlok Add-In

  • Thread starter Paulo Braz Figueiredo
  • Start date
P

Paulo Braz Figueiredo

Hy,

I’m developing an Outlook 2003 add-in with the help of VSTO 2005. I’m
working in an Installer for de add-in using a Setup project.
When I checkout “Trust Assemblies Location†in project proprieties I get an
error:

System.IO.FileLoadException: Could not load file or assembly 'Outlook Addin,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=d5d62228095c47a9' or one of
its dependencies. Failed to grant permission to execute. (Exception from
HRESULT: 0x80131418)

All prerequisites are in place and I programmed the security policy with the
code in http://weblogs.asp.net/mnissen/articles/427490.aspx.

I’m having serious problems installing add-in in others machines, others
than developing machine.

If anybody has any clue about what’s happening with the installation I would
be appreciated about it. I need to put this thing working briefly!

Paulo Figueiredo.
 
P

Paulo Braz Figueiredo

Hy Ken Slovak,

what custom actions? I’m adding the primary output of the main project. It’s
enough?

Paulo Figueiredo.
 
K

Ken Slovak - [MVP - Outlook]

You also need to add custom actions to your setup project and make sure your
code assembly is signed and has strong naming. You also need to add the
primary output of the set security project to the setup project.

See the 2-part article starting at
http://msdn.microsoft.com/office/de...a/html/OfficeVSTOWindowsInstallerOverview.asp
for more information.

One of the custom actions listed in part 2 of that article has more than one
line shown. All the lines go in the one custom action property, separated by
a space before each "/" separator.
 
P

Paulo Braz Figueiredo

I was trying to use SetSecurity Project but it doesn’t compile! Maybe I’m
forgetting some reference, I don’t know.
So I’m trying to use a Installer.cs in the main project. I’m following
information from
http://blog.jausovec.info/blogs/petersblog/articles/ovstoaddin1.aspx.

As custom actions of the Setup project I have only the setting of primary
output of the main project. Is the location of manifest being saved in the
registry? Can installer grant trust to the assembly in this way?

Thanks for the help,

Paulo Figueiredo.
 
P

Paulo Braz Figueiredo

I already build the SetSecurity project, it was a wrong version error.
Now when I run the installer appends an error:

Cannot set the security policy. -> Cannot create the security code group
‘AddIn’-> System cannot find the file specified (Exception from HRESULT:
0x80070002)

Do you know what’s is the referenced file?

Thanks in advance,

Paulo Figueiredo.
 
K

Ken Slovak - [MVP - Outlook]

All I know about it is what's in that article I pointed you to. If you're
having problems compiling the set security project or other things I'd post
in the VSTO online forum available at the MSDN Web site (not the newsgroup),
various members of the VSTO team answer questions there and would give you a
better answer than I could.
 

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