I’m building a
DotNetNuke module with the Telerik ImageGallery. When the module is on a
page in the root of the menu it is working fine. When I put it in a child page
I get an error. This error only occurs when there are image items in the
gallery. When the gallery is empty it’s okay. Anyone an idea what is happening
here?
AssemblyVersion:7.3.2
PortalID:0
PortalName:My Website
UserID:1
UserName:host
ActiveTabID:89
ActiveTabName:ImageGallery 2
RawURL:/ImageGallery-1/ImageGallery-2
AbsoluteURL:/Default.aspx
AbsoluteURLReferrer:http://dotnetnuketest/ImageGallery-1
UserAgent:Mozilla/5.0 (Windows NT 6.3; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.102 Safari/537.36
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider,
DotNetNuke
ExceptionGUID:0245fd77-2eb7-4566-8f88-ced847a17ce5
InnerException:Cannot use a leading .. to
exit above the top directory.
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.Web.Util.UrlPath.ReduceVirtualPath
StackTrace:
Message:
DotNetNuke.Services.Exceptions.PageLoadException:
Cannot use a leading .. to exit above the top directory. --->
System.Web.HttpException: Cannot use a leading .. to exit above the top
directory.
at System.Web.Util.UrlPath.ReduceVirtualPath(String
path)
at System.Web.Util.UrlPath.Reduce(String
path)
at
System.Web.UI.Control.ResolveClientUrl(String relativeUrl)
at
Telerik.Web.UI.ImageGalleryItemConverter.Serialize(Object obj,
JavaScriptSerializer serializer)
at
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o,
StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat
serializationFormat, MemberInfo currentMember)
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable(IEnumerable
enumerable, StringBuilder sb, Int32 depth, Hashtable objectsInUse,
SerializationFormat serializationFormat)
at
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object
o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat
serializationFormat, MemberInfo currentMember)
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object
o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat
serializationFormat, MemberInfo currentMember)
at
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj,
SerializationFormat serializationFormat)
at
Telerik.Web.UI.RadImageGallery.DescribeClientProperties(IScriptDescriptor
descriptor)
at
Telerik.Web.UI.RadCompositeDataBoundControl.DescribeComponent(IScriptDescriptor
descriptor)
at Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(Control
control)
at
Telerik.Web.UI.RadCompositeDataBoundControl.GetScriptDescriptors()
at
System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl
scriptControl)
at
Telerik.Web.UI.RadCompositeDataBoundControl.RenderContents(HtmlTextWriter
writer)
at
Telerik.Web.UI.RadImageGallery.RenderContents(HtmlTextWriter writer)
at
Telerik.Web.UI.RadCompositeDataBoundControl.Render(HtmlTextWriter writer)
at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection
children)
at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter
writer, ICollection children)
at
DotNetNuke.UI.Modules.ModuleHost.RenderContents(HtmlTextWriter writer)
at
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter
writer, ControlAdapter adapter)
at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection
children)
at
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter
writer, ControlAdapter adapter)
at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection
children)
at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter
adapter)
at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection
children)
at
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection
children)
at
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection
children)
at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection
children)
at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter
writer, ICollection children)
at
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter
writer, ControlAdapter adapter)
at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection
children)
at
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter
writer, ControlAdapter adapter)
at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection
children)
at System.Web.UI.Page.Render(HtmlTextWriter
writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter
writer, ControlAdapter adapter)
at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
View.ascx:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="View.ascx.cs" Inherits="Christoc.Modules.ImageGalleryTest.View" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<telerik:RadImageGallery ID="RadImageGallery1" runat="server">
<Items>
<telerik:ImageGalleryItem Description="International
" ImageUrl="Images/1.jpg" Title="International
University" />
</Items>
</telerik:RadImageGallery>