.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

Getting error while opening file at windows server 2008 R2.

Posted By: Sajid P K     Posted Date: November 22, 2010    Points:2   Category :.NET Framework

We are facing problem while uploading excel file.
We are using .Net 3.5. At our local system which is Windows XP and office 2003.
It is working fine. At server side we are using Windows server 2008 R2, Office 2003.
To open excel we are using Microsoft.Office.Interop.Excel

My code is as follows:--

using Excel = Microsoft.Office.Interop.Excel;

xlWorkBook = xlApp.Workbooks.Open(strExcelPath, Missing.Value, false, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, true, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Excel.XlCorruptLoad.xlNormalLoad);

But it is giving error at server location where configuraton is as follows:--

Windows server 2008 R2 ,Office 2003.

Error is coming as :--

System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC

Please help on this ?

Author: Narayanan             
Posted Date: October 15, 2011     Points: 20   

refer this link

Regards, Lakshmi Naraayanan.S

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend