rarerules

I have a VSTO 2005 SE project for Excel which relies on third party dlls. They all are strong-named, and work as expected on my development machine.

However, when I deploy my project, I can't seem to get them to be trusted on client machines. I am using the SetSecurity project provided in the relevant KB article (http://www.microsoft.com/downloads/details.aspx familyid=6991E869-8D5B-45F4-91E7-B527BD236F4C&displaylang=en) for granting full trust to the main DLL. Is there a way of modifying SetSecurity to allow for all DLLs in the project

How can one deploy a project with multiple DLLs and have them all be granted full trust

Thanks for the help.




Re: Visual Studio Tools for Office Using SetSecurity to Deploy Third Party DLLs

X4U

Hello rarerules,

you have to add a custom action in your setup project for each dll that you deplay with your project.

One action in install, one in uninstall action.

Hope this helps,

greets, Helmut






Re: Visual Studio Tools for Office Using SetSecurity to Deploy Third Party DLLs

rarerules

Sorry for the delayed response...

I have added a custom action to my setup project for each DLL I am distributing, but when building the solution, I get the following error message:

"Two or more objects have the same target location ('[targetdir]\setsecurity.dll')"

Clearly, the build process is trying to generate two instances of setsecurity.dll in the same location...which is throwing this error.

Any ideas on how to fix this




Re: Visual Studio Tools for Office Using SetSecurity to Deploy Third Party DLLs

rarerules

For anyone who has this problem, a solution that works is available at the following thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=267462&SiteID=1

Enjoy!