通配符应用程序映射导致 umbraco 主页出现错误

发布于 2024-08-06 16:38:30 字数 308 浏览 1 评论 0原文

我正在尝试设置我的 umbraco 网站,使其不使用 .aspx 扩展名。我对配置文件进行了必要的更改,但是当我在 IIS 中添加 wilcard 应用程序映射时,如果我尝试从以下位置访问它,主页现在会返回对象引用错误(位于 System.Web.UI.Control.ResolveClientUrl)根(即 http://site.com/)。如果我添加default.aspx 或浏览到/home(根节点),则不会发生该错误。我还需要设置其他东西才能让根节点在根 url 上运行吗?

I'm trying to setup my umbraco site so that it does not use the .aspx extension. I made the necessary changes to the config files, but when I added the wilcard application mapping in IIS the homepage now comes back with an object reference error (at System.Web.UI.Control.ResolveClientUrl) if I try to access it from at the root (i.e. http://site.com/). The error doesn't occur if I add the default.aspx or if I browse to /home (the root node). Is there something else I need to setup to get the root node to run at the root url?

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

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

发布评论

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

评论(1

眉目亦如画i 2024-08-13 16:38:30

这实际上是 asp.net 的问题,而不仅仅是 umbraco - 我在 DotNetNuke 论坛上找到了答案。 ResolveClientUrl 函数无法处理“/”URL。通过安装最新的 asp.net 2.0 服务包已修复此问题。

This is actually a problem with asp.net rather than merely umbraco - I found the answer on a DotNetNuke forum. The ResolveClientUrl function cannot handle a '/' URL. This was fixed by installing the latest service pack for asp.net 2.0.

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