如何安装使用维克斯在IIS 7的ASP.Net MVC应用程序? [英] How do I install an ASP.Net MVC application on IIS 7 using Wix?

查看:115
本文介绍了如何安装使用维克斯在IIS 7的ASP.Net MVC应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关IIS6我可以使用威克斯在IIS佣工安装一个Web应用程序是这样的:

For IIS6 I can use the IIS helpers in Wix to install a web application like this:

<iis:WebAppPool 
    Id="AP_MyApp" 
    Name="My Application Pool" 
    Identity="networkService" />
<iis:WebApplication 
    Id="WA_MyApp" 
    Name="MyApp" 
    WebAppPool="AP_MyApp">
    <iis:WebApplicationExtension
        CheckPath="no"
        Executable="[NETFRAMEWORK20INSTALLROOTDIR]aspnet_isapi.dll"
        Verbs="GET,HEAD,POST"/>
</iis:WebApplication>

不幸的是,这并不对IIS7工作。我们不希望使用ASPNET_ISAPI.DLL机构,而是要集成的管道,以处理该请求路由。由此脚本创建的应用程序池是在经典模式没有集成模式,因此没有处理程序得到正确运行。

Unfortunately, this doesn't work for IIS7. We don't want to use the aspnet_isapi.dll mechanism, and instead want the integrated pipeline to handle the request routing. The app pool created by this script is in Classic mode not Integrated mode so none of the handlers get run correctly.

我该如何正确的IIS 7安装MVC应用程序?

How can I correctly install an MVC app on IIS 7?

推荐答案

有关维克斯的IIS扩展不支持IIS7。在IIS团队不断改写版本之间的元数据库中。有相当多不工作,在他们之中,缺乏一个综合的应用程序池的几件事情。

The IIS extensions for WIX don't support IIS7. The IIS team keep rewriting the metabase between versions. There are quite a few things that don't work, the lack of an integrated app pool amongst them.

直到扩展得到改写,你留下了三个选项:

Until the extensions get rewritten, you're left with three options:


  • 在自定义操作使用生成调用Appcmd.exe的

  • 使用XMLConfig的更新的applicationHost.config

  • 编写您自己的自定义操作

我选择在,你可以在一个组件内做到这一点,把它绑一个特征的瞬间XMLConfig的选项。

I've opted for the xmlconfig option at the moment as you can do this within a component and tie it to a feature.

这篇关于如何安装使用维克斯在IIS 7的ASP.Net MVC应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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