all groups > sql server reporting services > december 2004 >
You're in the

sql server reporting services

group:

GUID in parameter causes 'Invalid URI: The hostname could not be parsed'


GUID in parameter causes 'Invalid URI: The hostname could not be parsed' Jeremy M. White
12/23/2004 7:11:42 AM
sql server reporting services:
I have a report in which I have a GUID as a parameter. This has worked
fine until I ran across one instance where I get the following error:

=======================================================================================================
Exception of type
Microsoft.ReportingServices.ReportRendering.ReportRenderingException
was thrown. (rrRenderingError) Get Online Help
Exception of type
Microsoft.ReportingServices.ReportRendering.ReportRenderingException
was thrown.
Invalid URI: The hostname could not be parsed.
=======================================================================================================


The parameter in question is: sessionID =
2dfbf18f-722b-4664-8c09-8b73024a93c9
The full url is:
https://[DOMAIN_URL]/Reports/Pages/Report.aspx?ServerUrl=https%3a%2f%2f[DOMAIN_URL]%2fReportServer%3f%252fEnterprise%252fISD%252fWeb%2bUsage%2bReports%252fSessionConsolidated%26sessionID%3d2dfbf18f-722b-4664-8c09-8b73024a93c9%26rs%253aParameterLanguage%3d%26rc%253aParameters%3dCollapsed%26rc%253aReplacementRoot%3dhttps%253a%252f%252fintranet.test.dartcontainer.com%252fReports%252fPages%252fReport.aspx%253fServerUrl%253d

This is the first GUID that I have run across that has caused a
problem. Could it be a combination of the characters in the guid that
is causing Reporting Services to have a problem with the parameter? If
so, how likely is this to happen again?


The Full Error from the error log is:
=======================================================================================================
w3wp!reportrendering!d70!12/23/2004-09:57:45:: e ERROR: Throwing
Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
Exception of type
Microsoft.ReportingServices.ReportRendering.ReportRenderingException
was thrown., ;
Info:
Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
Exception of type
Microsoft.ReportingServices.ReportRendering.ReportRenderingException
was thrown. --->
Microsoft.ReportingServices.ReportRendering.ReportRenderingException:
Exception of type
Microsoft.ReportingServices.ReportRendering.ReportRenderingException
was thrown. ---> System.UriFormatException: Invalid URI: The hostname
could not be parsed.
at System.Uri.Parse()
at System.Uri..ctor(String uriString, Boolean dontEscape)
at System.Uri..ctor(String uriString)
at
Microsoft.ReportingServices.ReportRendering.ReportUrl..ctor(RenderingContext
reportContext, String initialUrl, Boolean checkProtocol,
NameValueCollection unparsedParameters, Boolean useReplacementRoot)
at
Microsoft.ReportingServices.ReportRendering.ReportUrl.BuildHyperLinkURL(String
hyperLinkUrlValue, RenderingContext renderingContext)
at
Microsoft.ReportingServices.ReportRendering.TextBox.get_HyperLinkURL()
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.GetTextBoxActionUri(TextBox
textBox, String& uniqueNameId, String& bookmarkLink)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTextBoxContent(TextBox
textBox, String textBoxValue, Style textBoxStyle, Boolean
renderToggleImage)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTextBoxPercent(TextBox
textBox)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderReportItem(ReportItem
reportItem, Int32 borderContext, Boolean renderId)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTableDetails(TableRowsCollection
detailRows, Int32 start, Int32 end, TableColumnCollection columns,
TableContext tableContext)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderTableGroup(TableGroup
tableGroup, TableAction action, Int32& totalRows, TableColumnCollection
columns, TableContext tableContext)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderAllTable(Table
table, TableAction action, Int32& totalRows, TableContext tableContext)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTableContent(Table
table, Int32 startPage, Int32 endPage, Int32 tableBorderContext)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTable(Table
table, Int32 startPage, Int32 endPage, Int32& borderContext, Boolean
renderId)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderReportItem(ReportItem
reportItem, Int32 borderContext, Boolean renderId)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderCellItems(ReportItemCollection
repItemCol, Hashtable partialItems, Hashtable expandItems,
PageTableCell currCell, Int32 borderContext, Int32 linkToChild, Boolean
layoutExpand)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.GenerateTableLayoutContent(PageTableLayout
rgTableGrid, Hashtable partialItems, ReportItemCollection repItemCol,
Boolean bfZeroRowReq, Boolean bfZeroColReq, String docMapId, Boolean
inDocMap, Boolean renderHeight, Int32 borderContext, Int32 linkToChild,
Boolean layoutExpand)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.GenerateHTMLTable(ReportItemCollection
repItemCol, Double dxParent, Double dyParent, PageData pageData, String
docMapId, Boolean inDocMap, Int32 borderContext, Int32 linkToChild,
Boolean expandLayout)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderRectangle(Rectangle
rectangle, PageData pageData, Int32& borderContext, Boolean renderId)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderPage(Int32
index)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderPages()
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderBody(HtmlTextWriter
htmlTextWriter)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.ViewerReportArea.RenderBody(HtmlTextWriter
outputWriter)
at
Microsoft.ReportingServices.WebServer.ContainerControl.RenderBody(HtmlTextWriter
outputWriter)
at
Microsoft.ReportingServices.WebServer.HTMLViewerPage.Render(HtmlTextWriter
outputWriter)
at
Microsoft.ReportingServices.WebServer.HtmlArea.Render(HtmlTextWriter
outputWriter)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.ViewerReportArea.Render(HtmlTextWriter
outputWriter)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.Html40RenderingExtension.InternalRender(Report
report, NameValueCollection reportServerParameters, NameValueCollection
deviceInfo, NameValueCollection clientCapabilities,
EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions,
CreateAndRegisterStream createAndRegisterStream)
at
Microsoft.ReportingServices.Rendering.HtmlRenderer.RenderingExtensionBase.Render(Report
report, NameValueCollection reportServerParameters, NameValueCollection
deviceInfo, NameValueCollection clientCapabilities,
EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions,
CreateAndRegisterStream createAndRegisterStream)
Re: GUID in parameter causes 'Invalid URI: The hostname could not be parsed' Jeremy M. White
12/23/2004 7:21:29 AM
I would like to clarify that I am using the GUID parameter as a string.
Therefore, this issue is not related to the GUID conversion for a
parameter. "2dfbf18f-722b-4664-8c09-8b73024a93c9" is the only GUID I
have run across thus far that does not work.
Thank you for any insight you may be able to provide.

