使用IIS管理器用户部署到IIS 7.5时为ERROR_USER_UNAUTHORIZED [英] ERROR_USER_UNAUTHORIZED when deploy to IIS 7.5 when using IIS manager user

查看:195
本文介绍了使用IIS管理器用户部署到IIS 7.5时为ERROR_USER_UNAUTHORIZED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从teamcity服务器部署到iis服务器,但是当我使用在IIS中设置的IIS管理器用户时,我遭到了未授权.如果我使用Windows帐户,则可以正常工作.我想念什么吗?

I'm trying to deploy from a teamcity server to my iis server but I get unauthorized when I use an IIS Manager user set up in IIS. If I use a Windows account it works just fine. Am I missing something?

我认为在ISS中创建IIS管理器用户就足够了,还是必须将该用户添加到要部署到的域或服务器中?

I thought it was enough to create an IIS Manager User in ISS, or do I have to add that user to the domain or server I'm trying to deploy to?

在管理服务委托中,我添加了两个规则,可以将其合并为一个规则.第一条规则用于contentPath和iisApp,第二条规则用于createApp.这两个规则均以管理员用户身份运行.我添加了所有用户(*)都可以执行该规则.

In the Management Service Delegation I have added two rules, it could probably be combined into one. The first rule is for contentPath and iisApp and the second is for createApp. Both rules are run as an administrator user. I have added that all users (*) are allowed to execute the rule.

要与IIS管理器用户一起使用,还需要在目标服务器上启用其他功能吗?

Is it something else I need to enable on the target server for it to work with IIS Manager Users?

我在事件查看器中收到以下消息:

I get the following message in my event viewer:

IISWMSVC_AUTHORIZATION_SERVER_NOT_ALLOWED

Only Windows Administrators are allowed to connect using a server connection. 
Other users should use the 'Connect To Site or Application' task to be able to connect.

Process:WMSvc

推荐答案

好吧,我一直在寻找答案,但是找不到了……但是我当然会尽快找出答案.我在这里发布问题.我的问题的答案是,我必须将IIS管理器用户添加到要部署到的站点.因此,如果我选择了站点,然后打开"IIS管理器权限"并添加了我的用户,那么所有这些都将按预期开始工作.

Ok, I've been looking for an answer for some time and couldn't find it... but of course I figure it out myself as soon as I post the question here. The answer to my problem was that I have to add the IIS Manager User to the site which I want to deploy to. So if I selected the sites and then opened up the "IIS Manager Permissions" and added my user it all started working just as expected.

这篇关于使用IIS管理器用户部署到IIS 7.5时为ERROR_USER_UNAUTHORIZED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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