VSTO Publishing Problem

C

charlie

I am having a heck of time figuring this out. I can deploy the project
from Visual Studio and then set up the security code group with a
Strong Name condition. From the deployed location (currently my local
machine) I can open the Excel file and run the application. However
when I go to run the *.application file I get the following exception
which indicates either:

1) an invalid manifest file OR
2) a non-strongly named application.


The application is strongly named so I don't think that is the problem.

I will include a copy of the manifest file after the exception text:


PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.42
System.Deployment.dll : 2.0.50727.42
(RTM.050727-4200)
mscorwks.dll : 2.0.50727.42
(RTM.050727-4200)
dfdll.dll : 2.0.50727.42
(RTM.050727-4200)
dfshim.dll : 2.0.50727.42
(RTM.050727-4200)


SOURCES
Deployment url :
file:///C:/temp/pub/ConjointChart.application


ERROR SUMMARY
Below is a summary of the errors, details of these errors are
listed later in the log.
* Activation of C:\temp\pub\ConjointChart.application resulted
in exception. Following failure messages were detected:
+ Exception reading manifest from
file:///C:/temp/pub/ConjointChart.application: the manifest may not be
valid or the file could not be opened.
+ Deployment manifest is not semantically valid.
+ Application reference identity must be strongly
named.


COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.


WARNINGS
There were no warnings during this operation.


OPERATION PROGRESS STATUS
* [8/12/2006 12:45:07 PM] : Activation of
C:\temp\pub\ConjointChart.application has started.


ERROR DETAILS
Following errors were detected during this operation.
* [8/12/2006 12:45:08 PM]
System.Deployment.Application.InvalidDeploymentException
(ManifestParse)
- Exception reading manifest from
file:///C:/temp/pub/ConjointChart.application: the manifest may not be
valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.ManifestReader.FromDocument(String
localPath, ManifestType manifestType, Uri sourceUri)
at
System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDir­rctBypass(SubscriptionStore

subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState&
subState, IDownloadNotification notification, DownloadOptions options,
ServerInformation& serverInformation)
at
System.Deployment.Application.DownloadManager.DownloadDeploymentManifestByp­ass(SubscriptionStore

subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState&
subState, IDownloadNotification notification, DownloadOptions options)
at
System.Deployment.Application.ApplicationActivator.PerformDeploymentActivat­ion(Uri

activationUri, Boolean isShortcut)
at
System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker­(Object

state)
--- Inner Exception ---

System.Deployment.Application.InvalidDeploymentException
(ManifestSemanticValidation)
- Deployment manifest is not semantically valid.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsFo­rDeploymentRole()

at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemantics(M­anifestType

manifestType)
at
System.Deployment.Application.ManifestReader.FromDocument(String
localPath, ManifestType manifestType, Uri sourceUri)
--- Inner Exception ---

System.Deployment.Application.InvalidDeploymentException
(ManifestComponentSemanticValidation)
- Application reference identity must be strongly
named.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateApplication­Dependency(DependentAssembly
da)
at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsFo­rDeploymentRole()



COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.


####### M A N I F E S T F I L E #######################
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" manifestVersion="1.0">
<assemblyIdentity name="ConjointChart.dll" version="1.0.0.0" />
<asmv2:entryPoint name="Startup" dependencyName="dependency0">
<asmv2:clrClassInvocation class="ConjointChart.ThisWorkbook" />
</asmv2:entryPoint>
<asmv2:entryPoint name="Startup" dependencyName="dependency0">
<asmv2:clrClassInvocation class="ConjointChart.Sheet2" />
</asmv2:entryPoint>
<asmv2:entryPoint name="Startup" dependencyName="dependency0">
<asmv2:clrClassInvocation class="ConjointChart.Sheet1" />
</asmv2:entryPoint>
<asmv2:dependency asmv2:name="dependency0">
<asmv2:dependentAssembly>
<assemblyIdentity name="ConjointChart" version="1.0.0.0"
publicKeyToken="b6eda57b30df683c" />
</asmv2:dependentAssembly>
<asmv2:installFrom
codebase="ConjointChart_1.0.0.0\ConjointChart.dll" />
</asmv2:dependency>
<asmv2:installFrom
codebase="file:///C:/temp/pub/ConjointChart.application" />
</assembly>


############ END MANIFEST FILE ############


I have looked at just about every tutorial and help file I can find and
I'm just not finding anything that helps me out. Any input would be
appreciated.


Thanks in advance.
charlie
 
C

charlie

This was answered in another group but I wanted to post the reply here
as well:

