
Signature
Nick Keller
Software Developer/Analyst
Mercury Media
Have you granted permissions to the document, as well as the assembly? If
the document is in a network location, you have to grant trust to it just
like you do the assembly. Documents work automatically only when they are
located on the user's computer. There's a bit about this in the VSTO docs:
http://msdn2.microsoft.com/en-us/library/6exya3kf(VS.80).aspx

Signature
Harry Miller
This posting is provided "AS IS" with no warranties, and confers no rights.
> Muhammad,
>
[quoted text clipped - 52 lines]
> > > required permissions to execute.
> > > at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.H
andleOnlineOffline (Exception e, String basePath, String filePath)
> > > at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.C
reateCustomizationDomainInternal(Uri
> > > uriFullDocumentDirectory, Uri uriFullDocFilePath, String documentName,
> > > IHostServiceProvider hostCallback, IAddinSecurityManager secman, AppManifest&
> > > applicationManifest, Boolean& manifestDirty, IAppInfo& appInfo)
> > > at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.C
reateCustomizationDomain(String
> > > applicationDomainPath, String documentName, IHostServiceProvider
> > > hostCallback, IExecuteCustomization& executor)
> > > at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManager.CreateCus
tomizationDomain(String
> > > applicationDomainPath, String documentName, IHostServiceProvider
> > > hostCallback, IExecuteCustomization& executor)
[quoted text clipped - 12 lines]
> > > Win32 Version: 8.0.50727.42
> > > CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
> > > ----------------------------------------
> > > System
> > > Assembly Version: 2.0.0.0
> > > Win32 Version: 2.0.50727.42 (RTM.050727-4200)
> > > CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
> > > ----------------------------------------
> > > Microsoft.Office.Tools.Common
> > > Assembly Version: 8.0.0.0
> > > Win32 Version: 8.0.50727.42
> > > CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/8.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll
> > > ----------------------------------------
> > > System.Xml
> > > Assembly Version: 2.0.0.0
> > > Win32 Version: 2.0.50727.42 (RTM.050727-4200)
> > > CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
> > > ----------------------------------------
> > > System.Configuration
> > > Assembly Version: 2.0.0.0
> > > Win32 Version: 2.0.50727.42 (RTM.050727-4200)
> > > CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
> > > ----------------------------------------
> > >
[quoted text clipped - 10 lines]
> > >
> > > Thanks in advance.