Hi,
I'm using WebForm ReportViewer in Telerik Reporting version 2.9.9.202. I have a problem with SkinPath property because it sees relative url incorrectly when website is hosted right on a web application (without under virtual path). In that case, the path was resolved incorrectly so it causes all images on viewer to be broken (disappear).
I use below simple markup ReportViewer on ascx user control (put on a page named ViewReport.aspx)
In above code, I set a relative url in SkinsPath property in order the image folder's path is always resolved correctly wherever this user control would be put. And the issue comes up when I deploy the web site to IIS. There are two cases:
1. When my website is hosted under a virtual path of a web application (e.x: http://localhost/TelerikApp/ViewReport.aspx, TelerikApp here is a virtual path on web application, not a folder in website), the images show up fine on report viewer (image's url is /TelerikApp/Teleriks/Images/[name].gif).
2. When the website is hosted right on a web application without virtual path (e.x: http://localhost/ViewReport.aspx), images disappear on report viewer because it was resovled incorrectly. I used Firebug to debug and saw the image's url is "//Teleriks/Images/[name].gif".
Does ReportViewer cause that behaviour (resolving the relative url in SkinPath property) or it's default ASP.NET processing ? If it's Telerik, could you help me find a solution (because i'm going to put ReportViewer markup in skin file so the path should be consistent) ?
I'm using WebForm ReportViewer in Telerik Reporting version 2.9.9.202. I have a problem with SkinPath property because it sees relative url incorrectly when website is hosted right on a web application (without under virtual path). In that case, the path was resolved incorrectly so it causes all images on viewer to be broken (disappear).
I use below simple markup ReportViewer on ascx user control (put on a page named ViewReport.aspx)
<telerik:ReportViewer ID="rptView" runat="server" Skin="ReportViewer" SkinsPath="~/Teleriks/Images" ... /> |
In above code, I set a relative url in SkinsPath property in order the image folder's path is always resolved correctly wherever this user control would be put. And the issue comes up when I deploy the web site to IIS. There are two cases:
1. When my website is hosted under a virtual path of a web application (e.x: http://localhost/TelerikApp/ViewReport.aspx, TelerikApp here is a virtual path on web application, not a folder in website), the images show up fine on report viewer (image's url is /TelerikApp/Teleriks/Images/[name].gif).
2. When the website is hosted right on a web application without virtual path (e.x: http://localhost/ViewReport.aspx), images disappear on report viewer because it was resovled incorrectly. I used Firebug to debug and saw the image's url is "//Teleriks/Images/[name].gif".
Does ReportViewer cause that behaviour (resolving the relative url in SkinPath property) or it's default ASP.NET processing ? If it's Telerik, could you help me find a solution (because i'm going to put ReportViewer markup in skin file so the path should be consistent) ?