简体   繁体   English

使用Web Deploy部署IIS设置

[英]Deploying IIS Settings with Web Deploy

If I look at the Package/Publish Settings of a web application in Visual Studio 2010, there is an option to "Include all IIS settings as configured in IIS Manager (used only for IIS Web projects)" 如果我在Visual Studio 2010中查看Web应用程序的打包/发布设置,则有一个选项“包括在IIS管理器中配置的所有IIS设置(仅用于IIS Web项目)”

I am using IIS instead of the VS Dev Server to run my web application, but when I deploy the package that Web Deploy creates to a remote server, the IIS settings that get applied to my remote IIS application are at the least, unfamiliar, and at the worst, completely wrong. 我使用IIS而不是VS Dev Server来运行我的Web应用程序,但是当我将Web Deploy创建的程序包部署到远程服务器时,至少,不熟悉并应用于我的远程IIS应用程序的IIS设置,以及最糟糕的是,完全错误。

For instance, my local IIS has 2 virtual directories (images, sounds). 例如,我的本地IIS有2个虚拟目录(图像,声音)。 But when I deploy, it creates 4 completely different virtual directories (_controltemplates, _layouts, _vti_bin, _wpresources), and if I manually create the 2 correct vdirs on the remote server beforehand, Web Deploy will delete them. 但是,当我部署时,它将创建4个完全不同的虚拟目录(_controltemplates,_layouts,_vti_bin,_wpresources),如果我事先在远程服务器上手动创建了2个正确的vdir,Web Deploy将删除它们。 Where the heck did Web Deploy get those from? Web Deploy是从哪里获得的? Web Deploy also mis-applied the correct authentication settings on the remote IIS application. Web Deploy还错误地在远程IIS应用程序上应用了正确的身份验证设置。

Since the "Include all IIS settings as configured in IIS Manager" setting doesn't seem to pick up the right settings, I ultimately want to be able to create some kind of configuration file that Web Deploy will use as part of its deploy package. 由于“包括在IIS管理器中配置的所有IIS设置”设置似乎无法采用正确的设置,因此我最终希望能够创建某种配置文件,Web Deploy将其用作其部署包的一部分。 Ideally something that I can check into source control. 理想情况下,我可以检查源代码控制。 But I can't figure out from the documentation how to do this. 但是我无法从文档中找出如何执行此操作。 I see something about parameterization and manifests, but I can't quite figure it out. 我看到了一些有关参数化和清单的信息,但我不太清楚。

Here is another article to look at. 这是另一篇文章。 See the note about IIS Configuration, not all settings will be inherited, check if Windows authentication is set to true on the default web site. 请参阅有关IIS配置的注释,并非所有设置都会被继承,请检查默认网站上的Windows身份验证是否设置为true。

Package/Publish Web Tab, Project Properties 打包/发布Web选项卡,项目属性
http://msdn.microsoft.com/en-us/library/dd410108.aspx http://msdn.microsoft.com/en-us/library/dd410108.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM