Pati123

Dear Sir,

I have created VSTO SE Word addin. Its for MS office 2007.
I developed it in Visual Studio. In that VSTO porject I tried to build and deploy automatically
generated Setup project. This setup and .msi files was generated.

When I tried to install this setup in a new machine it installed sucessfully.
That Machine has offiice 2007 installed.
But the thing is even though the setup installed sucsessfully Its not visible or active in MS Word.

Then I installed VSTO SE manually and installed the setup. But still there is no change.

Please let me know the steps or special Steps I have to follow to creat a proper deployable project.

Tharindu



Re: Visual Studio Tools for Office VSTO 2007 Adddin Deployment Problem

Dennis Wallentin

Hi Tharindu,

Have You set up the settings for CAS (Code Access Security) When creating the VSTO add-in on the developing machine it's given 'full trust' but in order to apply the same CAS settings on the targeting machines it require that You explicit set the CAS.

For a start please see:

Code Access Security

Deploying Visual Studio 2005 Tools for Office Second Edition Solutions Using Windows Installer (Part 1 of 2)

Deploying Visual Studio 2005 Tools for Office Second Edition Solutions Using Windows Installer: Walkthroughs (Part 2 of 2)






Re: Visual Studio Tools for Office VSTO 2007 Adddin Deployment Problem

Pati123

Dear Sir,

I am not using Windows Installer. As I told its the defult setup Project created in Visual studio project I am using to create the Setup.

Anyway I ll go through these links.

Is these applicable in My Case



Thank You

Tharindu




Re: Visual Studio Tools for Office VSTO 2007 Adddin Deployment Problem

Ji Zhou ¨C MSFT

Hi Tharindu,

Try to follow links given by Dennis. It works for your case! I tried it before.

It is due to assembly you deployed is not granted full trust to let it run. So your Add In will not work. So you must use caspol.exe to grant full trust to your assembly after setup. Or you should use custom action to grant full trust during the setup process.

Thanks

Ji






Re: Visual Studio Tools for Office VSTO 2007 Adddin Deployment Problem

Mohan Kumar Karunakaran

Hi,

I have created an Addin for Excel 2007 using VSTOSE and trying to deploy. I tried to deploy using the automatically
generated Setup project. The addin gets installed but didn't load.

When I checked the Office Button --> Excel Options --> Add-ins --> COM Add-ins --> MyExcelAddin, I can see an error says - "Load Behaviour: Not Loaded. A runtime error occurred during the loading of the COM Add-in."

The project is in shared folder and I have given full trust using the below article while developing the solution. But I still got an warning stating that "The assembly must be granted full trust before the solution will run. For more information, see Help." during development. Is this causing the addin to stop loading.

http://msdn2.microsoft.com/en-us/library/zdc263t0(VS.80).aspx

Also, I have added the SetSecurity.cs project to my excel addin project to grant full trust to my addin as mentioned in the walkthrough below.

Deploying Visual Studio 2005 Tools for Office Second Edition Solutions Using Windows Installer: Walkthroughs (Part 2 of 2)

The addin created using the setup project is not loaded either in my development machine or in deployment machine.

I have installed the following tools in my deployment machine.

Microsoft .Net Ver 2.0/3.0

Microsoft Office 2007 Professional Plus

Microsoft Office 2007 PIAs

Visual Studio Tools for Office SE Runtime

Please let me know what I am missing in these. I have gone through a dozen articles on deployment and could not figure out exactly what I am missing.

Thanks

Mohan






Re: Visual Studio Tools for Office VSTO 2007 Adddin Deployment Problem

philipsh

I don't see anything you're missing unless you're not assigning full trust to the correct dll.

I had an Outlook 2007 VSTO SE AddIn that would only run after I used caspol to grant full trust to every dll in the install directory. Like this: caspol -u -ag All_Code -url "C:\<path to install directory\*" FullTrust -n "<Name>" -d "<Description>"

Note the wildcard star "*" at the end of the url path.

This worked for me because before I was just specifying full trust for the one addin dll like this: caspol ...... -url "c:\my addin install path\myaddin.dll" .... and this didn't work.

Good luck.