使用Web Deploy部署IIS设置 [英] Deploying IIS Settings with Web Deploy

查看:299
本文介绍了使用Web Deploy部署IIS设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在Visual Studio 2010中查看Web应用程序的打包/发布设置,则可以选择将IIS管理器中仅配置IIS所有IIS设置(仅用于IIS Web项目)

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)"

我正在使用IIS而不是VS Dev Server运行我的Web应用程序,但是当我将Web Deploy创建的包部署到远程服务器时,应用于我的远程服务器的IIS设置IIS应用程序至少不熟悉,最糟糕的是完全错误。

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有2个虚拟目录(图像,声音)。但是当我部署时,它会创建4个完全不同的虚拟目录(_controltemplates,_layouts,_vti_bin,_wpresources),如果我预先在远程服务器上手动创建2个正确的vdirs,Web Deploy将会删除它们。 Web Deploy从哪里得到这些? Web部署还在远程IIS应用程序上错误地应用了正确的身份验证设置。

For instance, my local IIS has 2 virtual directories (images, sounds). 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. Where the heck did Web Deploy get those from? Web Deploy also mis-applied the correct authentication settings on the remote IIS application.

由于在IIS管理器中配置所有IIS设置设置似乎不拿起正确的设置,我最终想要创建一些Web部署将作为其部署包的一部分使用的配置文件。理想的是我可以检查源代码控制。但是我无法从文档中找出如何做到这一点。我看到有关参数化和清单的内容,但是我不太清楚。

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. 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.

推荐答案

这是另一篇文章。请参阅有关IIS配置的注意事项,并非所有设置都将被继承,请检查默认网站上的Windows身份验证是否设置为true。

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.

包/发布Web选项卡,项目属性

http://msdn.microsoft.com/en-us/library/dd410108.aspx

Package/Publish Web Tab, Project Properties
http://msdn.microsoft.com/en-us/library/dd410108.aspx

这篇关于使用Web Deploy部署IIS设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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