I am trying to export a chart using the Excel11 object from within ASP.NET. Calling Export() on the Chart
object throws the following COMException
Exception: System.Runtime.InteropServices.COMException (0x800A03EC):
Exception from HRESULT: 0x800A03EC.
at Excel._Chart.Export(String Filename, Object FilterName, Object
worksheet) in d:\source\leparc\importer\importer.cs:line 211
The line causing this is:
I am trying to export a picture from excel to an external file. What I am doing is creating a new
chart, copying the picture to the chart, then exporting the chart. The
Excel process is running under the ASPNET account.
The person who posted a similar question before answered his own question as :
The problem was that the ASPNET user account didn't have access to the MSI Installer COM object. What was happening is that the .Export() method searches the HKCU registry key for available graphic filters. Because the ASPNET user is not an interactive user, no user profile had been created for it, and calling the .Export() method prompted MSI to create the profile (including the HKCU hive).
But I haven't unerstood anything from his answer, I would appreciate it if someone can explain it to me what to do.