Exception from HRESULT: 0x8004040A

N

Nirnay

Hi,

(Asp.Net 2.0, VSTO First edition 8.0.50727.42, C#, Windows 2003 Server)

I am getting following exception while customizing Excel file, but the same
code is working fine for Word document.

1. I allowed the "trust access to visual basic projects" under Excel > Macro

But still no clue.

Exception from HRESULT: 0x8004040A

at
Microsoft.VisualStudio.Tools.Applications.Runtime.IAppInfoDocument.SetDocument(String fileName, Byte[] bytes, FileAccess access)
at Microsoft.Office.Tools.OfficeAppInfoDocument.GetOfficeDocument()
at Microsoft.Office.Tools.OfficeAppInfoDocument.EnsureDocument()
at Microsoft.Office.Tools.OfficeAppInfoDocument.WriteItem(String element,
String id, Byte[] item)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppInfo.WriteManifest(IAppInfo appInfo, String manifest)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.Customizer.CustomizeDocument()
at Microsoft.VisualStudio.Tools.Applications.Runtime.Customizer.Customize()
at
Microsoft.VisualStudio.Tools.Applications.Runtime.ServerDocument.AddCustomization(String
documentPath, String assemblyName, String deploymentManifestPath, String
applicationVersion, Boolean makePathsRelative)

at ValidationUtil.AddDocCustomization(String currentDirectory, String
inputFilePath, String assembly, String manifest)
in C:\AWSContentEditor\Source\ContentEditor.Common\ValidationUtil.cs:line 349

--Line 349
ServerDocument.AddCustomization(unCustomisedDocumentPath, assemblyName,
deploymentManifestPath, defaultVersion, false);

Please help.
 

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