使用用于IIS的Web Deploy工具-与管理员帐户一起使用,但不适用于IIS或Windows用户帐户 [英] Using Web Deploy tool for IIS - works with administrator account but not IIS or Windows user account

查看:263
本文介绍了使用用于IIS的Web Deploy工具-与管理员帐户一起使用,但不适用于IIS或Windows用户帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为看似WMSvc的大型野兽而苦恼-IIS的Web管理服务.

I am struggling with the massive beast that seems to be WMSvc - Web Management service for IIS.

我正在尝试从Visual Studio部署网站,这使我丧命.实际上,这杀死了我团队中除我以外的所有人,但是由于我现在被任命为Web服务器经理,所以我就是那种感觉受到伤害的人.

I am trying to deploy web sites from Visual Studio which is killing me. Actually it's killing everyone except me on my team, but since I am designated web server manager right now I'm the one thats feeling the hurt.

当我使用管理Windows帐户进行部署时,它可以正常工作,这至少意味着我应该在途中,但不适用于非管理员或IIS管理器帐户的其他帐户.

It works when I deploy using my Admin windows account, which atleast means I should be on my way, but it doesn't work with another account that isn't admin or an IIS manager account.

让我告诉你我做了什么:

Let me show you what I've done:

  1. 已安装WMSvc.

  1. Installed WMSvc.

看似配置了它.在我的服务器/管理服务"下,设置为:

Seemingly configured it. Under MYSERVER/Management Service I the settings are:

Enable Remote Connections
Windows credentials or IIS Manager credentials
Access for unspecified clients - allow.

  • 将用户MYUSER添加为IIS管理器帐户.还添加了一个Windows帐户MYSERVER \ MYUSER

  • Added a user MYUSER as IIS Manager account. Also added a windows account MYSERVER\MYUSER

    在"MYSERVER/管理服务委托"下添加了规则

    Added rules under MYSERVER/Management Service Delegation

    Deploy Applications with Content - and added user *
    Set Permissions - and added user *
    

  • 所有这些之后,它就可以从我的Windows管理员帐户运行,而不能从其他帐户运行. Visual Studio报告401未经授权.在我关注的文章中,故障排除"下有以下引用:

    After all this, it worked from my Windows admin account, but not from the other accounts. Visual Studio reported 401 unauthorized. In the article I followed there was the below citation under Troubleshooting:

    用户收到401未经授权的错误 尝试连接到网站时. o原因:此错误来自 WMSVC,通常是一个错误 用户名/密码,或因为用户 没有访问该网站的权限. o解决方案:验证 用户名/密码以及该用户 可以访问该网站.

    User receives 401 unauthorized error while trying to connect to a Web site. o Cause(s): This error comes from WMSVC and is usually an error with username/password, or because the user does not have access to the Web site. o Resolution(s): Verify the username/password and that the user has access to the Web site.

    但是,老实说,我不知道我现在做错了什么.有什么想法吗?

    But to be honest, I have no idea what I've done wrong by now. Any ideas?

    感谢您的回答.

    推荐答案

    您是否向Local Service帐户授予了文件系统特权?这是WMSvc运行时使用的帐户,因此它需要访问文件系统才能完成其工作.

    Did you grant file system privileges to the Local Service account? That is the account that the WMSvc runs as, so it needs access to the file system to do it's job.

    如果在IIS中的站点上单击鼠标右键,则应该有一个编辑权限..."的上下文菜单选项.这将直接带您进入网站目录的文件夹属性的权限"部分.

    If you right click on the site in IIS there should be a context menu option for "Edit Persmissions...". That will take you directly to the permissions section of the folder properties for the web site directory.

    这篇关于使用用于IIS的Web Deploy工具-与管理员帐户一起使用,但不适用于IIS或Windows用户帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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