Question : Problem deploying VSTO addin in 64 bit Windows Terminal Server environment

Hi,

We are having a problem deploying a VSTO 2005 Second Edition Add-In and would appreciate any help with this.

We previously successfully deployed this add-in onto a 32bit Windows 2003 terminal service environment. By default VSTO installs on a per-user basis. But we got around this limitation by creating a custom CASPOL script which we ran after installation. This script removes the per user permissions and replaces them with per machine permissions.

I have included an example of this script below.

The client has now moved to a 64bit terminal services environment and our add-in is no longer working. The add-in is available but will not load, so our suspicions are that the problem is with the CASPOL script that it is no longer working.

We have tried editing our script so that it targets the Framework64 folder instead of Framework etc. without success.

Example script

%windir%\Microsoft.NET\Framework\v2.0.50727\caspol.exe -u -q -rg "OurDll.a5376b32-bs02-4f7f-897e-025bd33c0fb8"

%windir%\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -q -rg "OurDll.a5374b32-bf02-4f7f-897e-025re33c0fb8"

%windir%\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -q -ag My_Computer_Zone -url "OurUrl\*" Nothing -n " OurDll..a5374b32-bblas-4f7f-897e-025bd33c0fb8" -d "Code Group for Our App"

....etc...
 
I'd appreciate whatever help anyone can offer.

 Thanks,

Peter Evans

Answer : Problem deploying VSTO addin in 64 bit Windows Terminal Server environment

First thing I would try is to run your app on a regular, non TS, 64-bit 2008 Server. Does it work?
If it does, the issue may be on the TS side of things.
In this case, try opening a command prompt before running the app and typing CHANGE USER /INSTALL. Now run it. Does it work?
Also, does it work if I am a member of the local administrators group? If it does, the issue is permissions and you can track the issue using Process Monitor from Microsoft (free).

Cláudio Rodrigues
Microsoft MVP - RDS
Citrix CTP
Random Solutions  
 
programming4us programming4us