我已创建SSRS报告并为其创建了新订阅。
我通过订阅将报告保存在共享位置。当我使用CSV和EXCEL 2003格式输出时,报告正在共享位置正确生成。但是,当我厌倦以EXCE和EXCEL(无头文件)格式保存文件时,我遇到了错误。
“写入文件失败[报告名称]:期间发生错误 呈现报告“
注意:当我从在线保存文件时,两种格式都正常工作我只在订阅中收到错误。
请提供相同的解决方案
从下面的日志文件中找到详细信息
错误:投掷 Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: , Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: 呈现报告期间发生错误。 ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: 呈现报告期间发生错误。 ---> System.IO.IsolatedStorage.IsolatedStorageException:无法执行 确定域名的身份。在 System.IO.IsolatedStorage.IsolatedStorage._GetAccountingInfo(证据 证据,类型证据类型,IsolatedStorageScope fAssmDomApp,Object& oNormalized)at System.IO.IsolatedStorage.IsolatedStorage.GetAccountingInfo(证据 证据,类型证据类型,IsolatedStorageScope fAssmDomApp,String& typeName,String& instanceName)at System.IO.IsolatedStorage.IsolatedStorage._InitStore(IsolatedStorageScope 范围,证据domainEv,类型domainEvidenceType,Evidence assemEv, 键入assemblyEvidenceType,Evidence appEv,Type appEvidenceType)at System.IO.IsolatedStorage.IsolatedStorage.InitStore(IsolatedStorageScope scope,类型domainEvidenceType,类型assemblyEvidenceType)at System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope scope,类型domainEvidenceType,类型assemblyEvidenceType)at MS.Internal.IO.Packaging.PackagingUtilities.ReliableIsolatedStorageFileFolder..ctor() 在 MS.Internal.IO.Packaging.PackagingUtilities.GetDefaultIsolatedStorageFile() 在 MS.Internal.IO.Packaging.PackagingUtilities.CreateUserScopedIsolatedStorageFileStreamWithRandomName(的Int32 retryCount,String& fileName)at MS.Internal.IO.Packaging.SparseMemoryStream.EnsureIsolatedStoreStream() 在MS.Internal.IO.Packaging.SparseMemoryStream.SwitchModeIfNecessary() 在MS.Internal.IO.Zip.ZipIOFileItemStream.Write(Byte []缓冲区,Int32 offset,Int32 count)at System.IO.Compression.DeflateStream.InternalWrite(Byte []数组,Int32 offset,Int32 count,Boolean isAsync)at System.IO.Compression.DeflateStream.Write(Byte []数组,Int32偏移量, Int32计数)在 MS.Internal.IO.Packaging.CompressStream.Write(Byte [] buffer,Int32 offset,Int32 count)at MS.Internal.IO.Zip.ProgressiveCrcCalculatingStream.Write(字节[] 缓冲区,Int32偏移量,Int32计数)at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Write(Byte [] buffer,Int32 offset,Int32 count)at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.XMLModel.XMLStreamsheetModel.WriteStreamToStream(流 from,Stream to)at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.XMLModel.XMLStreamsheetModel.Cleanup() 在 Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.OpenXmlGenerator.FinalizeWorksheet() 在 Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.OpenXmlGenerator.SaveSpreadsheet(流 outputStream,Stream backgroundImage,UInt16 backgroundImageWidth, UInt16 backgroundImageHeight)at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(报告 report,NameValueCollection reportServerParameters, NameValueCollection deviceInfo,NameValueCollection clientCapabilities,Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)---内部结束 异常堆栈跟踪--- at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(报告 report,NameValueCollection reportServerParameters, NameValueCollection deviceInfo,NameValueCollection clientCapabilities,Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.InvokeRenderer(IRenderingExtension 渲染器,报告报告,NameValueCollection reportServerParameters, NameValueCollection deviceInfo,NameValueCollection clientCapabilities,Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.Execute(IRenderingExtension newRenderer)---内部异常堆栈跟踪结束---;
答案 0 :(得分:3)
听起来你可能已经遇到了使用SSRS的this known issue。
尝试按照Connect文章中的建议错开订阅,或者如果结果报告是> 10 MB可能会查看报告中的数据量是否可以减少或者是否可以接受不同的输出格式。