Free Support Forum - aspose.com

Aspose.Word Document Reading fails after Saving to disk

Sir,

I open a document and copy its section to another one, also did some text insertion. After that i saved the document to the disk. I open the document in MSword it is working fine, but when I tried to open it through Aspose.Word.Word.Open() method I recieved the following error.

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.Collections.ArrayList.get_Item(Int32 index) +91
Aspose.Word.File.d.a(aa A_0) +68
Aspose.Word.File.ae.b(Int32 A_0) +40
Aspose.Word.File.ak.a(Int32 A_0) +58
Aspose.Word.File.ak.a(aa A_0) +383
Aspose.Word.File.ak.a(Int32 A_0, Int32 A_1) +480
Aspose.Word.File.ak.a(Int32 A_0, w A_1) +176
Aspose.Word.File.ak.a() +28
Aspose.Word.File.ak.b() +70
Aspose.Word.File.ae.a(by A_0) +1377
Aspose.Word.Document.a(by A_0) +125
Aspose.Word.Document…ctor(String fileName) +81
Aspose.Word.Word.Open(String fileName) +25
DMCBusiness.Document.GetSavedDocument(String filename) in d:\classlibrary\dmcbusiness\document.cs:46
dmc.docfile.Page_Load(Object sender, EventArgs e) in d:\mydotnet\dmc\docfile.aspx.cs:23
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724


Plese help me to fix this and also is there any possible way to create new document.

with regards

Hi,

Please email your document to word@aspose.com for examination.

Hi,

We might have this this problem just recently, please download latest Aspose.Word 1.4.9.