奇怪的 HttpException 让我抓狂
我尝试使用 Meridium 中名为 的模块列出 VPP 文件夹中的所有类别FolderBrowserProperty。它在本地和我们公司的远程测试站点上完美运行,但在实时站点上我们收到以下错误:
Server Error in '/' Application.
Unhandled Execution Error
Stack trace:
[HttpException: 0x80004005]<br>
System.Web.CachedPathData.GetConfigPathData(String configPath) +459
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +132 <br>
System.Web.Configuration.RuntimeConfig.GetConfig(VirtualPath path) +110
System.Web.Security.UrlAuthorizationModule.CheckUrlAccessForPrincipal(String virtualPath, IPrincipal user, String verb) +477 <br>
EPiServer.Security.PrincipalInfo.HasPathAccess(String path) +88
EPiServer.Web.Hosting.VersioningDirectory.getDirectories() +229
EPiServer.Web.Hosting.VersioningDirectory.GetDirectories() +35
EPiServer.Web.WebControls.FileSystemItem.getChildren() +92
EPiServer.Web.WebControls.FileSystemItem.get_HasChildren() +5
System.Web.UI.WebControls.TreeView.DataBindRecursive(TreeNode node,
IHierarchicalEnumerable enumerable, Boolean ignorePopulateOnDemand) +3652
System.Web.UI.WebControls.TreeView.DataBindRecursive(TreeNode node,
IHierarchicalEnumerable enumerable, Boolean ignorePopulateOnDemand) +3752
System.Web.UI.WebControls.TreeView.DataBindRecursive(TreeNode node,
IHierarchicalEnumerable enumerable, Boolean ignorePopulateOnDemand) +3752
System.Web.UI.WebControls.TreeView.DataBindNode(TreeNode node) +347
System.Web.UI.WebControls.TreeView.PerformDataBinding() +305
System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +82
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.TreeView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.TreeView.OnPreRender(EventArgs e) +43
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
We first assumed there was an access problem (WindowsMembershipProvider), but both the IIS and the active using accessing the files have access - still same problem.
I've looked around abit on the methods executing before and at the error, but due to the exception message, i cant deduce anything helpful.
任何帮助将不胜感激。
此致, 马蒂亚斯
我忘记更新这个帖子了。当然,这里的魔鬼是 EPiServer :) 我两周前找到了你的解决方案,它起作用了!
Im trying to list all categories in a VPP-folder using a module from Meridium called FolderBrowserProperty. It works perfectly locally and on our company's remote test site, but on the live site we are getting the following error:
Server Error in '/' Application.
Unhandled Execution Error
Stack trace:
[HttpException: 0x80004005]<br>
System.Web.CachedPathData.GetConfigPathData(String configPath) +459
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +132 <br>
System.Web.Configuration.RuntimeConfig.GetConfig(VirtualPath path) +110
System.Web.Security.UrlAuthorizationModule.CheckUrlAccessForPrincipal(String virtualPath, IPrincipal user, String verb) +477 <br>
EPiServer.Security.PrincipalInfo.HasPathAccess(String path) +88
EPiServer.Web.Hosting.VersioningDirectory.getDirectories() +229
EPiServer.Web.Hosting.VersioningDirectory.GetDirectories() +35
EPiServer.Web.WebControls.FileSystemItem.getChildren() +92
EPiServer.Web.WebControls.FileSystemItem.get_HasChildren() +5
System.Web.UI.WebControls.TreeView.DataBindRecursive(TreeNode node,
IHierarchicalEnumerable enumerable, Boolean ignorePopulateOnDemand) +3652
System.Web.UI.WebControls.TreeView.DataBindRecursive(TreeNode node,
IHierarchicalEnumerable enumerable, Boolean ignorePopulateOnDemand) +3752
System.Web.UI.WebControls.TreeView.DataBindRecursive(TreeNode node,
IHierarchicalEnumerable enumerable, Boolean ignorePopulateOnDemand) +3752
System.Web.UI.WebControls.TreeView.DataBindNode(TreeNode node) +347
System.Web.UI.WebControls.TreeView.PerformDataBinding() +305
System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +82
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.TreeView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.TreeView.OnPreRender(EventArgs e) +43
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
We first assumed there was an access problem (WindowsMembershipProvider), but both the IIS and the active using accessing the files have access - still same problem.
I've looked around abit on the methods executing before and at the error, but due to the exception message, i cant deduce anything helpful.
Any help will be most appreciative.
Best regards,
Mattias
I forgot to update this thread. Of course the devil here was EPiServer :) I found your solution 2 weeks ago and it worked!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用的是哪个版本的 EPiServer?
EPiServer R1 中存在一个具有完全相同堆栈跟踪的已知旧错误,称为:
问题 9716:当文件夹名称以“.”结尾时,文件管理崩溃。
难道是添加的文件夹以“.”结尾?该错误应该在 R1SP2 中修复。如果您可以通过使用 EPiServers 文件管理器浏览文件夹来获得相同的异常,则可以验证是否是您受到的错误影响。
What version of EPiServer are you using?
There was an old known bug with the exact same stacktrace in EPiServer R1 known as:
Issue 9716: File management crashs when folder name ends with "."
Could it be that the folder added ended with a "."? The bug should be fixed in R1SP2. You can verify if it is that bug you're affected by if you can get the same exception by browsing the folders with EPiServers file manager.