UltiDev Cassini 和web.config 设置

发布于 2024-07-29 06:23:18 字数 623 浏览 1 评论 0原文

MS Cassini Development Web Server 是一个很好的产品,它以与 IIS7 类似的方式执行 Web 请求。 每个请求(静态内容的事件)都无一例外地经过相同的 .Net 管道。 所有自定义的HttpModule都可以处理任何请求。

但有时您不希望这些模块针对某些内容(最常见的是静态内容)执行。 在这方面,MS Cassini 不会像 IIS7 那样读取/遵守 web.config 设置。 我对这些设置特别感兴趣。

<system.webServer>
    ...
    <handlers />
    <modules />
</syste.webServer>

是否有UltiDev's Cassini(从 MS Cassini 升级的单独付费产品) Web 服务器读取这些设置并按照 web.config 的指示执行?

MS Cassini Development Web Server is a nice product that executes web requests in a similar way that IIS7 does. Every request (event for static content) goes through the same .Net pipeline without exception. All custom HttpModule can handle any request.

But sometimes you don't want these modules to execute for certain content (most often static content). In this regard, MS Cassini doesn't read/obey <system.webServer> web.config settings like IIS7 does. I'm particularly interested in these settings.

<system.webServer>
    ...
    <handlers />
    <modules />
</syste.webServer>

Does UltiDev's Cassini (a separate payable product upgraded from MS Cassini) web server read these settings and execute as the web.config tells it to?

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

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

发布评论

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

评论(2

江湖彼岸 2024-08-05 06:23:18

Cassini 的行为不像 IIS7,而是像 IIS6。 因此,您应该使用 部分而不是

<system.web>
    ...
    <httpHandlers />
    <httpModules />
</system.web>

所有请求都通过 ASP.NET 管道的原因是因为它是硬连线的这样做(就像在 IIS6 中启用通配符映射一样)

Cassini doesn't behave like IIS7, but like IIS6. So you should use <system.web> sections instead of <system.webServer>:

<system.web>
    ...
    <httpHandlers />
    <httpModules />
</system.web>

The reason all requests go through the ASP.NET pipeline is because it is hardwired to do that (like having wildcard mapping on in IIS6)

温馨耳语 2024-08-05 06:23:18

我的公司生产了一款名为 Neokernel Web Server 的产品,它运行 ASP.NET Web 应用程序,但提供静态内容时无需使用 ASP.NET 管道。 它是一个商业产品,但提供免费评估许可证。

My company makes a product called the Neokernel Web Server that runs ASP.NET web applications, but static content is served without using the ASP.NET pipeline. It's a commercial product, but a free evaluation license is available.

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