我的IIS7网站的元数据库键在哪里? [英] Where is the metabase key for my IIS7 web site?

查看:516
本文介绍了我的IIS7网站的元数据库键在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置我的网站设置项目的自动(每夜)安装。我可以在命令行上指定一些安装时间值;特别是添加一个 TARGETSITE 值定义了我的新部署将要到的网站。

I'm trying to set up the automated (nightly) installation of my web site setup project. I can specify some install-time values on the command line; in particular, adding a TARGETSITE value defines the web site to which my new deployment will go.

我如何在IIS7安装中找到我的网站的元数据库密钥(例如/ LM / W3SVC / 213548468)? (我确实已经设置了IIS6兼容性,但在 metabase.xml 文件中找不到任何关于我的网站的信息。)

How do I find the metabase key to my web site (eg. "/LM/W3SVC/213548468") in an IIS7 installation? (I do have IIS6 compatibility all set up, but I can't find anything about my site in the metabase.xml file.)

此外,由于Web部署设置项目显然是过时的机制(我猜他们太容易使用?),有没有人有一个更好的想法,我的夜间自动部署?

Also, since the web deployment setup projects are obviously outdated mechanisms (I guess they were too easy to use?), does anyone have a better idea for my nightly automated deployments?

推荐答案

在IIS 7及以上版本中,我们不再使用元数据库,而是移动到一个.config模型,我们将所有设置存储在%windir%\system32\inetsrv \config\applicationHost.config,即您将找到应用的所有信息和设置。如果启用IIS 6兼容性,我们将运行所有命令,直接将它们转换到新的ApplicationHost.config。

In IIS 7 and above we do not use the metabase anymore and instead moved to a ".config" model where we store all the settings inside "%windir%\system32\inetsrv\config\applicationHost.config", that is where you will find all the information and settings you apply. If you enable IIS 6 compatibility we will run all the commands by translating them directly into the new ApplicationHost.config.

这将是有用的, it today,如果您使用托管代码,最好的解决方案是使用Microsoft.Web.Administration( http://blogs.msdn.com/b/carlosag/archive/2006/04/17/microsoftwebadministration.aspx ),其中包含一个名为ServerManager的类,允许您设置一切

It would be useful to know more about how you are doing it today, If you use Managed code probably the best solution is using Microsoft.Web.Administration (http://blogs.msdn.com/b/carlosag/archive/2006/04/17/microsoftwebadministration.aspx) which includes a class called ServerManager to allow you to set everything you need.

如果您使用脚本(vbscript / jscript),您可以继续使用脚本或使用AHADMIN,这是我们新的底层COM配置api。

If you use scripts (vbscript/jscript) you can continue using your scripts or instead use AHADMIN which is our new underlying COM configuration api.

如果您使用powershell,我们还有一个PowerShell提供程序( http: //www.iis.net/download/PowerShell )提供在这种情况下应该是最好的。

if you use powershell we also have a PowerShell provider (http://www.iis.net/download/PowerShell) provide which should be the best in that case.

此外,如果你真的想包装内容和配置和其他东西,如注册表设置,COM对象,GAC DLL等,您应该使用Web部署( http ://www.iis.net/download/WebDeploy

Also, if you actually want to package contents and configuration and other stuff like Registry settings, COM objects, GAC dlls, etc, you should use Web Deploy (http://www.iis.net/download/WebDeploy)

这篇关于我的IIS7网站的元数据库键在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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