I setup a subscription in a SQL Server 2012 SP1 Reporting Services instance that exports a 34MB file to the Excel 2007-2013 XLSX OpenXML render extension. The subscription throws the following error:
System.IO.IsolatedStorage.IsolatedStorageException: Unable to determine the identity of domain.
I verified it is possible to export the report from Report Manager to the Excel 2007-2013 XLSX OpenXML render extension without a problem. This error only occurs when the report is executed via a subscription. I have researched this and found the following recommendations on the web:
Two separate Microsoft Connect bug reports 764356 and 764556 that have no listed work arounds.
A recommendation to stagger the subscriptions so that only one runs at a time. This does not help since only one subscription is running at the time of the error.
A recommendation to use the Excel 2003 render method and break the rows into separate tabs to avoid the 65,536 row limit. I did verify this works, but this was not an acceptable solution from the business stakeholder's perspective.
A comment indicating any report using the Excel 2007-2013 render method that exceeds 10 MB in size switches from being generated in memory to using Isolated Storage. There's no explanation why this is bad and I assume this was done for a good reason -- perhaps to limit RAM consumption.
A suggestion to elevate permissions for users in the Isolated Storage folder for the ASP.NET application. I could not find where the Isolated Storage folder is located for Reporting Services.
A suggestion to wrap the ASP.NET's code for Isolated Storage with extra code that by-passes this problem. I couldn't find a way to apply this solution to Reporting Services since this is a shipped product from Microsoft.
A suggestion to modify the Report Manager and Report Server web.config files to include maxRequestLength="200000" in the httpRuntime node. This did not change the results.
A suggestion to increase memory settings explicitly in RSReportServer.config. This didn't seem like it would help since the error relates to Isolated Storage, but I tried it out of desparation. This did not change the results.
A suggestion to change the DatabaseQueryTimeout value from 120 to something larger. This did not change the results.
A suggestion to change the Subscription execution timeout value. This did not change the results.
Below is a copy of the full error log entry:
reportrendering!WindowsService_5!1628!04/03/2013-09:48:33:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: , Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> System.IO.IsolatedStorage.IsolatedStorageException: Unable to determine the identity of domain.
at System.IO.IsolatedStorage.IsolatedStorage._GetAccountingInfo(Evidence evidence, Type evidenceType, IsolatedStorageScope fAssmDomApp, Object& oNormalized)
at System.IO.IsolatedStorage.IsolatedStorage.GetAccountingInfo(Evidence evidence, Type evidenceType, IsolatedStorageScope fAssmDomApp, String& typeName, String& instanceName)
at System.IO.IsolatedStorage.IsolatedStorage._InitStore(IsolatedStorageScope scope, Evidence domainEv, Type domainEvidenceType, Evidence assemEv, Type assemblyEvidenceType, Evidence appEv, Type appEvidenceType)
at System.IO.IsolatedStorage.IsolatedStorage.InitStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType)
at System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType)
at MS.Internal.IO.Packaging.PackagingUtilities.ReliableIsolatedStorageFileFolder..ctor()
at MS.Internal.IO.Packaging.PackagingUtilities.GetDefaultIsolatedStorageFile()
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.Zip.ZipIOFileItemStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.Compression.DeflateStream.InternalWrite(Byte[] array, Int32 offset, Int32 count, Boolean isAsync)
at System.IO.Compression.DeflateStream.Write(Byte[] array, 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 Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.XMLModel.XMLStreamsheetModel.WriteStreamToStream(Stream from, Stream to)
at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.XMLModel.XMLStreamsheetModel.Cleanup()
at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.OpenXmlGenerator.FinalizeWorksheet()
at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.OpenXmlGenerator.NextWorksheet()
at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection