Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Exception from HRESULT: 0x8004040A

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
Security


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.GetOf ficeDocument()
at Microsoft.Office.Tools.OfficeAppInfoDocument.Ensur eDocument()
at Microsoft.Office.Tools.OfficeAppInfoDocument.Write Item(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\Va lidationUtil.cs:line 349

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

Please help.

--
Regards,
Nirnay
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception from HRESULT: 0x800A03EC Samir1014 Excel Programming 2 September 13th 07 07:14 PM
Exception from HRESULT: 0x800401A8 Miles Excel Programming 1 February 12th 07 02:03 PM
Exception from HRESULT: 0x800A03EC nano2k New Users to Excel 0 July 21st 06 12:15 PM
Exception from HRESULT: 0x800AC472 [email protected] Excel Discussion (Misc queries) 0 May 30th 06 09:01 PM
Exception HResult: 0x8007FA08 (VB.net) prashanth Kotha Excel Programming 0 August 20th 03 07:27 PM


All times are GMT +1. The time now is 03:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"