ReportViewer RDLC - Azure Websites Error 80004005

Hope someone can help me. This is killing me. I spent several hours on this, and my client is becoming more and more frustrated. :(

I host on Azure and Azure SQL sites. I use v.10 report collections. Everything works perfectly fine from Azure (localhost, no problem)

I have a ReportViewer in ASP.NET in a user control. ReportViewer and RDLC work great for displaying and exporting to Excel / Word, however I am having problems exporting and printing PDFs in IE.

When printing:

Request: An error occurred while printing. (0x80004005)

and

Webpage Error Details

User agent: Mozilla / 4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident / 5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729;. NETWORK CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath. 3) Timestamp: Wed, Apr 24. 2013 03:18:56 UTC

Message: Undefined error. Line: 1058 Char: 13 Code: 0 URI: http://XXXXXXX.azurewebsites.net/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=10.0.40219.329&Name=ViewerScript

Line 1058 of this .axd:

printObj.Print (printInfo.PrintRequestPath, printInfo.PrintRequestQuery, printInfo.ReportDisplayName);

When exporting to PDF:

Server error in application "/".

. : -. , .

: System.ArgumentException: .

:

-. .

:

[ArgumentException: .]
System.Drawing.Graphics.GetHdc() +1143305
Microsoft.ReportingServices.Rendering.RichText.LineBreaker.Flow(TextBox textBox, Graphics g, FontCache fontCache, FlowContext flowContext, Boolean keepLines, Single & ) +57
Microsoft.ReportingServices.Rendering.RichText.TextBox.MeasureFullHeight(TextBox textBox, Graphics g, FontCache fontCache, FlowContext flowContext, & contentHeight) +500
Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.DetermineVerticalSize(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, 1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors) +381
Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.CalculateVertical(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, PageItem[] siblings, List
1 ancestors, Boolean & anyAncestorHasKT, Boolean hasUnpinnedAncestors, Nullable 1 sourceWidth) +695
Microsoft.ReportingServices.Rendering.HPBProcessing.RowInfo.CalculateVerticalLastDetailCell(PageContext context, Boolean firstTouch, Boolean delayCalc) +411
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateDetailCell(Tablix tablix, TablixMember colMemberParent, Int32 colGridIndex, RowInfo rowInfo, PageContext pageContext) +822
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.TraverseColumnMembers(Tablix tablix, TablixMember colMemberParent, Int32 parentColIndex, RowInfo currRowInfo, Boolean create, Double startInTablix, Double endInTablix, Int32& detailCellIndex, Int32& visibleSpan, List
1 detailCellsState, ) +108
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.TraverseColumnMembers(Tablix tablix, TablixMember colMemberParent, Int32 parentColIndex, RowInfo currRowInfo, Boolean create, Double startInTablix, Double endInTablix, Int32 & detailCellIndex, Int32 & visibleSpan, List 1 detailCellsState, PageContext pageContext) +869
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateDetailRow(Tablix tablix, TablixMember rowMemberParent, Int32 parentRowIndex, Int32 parentColIndex, PageContext pageContext) +292
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext) +137
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext) +2822
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext) +2822
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext) +2822
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateTablixRows(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, List
1 & pageStructMemberCell, Boolean ignoreTotals, Boolean & finishLevel, Boolean parentHasFooters, CreateItemsContext createItems, Double startInTablix, Double endInTablix, PageContext pageContext) +2310 Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateTablixItems(Tablix tablix, PageContext pageContext, CreateItemsContext createItems, Double startInTablix, Double endInTablix) +113
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateVertically(PageContext pageContext, CreateItemsContext createItems, Double startInTablix, Double endInTablix, Double topInParentSystem) +286
Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.DetermineVerticalSize(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, 1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors) +646
Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.CalculateVertical(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, PageItem[] siblings, List
1 ancestors, Boolean & anyAncestorHasKT, Boolean hasUnpinnedAncestors, Nullable 1 sourceWidth) +695
Microsoft.ReportingServices.Rendering.HPBProcessing.PageItemContainer.DetermineContentVerticalSize(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, List
1 ancestors, Boolean & anyAncestorHasKT, Boolean hasUnpinnedAncestors, Boolean resolveState, Boolean resolveItem) +273 Microsoft.ReportingServices.Rendering.HPBProcessing.PageItemContainer.DetermineVerticalSize(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, 1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors) +145
Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.CalculateVertical(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, PageItem[] siblings, List
1 ancestors, Boolean & anyAncestorHasKT, Boolean hasUnpinnedAncestors, Nullable 1 sourceWidth) +695
Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.CalculateVertical(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, PageItem[] siblings, List
1 ancestors, Boolean & anyAncestorHasKT, Boolean hasUnpinnedAncestors) +53
Microsoft.ReportingServices.Rendering.HPBProcessing.Report.NextPage(RPLWriter rplWriter, Int32, Int32 ) +659 | Microsoft.ReportingServices.Rendering.HPBProcessing.HPBProcessing.NextPage() +52 Microsoft.ReportingServices.Rendering.HPBProcessing.HPBProcessing.Init( , PaginationSettings pagination, CreateAndRegisterStream createAndRegisterStream, Hashtable & renderProperties) +348
Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer.Render( , NameValueCollection deviceInfo, Hashtable renderProperties, CreateAndRegisterStream createAndRegisterStream) +141
Microsoft.ReportingServices.Rendering.ImageRenderer.RendererBase.Render( , NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable & renderProperties, CreateAndRegisterStream createAndRegisterStream) +61

[LocalProcessingException: .]
Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, [] & ) +333
Microsoft.Reporting.WebForms.LocalModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection Params, Boolean cacheSecondaryStreamsForHtml, String & mimeType, String & fileNameExtension) +215
Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse) +154
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext ) +216
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341 System.Web.HttpApplication.ExecuteStep( IExecutionStep, Boolean & ) +69

----------------------------------------------- --------------------------------- : Microsoft.NET Framework : 4.0.30319; ASP.NET: 4.0.30319.17929

.

+5
3

PDF WAWS, WebRole - . ! ( WAWS)

+3

, Azure Web Site (). .

+3

another possibility could be a lack dllsin the cloud. For reports, since you referenced a dll Microsoft.Reporting.Webformsthat is locally stored on your local drive and does not pack when the application is deployed in the cloud. So, suppose we also copy / upload / deploy these dllson the cloud too.

0
source

All Articles