问题描述
ServerErrorin'/'Application.--------------------------------------------------------------------------------Cannotusealeading..toexitabovethetopdirectory.Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktraceformoreinformationabouttheerrorandwhereitoriginatedinthecode.ExceptionDetails:System.Web.HttpException:Cannotusealeading..toexitabovethetopdirectory.SourceError:Anunhandledexceptionwasgeneratedduringtheexecutionofthecurrentwebrequest.Informationregardingtheoriginandlocationoftheexceptioncanbeidentifiedusingtheexceptionstacktracebelow.StackTrace:[HttpException(0x80004005):Cannotusealeading..toexitabovethetopdirectory.]System.Web.Util.UrlPath.ReduceVirtualPath(Stringpath)+3527382System.Web.Util.UrlPath.Reduce(Stringpath)+84System.Web.Util.UrlPath.Combine(StringappPath,Stringbasepath,Stringrelative)+355System.Web.UI.Control.ResolveClientUrl(StringrelativeUrl)+196System.Web.UI.HtmlControls.HtmlLink.RenderAttributes(HtmlTextWriterwriter)+112System.Web.UI.HtmlControls.HtmlLink.Render(HtmlTextWriterwriter)+39System.Web.UI.Control.RenderControlInternal(HtmlTextWriterwriter,ControlAdapteradapter)+25System.Web.UI.Control.RenderControl(HtmlTextWriterwriter,ControlAdapteradapter)+121System.Web.UI.Control.RenderControl(HtmlTextWriterwriter)+22System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriterwriter,ICollectionchildren)+130System.Web.UI.Control.RenderChildren(HtmlTextWriterwriter)+24System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriterwriter)+14System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriterwriter)+29System.Web.UI.Control.RenderControlInternal(HtmlTextWriterwriter,ControlAdapteradapter)+25System.Web.UI.Control.RenderControl(HtmlTextWriterwriter,ControlAdapteradapter)+121System.Web.UI.Control.RenderControl(HtmlTextWriterwriter)+22System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriterwriter,ICollectionchildren)+130System.Web.UI.Control.RenderChildren(HtmlTextWriterwriter)+24System.Web.UI.Control.Render(HtmlTextWriterwriter)+7System.Web.UI.Control.RenderControlInternal(HtmlTextWriterwriter,ControlAdapteradapter)+25System.Web.UI.Control.RenderControl(HtmlTextWriterwriter,ControlAdapteradapter)+121System.Web.UI.Control.RenderControl(HtmlTextWriterwriter)+22System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriterwriter,ICollectionchildren)+130System.Web.UI.Control.RenderChildren(HtmlTextWriterwriter)+24System.Web.UI.Page.Render(HtmlTextWriterwriter)+26System.Web.UI.Control.RenderControlInternal(HtmlTextWriterwriter,ControlAdapteradapter)+25System.Web.UI.Control.RenderControl(HtmlTextWriterwriter,ControlAdapteradapter)+121System.Web.UI.Control.RenderControl(HtmlTextWriterwriter)+22System.Web.UI.Page.ProcessRequestMain(BooleanincludeStagesBeforeAsyncPoint,BooleanincludeStagesAfterAsyncPoint)+1896
解决方案
解决方案二:
没人回答吗?帮帮忙!
解决方案三:
这服务器运行时错误,,,你在本机上运行下程序就知道具体是哪出错了
解决方案四:
在本机上正常。
解决方案五:
说你无法使用前导..在顶级目录上退出.就是说你有页面跳转的路径不对.
解决方案六:
我在本机上测试正常,上传服务器上就报错,不知道为什么?
解决方案七:
Cannotusealeading..toexitabovethetopdirectory.Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktraceformoreinformationabouttheerrorandwhereitoriginatedinthecode.ExceptionDetails:System.Web.HttpException:Cannotusealeading..toexitabovethetopdirectory.已经很明显了,无法使用前导..在顶级目录上退出.你本机上怎么可能正常