RDLC报表部署出错,本地正常,发布后就是出错不可用,跪求高手解答。。

sunny200904 2011-09-23 05:18:27
Asp.Net的项目,本地运行都是正常的,但是发布版本到服务器上的时候,老是报错“Microsoft.ReportViewer.WebForms本地报表处理期间出错。”
详细错误如下:
2011-9-23 15:17:56 Microsoft.ReportViewer.WebForms本地报表处理期间出错。 在 Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)
在 Microsoft.Reporting.WebForms.LocalReport.Render(String format, String deviceInfo, CreateStreamCallback createStream, Warning[]& warnings)
在 BGJManagement.ToolsClass.Print_Control.Export(LocalReport report) 位置 G:\BGJ_1\BGJManagement\ToolsClass\Print_Control.cs:行号 597
在 BGJManagement.ToolsClass.Print_Control.Print(String type, String operationid) 位置 G:\BGJ_1\BGJManagement\ToolsClass\Print_Control.cs:行号 85Void InternalRender(System.String, Boolean, System.String, Microsoft.ReportingServices.Interfaces.CreateAndRegisterStream, Microsoft.Reporting.WebForms.Warning[] ByRef)Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException: 呈现报表时出错。 ---> Microsoft.ReportingServices.ReportRendering.ReportRenderingException: 呈现报表时出错。 ---> System.UnauthorizedAccessException: 对路径“c:\windows\system32\inetsrv\Report_AI_Print_1.emf”的访问被拒绝。
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
在 System.IO.FileStream..ctor(String path, FileMode mode)
在 BGJManagement.ToolsClass.Print_Control.CreateStream(String name, String fileNameExtension, Encoding encoding, String mimeType, Boolean willSeek) 位置 G:\BGJ_1\BGJManagement\ToolsClass\Print_Control.cs:行号 611
在 Microsoft.Reporting.WebForms.ProcessingStreamHandler.StreamCallback(String name, String extension, Encoding encoding, String mimeType, Boolean useChunking, StreamOper operation)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionGDI.CreateMetafile(EmfType emfType)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionGDI.CreateProtectedMetafile(EmfType emfType)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionGDI.NewPhysicalPage()
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionBase.NextUsableArea()
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionBase.NextHorizontalPage()
在 Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.ProcessPages(CompositionBase theComposition, Report theReport, Boolean needTotalPages, Int32 startPage, Int32 endPage, Boolean render)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport.RenderReport(Report report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStreamCallback, Int32 streamPageNumber)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStream)
--- 内部异常堆栈跟踪的结尾 ---
在 Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStream)
在 Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension renderer, DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc, CreateReportChunk cacheDataCallback, Boolean& dataCached)
--- 内部异常堆栈跟踪的结尾 ---
在 Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension renderer, DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc, CreateReportChunk cacheDataCallback, Boolean& dataCached)
在 Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension renderer, DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc)
在 Microsoft.Reporting.LocalService.RenderWithDataCache(PreviewItemContext itemContext, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, IRenderingExtension renderer, ReportProcessing repProc, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup)
在 Microsoft.Reporting.LocalService.Render(PreviewItemContext itemContext, Boolean allowInternalRenderers, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup, ProcessingMessageList& warnings)
在 Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)System.Collections.ListDictionaryInternalSystem.UnauthorizedAccessException: 对路径“c:\windows\system32\inetsrv\Report_AI_Print_1.emf”的访问被拒绝。
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
在 System.IO.FileStream..ctor(String path, FileMode mode)
在 BGJManagement.ToolsClass.Print_Control.CreateStream(String name, String fileNameExtension, Encoding encoding, String mimeType, Boolean willSeek) 位置 G:\BGJ_1\BGJManagement\ToolsClass\Print_Control.cs:行号 611
在 Microsoft.Reporting.WebForms.ProcessingStreamHandler.StreamCallback(String name, String extension, Encoding encoding, String mimeType, Boolean useChunking, StreamOper operation)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionGDI.CreateMetafile(EmfType emfType)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionGDI.CreateProtectedMetafile(EmfType emfType)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionGDI.NewPhysicalPage()
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionBase.NextUsableArea()
在 Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionBase.NextHorizontalPage()
在 Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.ProcessPages(CompositionBase theComposition, Report theReport, Boolean needTotalPages, Int32 startPage, Int32 endPage, Boolean render)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport.RenderReport(Report report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStreamCallback, Int32 streamPageNumber)
在 Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStream)
...全文
297 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunny200904 2011-09-26
  • 打赏
  • 举报
回复
没有人解答?确实着急啊。。已经过了三天了。。。我觉得本地没有问题,只是发布出现问题,肯定只是某个配置不正确。应该只需要捅破窗户纸了。。。不知道哪位能帮我解答。。
liuying1982000 2011-09-25
  • 打赏
  • 举报
回复
帮顶帮顶

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