Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 10672

System.IO.IsolatedStorage.IsolatedStorageFileStream error

$
0
0

Hi,

We use OpenXml to prepare Excel speadsheets from a web service we coded ourselves. As of two days ago our production server gives errors in the Microsoft internals for file handling if the spreadsheet is above certain size. We have not been able to replicate it on any other server and it still occurs after a machine restart. The error seems to be strictly related to file size, for instance if we choose a spreadsheet with less columns then we can create one with more rows. The code that produces this has not been changed about 6 months and we can think of no other changes to the server that may cause this.

The stack trace is below. The error seems to be thrown from IsolatedStorage.

System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, IsolatedStorageFile isf)

   at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, IsolatedStorageFile isf)

   at MS.Internal.IO.Packaging.PackagingUtilities.SafeIsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, ReliableIsolatedStorageFileFolder folder)

   at MS.Internal.IO.Packaging.PackagingUtilities.CreateUserScopedIsolatedStorageFileStreamWithRandomName(Int32 retryCount, String& fileName)

   at MS.Internal.IO.Packaging.SparseMemoryStream.EnsureIsolatedStoreStream()

   at MS.Internal.IO.Packaging.SparseMemoryStream.SwitchModeIfNecessary()

   at MS.Internal.IO.Packaging.CompressEmulationStream.Write(Byte[] buffer, Int32 offset, Int32 count)

   at MS.Internal.IO.Packaging.CompressStream.Write(Byte[] buffer, Int32 offset, Int32 count)

   at MS.Internal.IO.Zip.ProgressiveCrcCalculatingStream.Write(Byte[] buffer, Int32 offset, Int32 count)

   at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Write(Byte[] buffer, Int32 offset, Int32 count)

   at System.Xml.XmlUtf8RawTextWriter.FlushBuffer()

   at System.Xml.XmlUtf8RawTextWriter.RawText(Char* pSrcBegin, Char* pSrcEnd)

   at System.Xml.XmlUtf8RawTextWriter.WriteStartElement(String prefix, String localName, String ns)

   at System.Xml.XmlWellFormedWriter.WriteStartElement(String prefix, String localName, String ns)

   at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)

   at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)

   at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)

   at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)

   at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)

   at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)

   at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)

   at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)

   at DocumentFormat.OpenXml.OpenXmlPartRootElement.WriteTo(XmlWriter xmlWriter)

   at DocumentFormat.OpenXml.OpenXmlPartRootElement.SaveToPart(OpenXmlPart openXmlPart)

   at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.SavePartContents()

   at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Dispose(Boolean disposing)

   at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Dispose()

  at OurCode.OpenXmlAnalysisReports.ExcelTranslator.TranslateExcel(String rawFileName) in


James.


Viewing all articles
Browse latest Browse all 10672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>