outlook 2003 add in problem (Deploy problem)

i am developing add in for outlook 2003 using Microsoft Visual Studio 2005 Tools for office. i.e. i have added a custom menu to outlook and doing some work on it. This all working fine on my development PC.

But when i install the add in on other system to check it, i am facing some problem.

As i have installed the following prerequisits:

1- .Net Framework 2.o

2- Install the Visual Studio Tools for Office runtime.

3- i also set the registry settings

4- Primary interop assembly (PIA)

Now my add ins is in the available add in list of Microsoft outlook(tools>>option>>other>>advance options>>com add ins) but it is unchecked when i check it it promts that "addin could not be found or could not be loaded" and when i click on details it gives the following details :

"Could not load file or assembly 'OutlookAddIn1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bec74adb05bcc644' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)


************** Exception Text **************
System.IO.FileLoadException: Could not load file or assembly 'OutlookAddIn1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bec74adb05bcc644' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)
File name: 'OutlookAddIn1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bec74adb05bcc644' > System.Security.Policy.PolicyException: Execution permission cannot be acquired.
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission)
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.HandleOnlineOffline(Exception e, String basePath, String filePath)
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadStartupAssembly(EntryPoint entryPoint, Dependency dependency, Dictionary`2 assembliesHash)
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.ConfigureAppDomain()
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadAssembliesAndConfigureAppDomain(IHostServiceProvider serviceProvider)
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadEntryPointsHelper(IHostServiceProvider serviceProvider)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
-
Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.816
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
-
Microsoft.Office.Tools.Common
Assembly Version: 8.0.0.0
"

Any helping material is appreciated::

when i tried to add a Custom Action to Grant Trust to the Assembly via this link(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOWindowsInstallerWalkthrough.asp) i got error at the end of installation and it rollback.

[4286 byte] By [xishanshigri] at [2007-12-26]
# 1

Yessssssssssssssssssssssssssss... I have solved this problem.

the problem is actually with the assembly i.e you have to grant full trust to assembly and you can get help from:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOWindowsInstallerWalkthrough.asp

still if anyone need some help i am available.....

xishanshigri at 2007-9-4 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...