ASP Web.config 文件夹路径无法解析

发布于 2024-08-14 21:27:21 字数 669 浏览 1 评论 0原文

我刚刚被要求修复一个 ASP 站点,但我知道绝对没有 ASP。当我尝试加载该网站时,出现以下错误:

MENU CACHE EXCEPTION:No menu xml file find for menu id 1. Ensure the xml file \menuxml\menu_1.xml 存在。

我尝试编辑 Web.config 以使用各种不同的路径指向正确的文件夹。似乎没有一个起作用。我不断收到同样的错误。这是它目前的样子:

我认为问题在于它是必需的从 root 开始的绝对路径。我请求那条路并收到了回报。对我来说,这看起来非常 Linux 风格。我期待看到驱动器号 (C:...)。

如何指向正确的路径?

顺便说一句,Web.config 文件和 menuxml 文件夹都位于文档根目录中。

编辑:我已经尝试了许多系统路径来指向 menuxml 文件夹以及网络相对路径。似乎没有一个起作用。从 Stephen M. Redd 提供的所有帮助中,我希望这个问题能够得到解决。既然不是,我只能假设问题出在 Web.config 之外。还可以做些什么来尝试纠正这个问题? :/

I've just been asked to fix an ASP site and I know absolute no ASP. When I try to load the site, I get greeted with the following error:

MENU CACHE EXCEPTION:No menu xml file found for menu id 1. Make sure the xml file \menuxml\menu_1.xml exist.

I've tried editing Web.config to point to the correct folder using a variety of different paths. None seem to work. I keep getting the same error. Here's how it currently looks:

<add key="menuXMLFilesDir" value="/clientsdata/iis7_www/c/a/site/www/menuxml/" />

I figured the problem was it required an absolute path starting from root. I asked for that path and received that in return. To me, that looks very Linuxy. I was expecting to see drive letters (C:...).

How do I point to the correct path?

Btw, the Web.config file and the menuxml folder are both in the document root.

EDIT: I've tried numerous system paths to point to the menuxml folder and also web relative paths. None seem to work. From all the help Stephen M. Redd has given, I'd expect this issue to have been fixed. Since it's not, I can only assume the problem lies outside of Web.config. What else could be done to try and rectify this? :/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

君勿笑 2024-08-21 21:27:21

在 web.config 中,将路径设置为:“~\menuxml\menu_1.xml”。波浪号告诉应用程序使用“虚拟根”。这些路径是相对于网络的,而不是物理文件系统路径。

In web.config, set the path to: "~\menuxml\menu_1.xml". The tilde tells the app to use the "virtual root". These paths are web relative, not physical file system paths.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文