Visual Studio 2005 Tools for Office doesn't use ClickOnce manifest
files,
even though they are very similar. As a result, you can't run the
..application file. The only way to run the solution is to start the
Office
program.

I am having a heck of time figuring this out. I can deploy the project
from Visual Studio and then set up the security code group with a
Strong Name condition. From the deployed location (currently my local
machine) I can open the Excel file and run the application. However
when I go to run the *.application file I get the following exception
which indicates either:

1) an invalid manifest file OR
2) a non-strongly named application.


The application is strongly named so I don't think that is the problem.

I will include a copy of the manifest file after the exception text:


PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.42
System.Deployment.dll : 2.0.50727.42
(RTM.050727-4200)
mscorwks.dll : 2.0.50727.42
(RTM.050727-4200)
dfdll.dll : 2.0.50727.42
(RTM.050727-4200)
dfshim.dll : 2.0.50727.42
(RTM.050727-4200)


SOURCES
Deployment url :
file:///C:/temp/pub/ConjointChart.application


ERROR SUMMARY
Below is a summary of the errors, details of these errors are
listed later in the log.
* Activation of C:\temp\pub\ConjointChart.application resulted
in exception. Following failure messages were detected:
+ Exception reading manifest from
file:///C:/temp/pub/ConjointChart.application: the manifest may not be
valid or the file could not be opened.
+ Deployment manifest is not semantically valid.
+ Application reference identity must be strongly
named.


COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.


WARNINGS
There were no warnings during this operation.


OPERATION PROGRESS STATUS
* [8/12/2006 12:45:07 PM] : Activation of
C:\temp\pub\ConjointChart.application has started.


ERROR DETAILS
Following errors were detected during this operation.
* [8/12/2006 12:45:08 PM]
System.Deployment.Application.InvalidDeploymentException
(ManifestParse)
- Exception reading manifest from
file:///C:/temp/pub/ConjointChart.application: the manifest may not be
valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.ManifestReader.FromDocument(String
localPath, ManifestType manifestType, Uri sourceUri)
at
System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDir­rctBypass(SubscriptionStore

subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState&
subState, IDownloadNotification notification, DownloadOptions options,
ServerInformation& serverInformation)
at
System.Deployment.Application.DownloadManager.DownloadDeploymentManifestByp­ass(SubscriptionStore

subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState&
subState, IDownloadNotification notification, DownloadOptions options)
at
System.Deployment.Application.ApplicationActivator.PerformDeploymentActivat­ion(Uri

activationUri, Boolean isShortcut)
at
System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker­(Object

state)
--- Inner Exception ---

System.Deployment.Application.InvalidDeploymentException
(ManifestSemanticValidation)
- Deployment manifest is not semantically valid.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsFo­rDeploymentRole()

at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemantics(M­anifestType

manifestType)
at
System.Deployment.Application.ManifestReader.FromDocument(String
localPath, ManifestType manifestType, Uri sourceUri)
--- Inner Exception ---

System.Deployment.Application.InvalidDeploymentException
(ManifestComponentSemanticValidation)
- Application reference identity must be strongly
named.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateApplication­Dependency(DependentAssembly
da)
at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsFo­rDeploymentRole()



COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.


####### M A N I F E S T F I L E #######################
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" manifestVersion="1.0">
<assemblyIdentity name="ConjointChart.dll" version="1.0.0.0" />
<asmv2:entryPoint name="Startup" dependencyName="dependency0">
<asmv2:clrClassInvocation class="ConjointChart.ThisWorkbook" />
</asmv2:entryPoint>
<asmv2:entryPoint name="Startup" dependencyName="dependency0">
<asmv2:clrClassInvocation class="ConjointChart.Sheet2" />
</asmv2:entryPoint>
<asmv2:entryPoint name="Startup" dependencyName="dependency0">
<asmv2:clrClassInvocation class="ConjointChart.Sheet1" />
</asmv2:entryPoint>
<asmv2:dependency asmv2:name="dependency0">
<asmv2:dependentAssembly>
<assemblyIdentity name="ConjointChart" version="1.0.0.0"
publicKeyToken="b6eda57b30df683c" />
</asmv2:dependentAssembly>
<asmv2:installFrom
codebase="ConjointChart_1.0.0.0\ConjointChart.dll" />
</asmv2:dependency>
<asmv2:installFrom
codebase="file:///C:/temp/pub/ConjointChart.application" />
</assembly>


############ END MANIFEST FILE ############


I have looked at just about every tutorial and help file I can find and
I'm just not finding anything that helps me out. Any input would be
appreciated.


Thanks in advance.
charlie
 

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