IIS hosted VSTO word template opening failed from client computer.

L

Lem

I has simple VSTO office application (simplest word template), hosted on IIS
6, Windows Server 2003(application was published to specified location).

Published directory named "sample".
Its contains 2 files:
WordTemplate2.application,
WordTemplate2.application
and subfolder WordTemplate2_1.0.0.10.

Subfolder WordTemplate2_1.0.0.10 contains application config, manifest, dll,
and same 2 files - WordTemplate2.application and WordTemplate2.application.

Its manifest is:

<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" manifestVersion="1.0">
<assemblyIdentity name="WordTemplate2.dll" version="1.0.0.10" />
<asmv2:entryPoint name="Startup" dependencyName="dependency0">
<asmv2:clrClassInvocation class="WordTemplate2.ThisDocument" />
</asmv2:entryPoint>
<asmv2:dependency asmv2:name="dependency0">
<asmv2:dependentAssembly>
<assemblyIdentity name="WordTemplate2" version="1.0.0.0"
publicKeyToken="014534cd87c87179" />
</asmv2:dependentAssembly>
<asmv2:installFrom codebase="WordTemplate2_1.0.0.10\WordTemplate2.dll" />
</asmv2:dependency>
<asmv2:installFrom
codebase="http://192.168.111.111/sample/WordTemplate2.application" />
</assembly>

Its config file is (contains connection string to retreiving button text
form DB):
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="WordTemplate2.Properties.Settings.VSTOConnectionString"
connectionString="Data Source=TestDB;Initial Catalog=VSTO;User
ID=sa"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>

When I'm trying to open the application from local computer
(http://192.168.111.111/sample/WordTemplate2.dot or
http://192.168.111.111/sample/WordTemplate2_1.0.0.10/WordTemplate2.dot),
its opened fine, and VSTO section is running ("press me" button appeared on
side of the document).

But when I am trying to open the same link from another client computer, I
receive following error message:

Failed to update customization from the specified deployment manifest.


************** Exception Text **************
Microsoft.VisualStudio.Tools.Applications.Runtime.UpdateFailedException:
Failed to update customization from the specified deployment manifest. --->
System.Net.WebException: The request was aborted: The request cache-only
policy does not allow a network request and the response is not found in
cache.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest&
request)
at System.Net.WebClient.DownloadData(Uri address)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.DownloadManifest(WebClient webClient, Uri uri, Boolean fallBackToCache)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadAndUpdateApplicationManifest(IAppInfo
appInfo, Uri documentDirectoryUri, Uri& newAppManifestPath, Boolean&
appManifestDirty)
--- End of inner exception stack trace ---
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadAndUpdateApplicationManifest(IAppInfo
appInfo, Uri documentDirectoryUri, Uri& newAppManifestPath, Boolean&
appManifestDirty)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.CreateCustomizationDomainInternal(Uri
uriFullDocumentDirectory, Uri uriFullDocFilePath, String documentName,
IHostServiceProvider hostCallback, IAddinSecurityManager secman, AppManifest&
applicationManifest, Boolean& manifestDirty, IAppInfo& appInfo)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.CreateCustomizationDomain(String
applicationDomainPath, String documentName, IHostServiceProvider
hostCallback, IExecuteCustomization& executor)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManager.CreateCustomizationDomain(String
applicationDomainPath, String documentName, IHostServiceProvider
hostCallback, IExecuteCustomization& executor)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
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.940
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.1433 (REDBITS.050727-1400)
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.940
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.1433 (REDBITS.050727-1400)
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.1433 (REDBITS.050727-1400)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------

I tryed to switch off CASPOL on the client computer - but it does not help.
I set security permissions on IIS to "sample" folder, and type user and
password during connection from client mashine - still does not help.
I also removed ".doc" and ".dot" MIMIE extensions from IIS - the same result.

Thanks a lot.
Evgeny.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top