Mono XSP 忽略Web.Config 中的指令

发布于 2024-08-17 05:45:55 字数 846 浏览 2 评论 0原文

我正在将我的 ASP.NET 应用程序移植到 Mono。我在 Debian 5.0 下从 SVN trunk 构建了它。

我允许使用 Web.config 指令匿名访问 Logout.aspxstyles.css

<location path="Logout.aspx">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>
<location path="styles.css">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>

它在 Visual Studio Web Server 下工作正常IIS6IIS7,但不在 XSP2 2.5.0.0 下。是否有任何解决方法或方法可以以不同的方式完成相同的任务?

我的意思是不起作用 - 请求重定向到 Login.aspx

I'm porting my ASP.NET application to Mono. I built it from SVN trunk under Debian 5.0.

I allow anonymous access to Logout.aspx and styles.css using Web.config directives:

<location path="Logout.aspx">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>
<location path="styles.css">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>

It works fine under Visual Studio Web Server, IIS6 and IIS7 but doesn't under XSP2 2.5.0.0. Are there any workarounds or ways to do the same task but differently?

I mean doesn't work - requesting redirects to Login.aspx

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

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

发布评论

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

评论(1

南城旧梦 2024-08-24 05:45:55

该错误似乎已于 1 月 9 日修复。
查看 Mono 的 bugzilla 中的详细信息

不幸的是,它似乎无法在(子)目录,所以登录后仍然无法访问css和js目录。

The bug seems to have been fixed on the 9th of jan.
See the details in mono's bugzilla

Unfortunately it does not seem to work on (sub)directories, so css and js directories are still not accessible after logging in.

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