Jeremy
Re: GUID in parameter causes 'Invalid URI: The hostname could not be parsed' Bruce L-C [MVP]
12/23/2004 12:51:31 PM
Are you sure it isn't just the combination of everthing, that the URL just
got too long. There is a limit to URL length.

--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]
============================================================================
===========================
[quoted text, click to view]
============================================================================
===========================
[quoted text, click to view]
============================================================================
===========================
[quoted text, click to view]
Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException
:
[quoted text, click to view]
Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException
:
[quoted text, click to view]
Microsoft.ReportingServices.ReportRendering.ReportUrl.BuildHyperLinkURL(Stri
ng
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.GetTextBoxAc
tionUri(TextBox
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTextB
oxContent(TextBox
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTextB
oxPercent(TextBox
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderRepor
tItem(ReportItem
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTable
Details(TableRowsCollection
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderTableG
roup(TableGroup
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderAllTab
le(Table
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTable
Content(Table
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderTable
(Table
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderRepor
tItem(ReportItem
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderCellIt
ems(ReportItemCollection
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.GenerateTab
leLayoutContent(PageTableLayout
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.GenerateHTM
LTable(ReportItemCollection
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.RenderRecta
ngle(Rectangle
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderPage(I
nt32
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderPages(
)
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.BaseRenderer.RenderBody(H
tmlTextWriter
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.ViewerReportArea.RenderBo
dy(HtmlTextWriter
[quoted text, click to view]
Microsoft.ReportingServices.WebServer.ContainerControl.RenderBody(HtmlTextWr
iter
[quoted text, click to view]
Microsoft.ReportingServices.Rendering.HtmlRenderer.ViewerReportArea.Render(H
tmlTextWriter
[quoted text, click to view]
Re: GUID in parameter causes 'Invalid URI: The hostname could not be parsed' Brian Welcker [MS]
12/29/2004 3:39:52 AM
No, I think we have a problem with the 2b in the parameter value. I think
this is on the fix list for SP2.

--
Brian Welcker
Group Program Manager
Microsoft SQL Server

This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]
Re: GUID in parameter causes 'Invalid URI: The hostname could not be parsed' Brian Welcker [MS]
12/30/2004 12:00:18 PM
Does this happen without Report Manager, just by using plain Report Server
URL access (http://servername/reportserver)?

--
Brian Welcker
Group Program Manager
Microsoft SQL Server

This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

Re: GUID in parameter causes 'Invalid URI: The hostname could not be parsed' Jeremy M. White
1/6/2005 6:25:53 AM
It appears as though the issue is with the data I am receiving from the
database. I am using a textbox that displays "Visit" and it has a
navigation action on it to a url supplied by the database. One of the
urls that was returned by that particular set of data was causing the
navigation action to fail when the report was rendered. So it was
actually the navigation action for the textbox that was not able to
handle the invalid url.

I changed the code to do some reudimentary checks to determine if the
url was vaild before assigning it to the navigation action.
Thank you all for your assistance.
AddThis Social Bookmark Button