ASP.NET:这是什么的HttpModule吗? System.ServiceModel.Activati​​on.HttpModule [英] ASP.NET: What does this HttpModule do? System.ServiceModel.Activation.HttpModule

查看:171
本文介绍了ASP.NET:这是什么的HttpModule吗? System.ServiceModel.Activati​​on.HttpModule的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我该HTTP模块的目的是什么?它显示了我HttpModuleCollection名单上,但我不知道什么是它的。

Can anyone tell me the purpose of this HttpModule? It's showing up on my HttpModuleCollection list, but I don't know what's it's for.

System.ServiceModel.Activation.HttpModule

我找不到它的任何文件。

I can't find any documentation on it.

推荐答案

System.ServiceModel.Activati​​on.HttpModule 来自因您安装Microsoft .NET框架3.5.1 /Windows通信基础HTTP激活功能。如果你不需要的功能,您可以卸载它从你的web.config删除模块。越少使用的模块加载更快速运行Web应用程序。

System.ServiceModel.Activation.HttpModule come from because you installed "Microsoft .NET Framework 3.5.1" / "Windows Communication Foundation HTTP Activation" feature. If you don't need the feature you can uninstall it of remove the module from your web.config. The less unused modules you load the more quickly run your web application.

如果您安装此功能的 .NET框架4的服务器上安装就可以收到<一个描述的问题href=\"http://blogs.iis.net/webtopics/archive/2010/04/28/system-typeloadexception-for-system-servicemodel-activation-httpmodule-in-asp-net-4.aspx\">http://blogs.iis.net/webtopics/archive/2010/04/28/system-typeloadexception-for-system-servicemodel-activation-httpmodule-in-asp-net-4.aspx.

If you install this feature after the installation of .NET 4 framework on your server you can receive problems described in http://blogs.iis.net/webtopics/archive/2010/04/28/system-typeloadexception-for-system-servicemodel-activation-httpmodule-in-asp-net-4.aspx.

在一般的HTTP模块上调用响应于所述的BeginRequest()和EndRequest每个请求()的事件。其结果是,该模块之前与一请求被处理后运行。在<一节如何HTTP模块的工作 href=\"http://msdn.microsoft.com/en-us/library/bb398986(v=VS.100).aspx\">http://msdn.microsoft.com/en-us/library/bb398986(v=VS.100).aspx你可以阅读更多有关HTTP模块。

In general an HTTP module is called on every request in response to the BeginRequest() and EndRequest() events. As a result, the module runs before and after a request is processed. In the section "How HTTP Modules Work" on http://msdn.microsoft.com/en-us/library/bb398986(v=VS.100).aspx you can read more about HTTP modules.

<一个href=\"http://msdn.microsoft.com/en-us/library/ms227673.aspx\">http://msdn.microsoft.com/en-us/library/ms227673.aspx介绍如何创建自定义HTTP模块。一些小的自定义模块可以真正的帮助。例如,您可以阅读<一href=\"http://stackoverflow.com/questions/355165/how-to-remove-thie-svc-extension-in-restful-wcf-service\">http://stackoverflow.com/questions/355165/how-to-remove-thie-svc-extension-in-restful-wcf-service一个code例子(从书基于REST的.NET,第5章,96页起源)删除从WCF REST的URL .svc扩展名。在<一个href=\"http://www.west-wind.com/weblog/posts/570695.aspx\">http://www.west-wind.com/weblog/posts/570695.aspx你可以了解如何做同样的尊重IIS 7重写模块。

http://msdn.microsoft.com/en-us/library/ms227673.aspx describes how to create a Custom HTTP Module. Some small custom modules can be really helpful. For example, you can read in http://stackoverflow.com/questions/355165/how-to-remove-thie-svc-extension-in-restful-wcf-service a code example (which originate from the book "RESTful .NET", Chapter 5, page 96) "Removing the .SVC Extension from WCF REST URLs". In http://www.west-wind.com/weblog/posts/570695.aspx you can read how to do the same with respect of "IIS 7 Rewrite Module".

关于HTTP模块的一般信息,是不是你的问题的一部分,但我插入它来更好地理解什么是 Activati​​on.HttpModule 做的,其他什么更加有用的模块,可以可以使用或自己编写。

The general information about HTTP module is not a part of your question, but I inserted it to better understanding what Activation.HttpModule do, and what other more useful modules you can use or write yourself.

这篇关于ASP.NET:这是什么的HttpModule吗? System.ServiceModel.Activati​​on.HttpModule的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