We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

System.NullReferenceException when opening Word DOC

When attempting to access the attached Word doc to get the page count, we receive the following error message. Any ideas?

Thanks,

-Tim

Error Message:

System.NullReferenceException: Object reference not set to an instance of an object. at x996431aaaaf00543.
xf4c807956df6c3b9.x6bf3c6b45600dc1e(x687bd29facb7e34a x7cc44cab9e9f8397) at x996431aaaaf00543.xf4c807956df6c3b9.x70f2a9357c1d25dc(x687bd29facb7e34a x7cc44cab9e9f8397) at x996431aaaaf00543.xf4c807956df6c3b9.Render(x2094302a66c2ec77 nodeRenderParams) at x996431aaaaf00543.x3064c6a807d3a0a8.x5b81632e5b71b64c(XmlDocument x5510939d5b9dcd91, SizeF xbc26217ba3290abe, x56ef2519e07fdbb4 x10154c16e21df88a) at x3d94286fe72124a8.x73d966e39902908a.xe406325e56f74b46(DrawingML x91ebfdc604552811) at x59d6a4fc5007b7a4.xa7492065dee59ad0.x539f48f6ee6ea753(xdeb77ea37ad74c56 x1e972e751678e682, Boolean& xf31bd0ec37d2cc8b) at x4adf554d20d941a6.x544de0c6d24f79dc.x2b797a3c54087a9b() at x4adf554d20d941a6.x544de0c6d24f79dc.get_xdc1bf80853046136() at x4adf554d20d941a6.xa67197c42bddc7dc.get_x887b872a95caaab5() at x4adf554d20d941a6.x56410a8dd70087c5.get_xdc1bf80853046136() at x4adf554d20d941a6.x6d3ade29d016f4ea.x5f6867bc5a977cb1() at x4adf554d20d941a6.x09e62a55cab70965.x5de571cf1cd1652c(xf6937c72cebe4ad1 x311e7a92306d7199) at x4adf554d20d941a6.x09e62a55cab70965.xc3819e13f60dd8e6(xf6937c72cebe4ad1 x311e7a92306d7199, Int32 xcd3a9f82634fe5f9) at x4adf554d20d941a6.x71da84fff8849445.xc3819e13f60dd8e6(x53cb1139c5c64ee6 xd7e5673853e47af4, Int32 xcd3a9f82634fe5f9, Boolean x3175070523842c98) at x4adf554d20d941a6.x4ddd0723770f9758.xb47a6df2eae4ba51() at x4adf554d20d941a6.x4ddd0723770f9758.xc3819e13f60dd8e6(x3d1ad8ce75f0db3a xd3311d815ca25f02, Int32 xd284dd7d525c5491, Boolean x3175070523842c98, Boolean x4097fa47409be495) at x4adf554d20d941a6.xea876d525d28ff96.xf0d7cc2854ee439f(x46bd7081dec08b8e xf8d6d5bf13f5917f) at x4adf554d20d941a6.xac6c82c74ce247fb.xc3819e13f60dd8e6(Boolean xfad304b5f8f3bb5b) at x4adf554d20d941a6.xb1f375aa1b12d10f.x9b961d025fb6a1b3(xc7f90d9c7c51cede xbbe2f7d7c86e0379, Boolean x6b0ad9f73c48ad53) at x4adf554d20d941a6.x4af2add38e634ad4.xc3819e13f60dd8e6(xc7f90d9c7c51cede xbbe2f7d7c86e0379) at x4adf554d20d941a6.xac6c82c74ce247fb.xc3819e13f60dd8e6(Boolean xfad304b5f8f3bb5b) at x4adf554d20d941a6.xa268fdb9ca040dde.xc3819e13f60dd8e6(Boolean xfad304b5f8f3bb5b) at x59d6a4fc5007b7a4.xcde671c53995c411.xd9db07500873ae98(Document x3664041d21d73fdc, xdeb77ea37ad74c56 xdfde339da46db651) at Aspose.Words.Document.x410db0f4a89a6ef1(Boolean x24af0daafcd8fb8c) at Aspose.Words.Document.get_PageCount() at lms_common_DocumentViewer.ViewDocument() at lms_admin_ad_doc_viewdocument.Load() at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Hi Tim,


