Hello Walter,
Adding the virtual Render method in our code, with a try-catch around
base.Render we get an exception with:
Cannot use a leading .. to exit above the top directory.
at System.Web.Util .UrlPath.Reduce VirtualPath(Str ing path)
at System.Web.Util .UrlPath.Reduce (String path)
at System.Web.Util .UrlPath.Combin e(String appPath, String basepath, String
relative)
at System.Web.UI.C ontrol.ResolveC lientUrl(String relativeUrl)
at System.Web.UI.W ebControls.Imag e.AddAttributes ToRender(HtmlTe xtWriter
writer)
at System.Web.UI.W ebControls.WebC ontrol.RenderBe ginTag(HtmlText Writer
writer)
at System.Web.UI.W ebControls.WebC ontrol.Render(H tmlTextWriter writer)
at System.Web.UI.C ontrol.RenderCo ntrolInternal(H tmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer, ControlAdapter
adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer)
at System.Web.UI.W ebControls.Hype rLink.RenderCon tents(HtmlTextW riter writer)
at System.Web.UI.W ebControls.WebC ontrol.Render(H tmlTextWriter writer)
at System.Web.UI.C ontrol.RenderCo ntrolInternal(H tmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer, ControlAdapter
adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer)
at System.Web.UI.C ontrol.RenderCh ildrenInternal( HtmlTextWriter writer,
ICollection children)
at System.Web.UI.C ontrol.RenderCh ildren(HtmlText Writer writer)
at System.Web.UI.W ebControls.Tabl eCell.RenderCon tents(HtmlTextW riter writer)
at System.Web.UI.W ebControls.WebC ontrol.Render(H tmlTextWriter writer)
at System.Web.UI.C ontrol.RenderCo ntrolInternal(H tmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer, ControlAdapter
adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer)
at System.Web.UI.C ontrol.RenderCh ildrenInternal( HtmlTextWriter writer,
ICollection children)
at System.Web.UI.C ontrol.RenderCh ildren(HtmlText Writer writer)
at System.Web.UI.W ebControls.WebC ontrol.RenderCo ntents(HtmlText Writer
writer)
at System.Web.UI.W ebControls.WebC ontrol.Render(H tmlTextWriter writer)
at System.Web.UI.C ontrol.RenderCo ntrolInternal(H tmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer, ControlAdapter
adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer)
at System.Web.UI.W ebControls.Tabl e.RenderContent s(HtmlTextWrite r writer)
at System.Web.UI.W ebControls.WebC ontrol.Render(H tmlTextWriter writer)
at System.Web.UI.C ontrol.RenderCo ntrolInternal(H tmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer, ControlAdapter
adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer)
at System.Web.UI.C ontrol.RenderCh ildrenInternal( HtmlTextWriter writer,
ICollection children)
at System.Web.UI.C ontrol.RenderCh ildren(HtmlText Writer writer)
at System.Web.UI.W ebControls.WebC ontrol.RenderCo ntents(HtmlText Writer
writer)
at System.Web.UI.W ebControls.Base DataList.Render (HtmlTextWriter writer)
at System.Web.UI.C ontrol.RenderCo ntrolInternal(H tmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer, ControlAdapter
adapter)
at System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer)
at System.Web.UI.C ontrol.RenderCh ildrenInternal( HtmlTextWriter writer,
ICollection children)
at System.Web.UI.C ontrol.RenderCh ildren(HtmlText Writer writer)
at System.Web.UI.C ontrol.Render(H tmlTextWriter writer)
This seems to be generated by the skinId, when the hyperlink try to add its
image in the anchor.
I still dont understand why, and why when adding a div around this, all
seems to work....I have checked, there are no reasons for 'a leading .. to
exit above the top directory' in our skinid and in the current server
executing path ?????,
And I don't understand why the exception is not sent to our Application
Error Handler in global.asax, under normal conditions all our exceptions
catching are traced and rethrow to reach global handler.
And I get no trace ???? the Page.render continue its work, missing some
parts of the rendering (no closing </a>).
Is it possible that .net catches something from the sending of Render
without any warning or trace?
CS
"Walter Wang [MSFT]" <wa****@online. microsoft.coma écrit dans le message
de news:
ek************* *@TK2MSFTNGHUB0 2.phx.gbl...
Hi CS,
I think we can use some mock data to test the skin behavior.
Sorry I cannot tell exactly what might be wrong at current moment without
full code listing.
Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.