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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Microsoft Office Excel cannot open or save any more documents because there is not enough available

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

hi all,

     i am new to asp.net programming i am trying to create an ms excel file with charts drawn in it,

i wrote the complete code for it but the it is saying

Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space. 

i have set the permissions to my complete disk space and all user accounts, and i tried with anti-virus disabling also it didnt work please try to help me out and my code is :

Imports System.Data.OleDb
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Tools.Excel
Imports System

View Complete Post

More Related Resource Links

System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Excel cannot open or save any mo


Hello good people, 

I have this beast as an error. Did my research and found some posts here as well but did not do any good for me. 

Here is what I did. I had an error regarding issue rights with COM objects so I gave access rights under component services for Microsoft Excel application now I am getting this error. 

Here is some information regarding this

1. Gave rights to ASPNET and network service to my web app directory to try to fix this error. 

2. The exact same process works on my Windows 2003 server and my Windows 7 development machine. I am trying to get this going on a different windows 2003 machine that is outside of our domain.

3. Developing on windows 7 64 bit with office 2010 installed. Also excel 2010 is installed on my Web server

4. Here is the code that is causing the error: The last line is causing the error.:

            MyXl = new Microsoft.Office.Interop.Excel.Application();
            MyXl.Visible = false;
            MyWb = (Microsoft.Office.Interop.Excel._Workbook)(MyXl.Workbooks.Add(Missing.Value));
            int test = 0; 
            MySheet = (Microsoft.Office.Interop.Excel._Worksheet)MyXl.ActiveSheet;
            if (reader.HasRows)
                int InRow = 2; 
                for (int i = 0; i < Nu

SharPoint 2010 : Open word and excel documents within Browser without installing office Web App on S

guys, SharePoint 2010 how can i have the word documents and excel sheets open up with in the browse windows without installing Office Web App on the server, all i want to give users is the read access. Also i did not install anyting on sharepoint server to have pdf open up in the browser and yet it does. thanks in advance. sameer   thanks sameer

Can I search Office Documents (Excel, Word etc) in WSS 3.0 without having to install MS Office?



Does WSS 3.0 come with the filters for searching MS Office Documents or do you have to have MS Office installed on WSS 3.0 Server?



Working with In-Memory Open XML Documents (Office Talk Column)

Working with Open XML Documents without loading from a file or saving to a file is important when you build applications that work with Microsoft SharePoint Server 2010 or Microsoft ASP.NET Web applications.

Office 2010 will not open Office 2003 Documents on SharePoint

Going directly to a document in the document view and selecting any of them will present the Read Only/Edit prompt and when clicking Read Only Word or Excel 2010 depending on the document type will open to a blank page and just sit there. If you do a search and then click on the documents that are returned in the search results, it opens as expected.

How to save Office 2007 documents to SharePoint 2010 sites

Is it possible to save Office Word/Excel/Powerpoint 2007 to SharePoint sites directly from Office Clients? Following website helps with saving a Office 2010 document to SharePoint 2010, but how to do it with Office 2007? http://office.microsoft.com/en-gb/word-help/save-a-document-to-sharepoint-from-office-2010-HA010380214.aspx  Kenny_I

Office 2007 Documents Open in Read-Only when Opening them from a WSS 2.0 Document Library

Hi, When any of our Windows 7 Pro computers that run Office 2007 Pro attempt to open a Word document that resides in a WSS 2.0 document library by using the drop down menu and selecting "Edit with MS Word", the documents open in read-only.  Our work-around is to save the document locally, modify it, and then save it back to the document library. We have some Windows XP and Vista systems that run Office 2007 and they are fine and can simply edit the document and save it.  We also have a handful of pc's that run Office 2003 and they are not having any issues either. Things I've tried: Office 2007 Repair - no luck Office Reinstall - no luck Some registry mod HKCU\Software\Microsoft\Office\12\Internet\OpenDocumentReadWrite=1 (noted on a MSKB article) - no luck and after re-reading the article it clearly states that this will not address content hosted on WSS or SPS sites Clearing IE temp files, resttting IE to defaults - no luck Once again, this only seems to happen to Win7Pro pc's that run Office 2007.  Honestly, I can't tell if IE8 has anything to do with this. Any thoughts or help would be extrememly appreciated. Thanks, Mike

Can't open SharePoint documents in Office 2010

Hi, I have a SharePoint 2010 standalone installation and a SP 2007 with SQL back-end installation for testing and proof of concept demonstrations.  All the servers are running Windows 2008 Server and are on a vSphere 4.0 ESX server as virtual machines. Most of the pilot team are on Office 2007 and are working fine with the installations.  I am running Office 2010 (not beta) and am unable to open any Word or Powerpoint files in a standard Project site's Shared Documents library. (I can open a word document stored and linked from a publishing site.) Whether I browse to the file or click the link in a search results page, Powerpoint and Word load up but before I get any login prompt or application screen appearing, the application crashes.  This occurs whether I open the document Read only or click the implicit check out 'Edit' button. If I check the document out to my local drafts folder I can open normally.  As I can't find anything about this on the internet I'm guessing it's not a common occurence!

Open Office Documents from Document Library without Password Prompt

We have a SharePoint site and Document library set up for anonymous access.   All non-Microsoft file types open correctly without a password.   When users click on Microsoft Office documents they are prompted for passwords.   Is there some way to configure the Office documents or Document Library so that users are not prompted for passwords when they open documents or is this a bug?

How to open and read Word content using Open XML SDK 2.0 for Microsoft Office?

Hello, I've built a component to read a Word Document and open it in silverlight, so I'm interested in Open XML SDK 2.0 for Microsoft Office, I read the document about this and some several examples, they're just talk about read the Headers, Comment,...and also I want to read the Word content.   Please help me, thank you.

** Microsoft.Office.Interop.Excel.dll - Do I need Excel installed?? **

Hi,I have a VB.Net app which creates an Excel report.  This is all working fine on my development boxwhich turns out to have MS Office 2003 installed.  The app works fine.  I added a reference toMicrosoft Excel 11.0 Object Library under the COM tab when I did the "Add Reference".  I also copiedthe Interop.Excel.dll to my BIN folder.The server that I need to deploy my app to does not have MS Office or Excel installed.  I ran the appanyway just to see if it would worked.  Of course, it failed with this error:Retrieving the COM class factory for component with CLSID {00020820-0000-0000-C000-000000000046} failed due to the following error: 80040154.Do I need to have Excel installed on the target machine?  I took a copy of "Microsoft.Office.Interop.Excel.dll"from the GAC on the DEV box and installed on the GAC on the target machine.  Tried the app again and stillfailed with the same error.  I really don't want to install Excel if I don't have to.  Can someone please providesome help on this?Thank you in advance!

Excel speardsheet can't be open for sharepoint 2010 Office Web App

I had no problem opening word and power point, but excel. it will giving me this error Error An unexpected error has occurred.   Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: 06ebb5b3-d79a-4304-9709-11b4a6f55c57 Date and Time: 9/16/2010 6:08:19 PM I am pretty much done all the solution I can found on-line. anyone know how to fix this issue or it is the Bug that sharepoint 2010 have right now ?

Excel does not open in the browser even after office web is installed and integrated with sharepoint


guys, i have installed and configured office web apps with sharepoint 2010 after which i

a.  i created SA instances for excel , word viewing and powerpoint,

b. activated office web feature and deactivated "opening in the client application" feature

now word opens up fine in the browser but excel still opens in the client application, any suggestions?




RTF documents not displaying in rich text box (word pad) ,but able to open using MS office Word


hi there ,

my application has a rich text box ,where rtf files are opened and processed . 90% of the time am able to load this with out any trouble . but rest 10% of the rtf files are not displayed in the rich text box (though they are able to load )

And also i have observed a weird behavior : IF the number of pages of this rtf files are stripped off (from  100 to 10 ) the same are displayed .

Is there any limit for the the number of pages in RTB (rich text bOx) .

thanks in advance 


Error when trying to open recently saved documents with Office


Having a strange issue with one of our customers. They are using a drive letter mapping to a SP Document library (WSS 3.0). For some reason out of the blue now, if they create a new word document, save it up to WSS (via drive mapping) and then try and open it again, it gives a "Could not open" error. Trying to open the file via the web interface gives a "No connectivity with the server. The file http://... can't be opened because the server couldn't be contacted". Strange issue is, we can open the files just fine with Wordpad. So something between Office & Sharepoint appears to be causing the issue. Stranger even still, if we save using word to save an office document to SharePoint via the web interface instead of the drive mapping, it appears to fix the issue. From there on we can save and open files directly to\from the drive letter mapping!

So the issue can be temporarily resolved that way, but it still re-occurs every once in a while, and It would be nice to know what is causing the issue and how/if we can permanently prevent it.

Screenshots of errors when opening the docs from drive mapping and web interface:



Can't find Microsoft.Office.Interop.Excel.dll



I am trying to use this namespace and downloaded the O2003pia.exe from http://support.microsoft.com/kb/897646.


I ran the msi and see the Interop files in the GAC but when I try to 'Add a Reference' in VS2005, I do not see any of the Interop namespaces.


I already had Office 2003 installed before I ran the above msi.


What else am I doing wrong. Why aren't these included with VS2005 in the first place..............


Please help,



Microsoft Office Excel cannot access the file.There are several possible reasons: . The file name or

Hi all,
I am workin on Arc IMS web application project where I will be uploading an excel file containing data say city,addresszip(column headers in excel file)..etc..and load necessary column data in listboxes..and finally save the data to an excel file..when I run though Studio I dont get error..when I run through browser..I got errors ..I even modified DCOMCNFG...But..I get the below error..
Microsoft Office Excel cannot access the file 'E:\vijay\ArcIms\Excelsheets'. There are several possible reasons: • The file name or path does not exist. • The file is being used by another program. • The workbook you are trying to save has the same name as a currently open workbook.
Here goes my code..
Imports Excel
Imports System.Data.OleDb
Imports System.Data
Partial Class _Default
    Inherits System.Web.UI.Page
    Dim connection As New System.Data.OleDb.OleDbConnection
    Dim command As New System.Data.OleDb.OleDbCommand
    Dim dr As System.Data.OleDb.OleDbDataReader
    Dim cmd1 As New System.Data.Ol
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

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