Thanks for your inquiry. Using latest Aspose.Words 10.8, i managed to reproduce the problem on my side. I have logged this issue in our bug tracking system. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed. In case of any ambiguity, please let me know.

Here is another problematic document and its error message:


System.NullReferenceException: Object reference not set to an instance of an object. at x996431aaaaf00543.xf4c807956df6c3b9.x6bf3c6b45600dc1e(x687bd29facb7e34a x7cc44cab9e9f8397) at x996431aaaaf00543.xf4c807956df6c3b9.x70f2a9357c1d25dc(x687bd29facb7e34a x7cc44cab9e9f8397) at x996431aaaaf00543.xf4c807956df6c3b9.Render(x2094302a66c2ec77 nodeRenderParams) at x996431aaaaf00543.x3064c6a807d3a0a8.x5b81632e5b71b64c(XmlDocument x5510939d5b9dcd91, SizeF xbc26217ba3290abe, x56ef2519e07fdbb4 x10154c16e21df88a) at x3d94286fe72124a8.x73d966e39902908a.xe406325e56f74b46(DrawingML x91ebfdc604552811) at x59d6a4fc5007b7a4.xa7492065dee59ad0.x539f48f6ee6ea753(xdeb77ea37ad74c56 x1e972e751678e682, Boolean& xf31bd0ec37d2cc8b) at x4adf554d20d941a6.x544de0c6d24f79dc.x2b797a3c54087a9b() at x4adf554d20d941a6.x544de0c6d24f79dc.get_xdc1bf80853046136() at x4adf554d20d941a6.xa67197c42bddc7dc.get_x887b872a95caaab5() at x4adf554d20d941a6.x56410a8dd70087c5.get_xdc1bf80853046136() at x4adf554d20d941a6.x6d3ade29d016f4ea.x5f6867bc5a977cb1() at x4adf554d20d941a6.x20de8d9377d7de69.xc3819e13f60dd8e6(xf6937c72cebe4ad1 x311e7a92306d7199) at x4adf554d20d941a6.x09e62a55cab70965.x5de571cf1cd1652c(xf6937c72cebe4ad1 x311e7a92306d7199) at x4adf554d20d941a6.x09e62a55cab70965.xc3819e13f60dd8e6(xf6937c72cebe4ad1 x311e7a92306d7199, Int32 xcd3a9f82634fe5f9) at x4adf554d20d941a6.x71da84fff8849445.xc3819e13f60dd8e6(x53cb1139c5c64ee6 xd7e5673853e47af4, Int32 xcd3a9f82634fe5f9, Boolean x3175070523842c98) at x4adf554d20d941a6.x4ddd0723770f9758.xb47a6df2eae4ba51() at x4adf554d20d941a6.x4ddd0723770f9758.xc3819e13f60dd8e6(x3d1ad8ce75f0db3a xd3311d815ca25f02, Int32 xd284dd7d525c5491, Boolean x3175070523842c98, Boolean x4097fa47409be495) at x4adf554d20d941a6.x3f7228e953be72ed.xd79114a9e7bc0d9e() at x4adf554d20d941a6.x3f7228e953be72ed.xc3819e13f60dd8e6(x852fe8bb5ac31098 xe3e287548b3d01f5, Int32 xd284dd7d525c5491) at x4adf554d20d941a6.x4af2add38e634ad4.xcbc2273143eac9ec(x852fe8bb5ac31098 xb6842aa1e60562e1) at x4adf554d20d941a6.x4af2add38e634ad4.xc3819e13f60dd8e6(xc7f90d9c7c51cede xbbe2f7d7c86e0379) at x4adf554d20d941a6.xac6c82c74ce247fb.xc3819e13f60dd8e6(Boolean xfad304b5f8f3bb5b) at x4adf554d20d941a6.xa268fdb9ca040dde.xc3819e13f60dd8e6(Boolean xfad304b5f8f3bb5b) at x59d6a4fc5007b7a4.xcde671c53995c411.xd9db07500873ae98(Document x3664041d21d73fdc, xdeb77ea37ad74c56 xdfde339da46db651) at Aspose.Words.Document.x410db0f4a89a6ef1(Boolean x24af0daafcd8fb8c) at Aspose.Words.Document.get_PageCount()

Hi Tim,


Thanks for your additional details. Issue is pending for analysis, you will be notify as soon as it is fixed.

The issues you have found earlier (filed as WORDSNET-5767) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.