473,569 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C#, Excel Workbook, SaveAs ( Exception from HRESULT: 0x800A03EC )

1 New Member
Hi,

I'm exporting a data set into excel file from an ASP.NET application (VS 2008).
On my PC, i got everything working just fine. but on my client server i got the error ( Exception from HRESULT: 0x800A03EC ), and i found that the problem is in this call:

wb.SaveAs(FPath , Excel.XlFileFor mat.xlXMLSpread sheet, Type.Missing, Type.Missing, false, false, Excel.XlSaveAsA ccessMode.xlNoC hange, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);

wb is a workbook. FPath is the path to where i want to save the file, and i assigned user "everyone" a full control permission on this location.

on my PC i have WinXP, IIS 5. on client server it's Win server 2008, IIS 7.

i tried changing file format, i tried xlWorkbookNorma l, xlExcel12 .. but still the same error.

can any one please help me to know what could be different from what i have on my PC.

Thanks in advance
Jan 27 '10 #1
1 16376
tlhintoq
3,525 Recognized Expert Specialist
Check the advice in this thread for similar issue
http://bytes.com/topic/net/answers/8...xe0434f4d-exit
My first guess is you are using methods in one version of the framework that don't exist on the machine producing the error.
Jan 29 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
6368
by: dd | last post by:
I am kind of puzzled with this problem. I am trying to open an xls file from C# and then save it as text or comma delimited. Here is the code: Excel.ApplicationClass oExcelApp = new Excel.ApplicationClass(); Object oMissing = System.Reflection.Missing.Value; Excel.Workbook oWB = oExcelApp.Workbooks.Open(sFileName, oMissing,...
0
4155
by: e-lores | last post by:
I need to print an excel doc to PDF. I'm doing next until now 1.- First I print the file to PostScript format using 'Acrobat Distiller' printer Dim wbook As Excel.Workbook wbook = appExcel.Workbooks.Open(fileExcel) wbook.PrintOut(fisrtPage, lastPage, , , "Acrobat Distiller", True, filePs) wbook.Close()
1
5858
by: Walter Andosen | last post by:
I have some trouble creating a Excel workbook. I get lots of Exceptions. For example I get System.Runtime.InteropServices.COMException (0x80028018): Old format or invalid type library. at Excel.ApplicationClass.set_DisplayAlerts(Boolean RHS) when I do
3
9891
by: | last post by:
I wrote a class in VB.NET to export the contents of a datagrid to Excel. It works perfectly on my machine, but it fails on my customers' PCs that have identical versions of Win XP (SP1) and Excel (SP1) installed. The error is: System.Runtime.InteropServices.COMException(0x800A03EC): Exception from HRESULT: 0x800A03EC. at...
1
4377
by: Boomessh | last post by:
Hi, I am trying to open an existing excel workbook. It pops up an error stating that “Errors were detected in 1598.xls but Microsoft Office Excel was able to open the file by making the repairs listed below. Save the file to make these repairs permanent.” ‘Renamed invalid sheet name.’“ This message is popped up when the XLS file...
2
36964
by: Sai | last post by:
Hi, I have written a small tool for our internal purpose in VB.net. This tool reads data from logs and saves it in an excel file. This tool is working fine with MS Office 2000 but raising the following exception, when i run the tool in a machine which contains MS Office 2003. Exception raised: "Exception from HRESULT: 0x800A03EC" Note:...
9
13816
by: John Brock | last post by:
I am trying to create a workbook where one of the worksheets contains an AutoFiltered table. It looks like it should be simple -- what I am doing is this: rng = ws.Range("MyTableRange") rng.AutoFilter() Unfortunately I get an exception on the second statement, with the unhelpful message:
0
4499
by: tmg181 | last post by:
I currently upgraded a VB application to a VB.NET application with only a few modifications. One of the functions of the application is to create an Excel spreadsheet with the given values that were input on the users desktop. When i run the application on my end it works perfectly, but as soon as i install it on the users computer i cannot get...
0
2992
by: Anish G | last post by:
Hi All, I am getting the below given error while running my application in live server. In my local machine, its working fine. Please help me as it is very urgent for me. Exception from HRESULT: 0x800A03EC Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more...
0
4909
by: rGh | last post by:
Hello, I am trying to create an Excel chart from C#. I am not a very experieced programmer, so my mistake could be very trivial. The code included is a very simple example. I just wanted to make sure the code runs first before I implement it into my application. The code is supposed to plot for X values: column A in excel and for Y...
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.