在iis上添加用户活动目录 [英] add user active directory on iis

查看:94
本文介绍了在iis上添加用户活动目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我把网络应用程序放在iis 7上,我加入了活动目录,它位于不同的本地服务器上:

DirectoryEntry directoryEntry = this.GetDirectoryEntry (IIS://+ Environment.UserDomainName +/ W3SVC / AppPools /



+ applicationPool);



在应用程序池中是连接到活动目录的用户,连接在他的昵称上。

我想用它在Active Directory中创建用户。所有时间都是错误:



System.Runtime.InteropServices.COMException(0x800706BA):Serwer RPC不可用。





网络解决方案:





RPC服务器不可用。(例外情况HRESULT:0x800706BA)将VNC部署到



远程计算机或使用内置管理工具时可能会发生错误。

可以这个错误的原因有几个:



远程计算机被防火墙阻止。

解决方案:打开组策略对象编辑器快照-in(gpedit.msc)编辑组策略对象(GPO)



用于管理组织中的Windows防火墙设置。打开计算机配置,打开



管理模板,打开网络,打开网络连接,打开Windows防火墙,然后打开



域配置文件或标准配置文件,具体取决于您要配置的配置文件。启用以下



例外:允许远程管理异常和允许文件和打印机共享异常。



主机名或IP地址错误或远程计算机已关闭。

解决方案:验证主机名或IP地址是否正确。

TCP / IP NetBIOS Helper 服务没有运行。

解决方案:VerityTCP / IP NetBIOS Helper正在运行并设置为重启后自动启动。

远程过程调用(RPC)服务未在远程计算机上运行。

解决方案:Verity远程过程调用(RPC)正在运行并在重新启动后设置为自动启动。

Windows Management Instrumentation服务未在远程计算机上运行。

解决方案:VerityWindows Management Instrumentation正在运行并在重新启动后设置为自动启动。





最重要的是,所有这些服务都是实现的经过测试和测试。我注意到注册表中缺少一个条目:



LEGACY_RPCSS并且可能找到了解决方案:



Windows注册表编辑器版本5.00



[HKEY_LOCAL_MACHINE \SYSTEM\ControlSet001\Enum\Root \LEGACY_RPCSS]

NextInstance = dword:00000001



[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_RPCSS\0000]

服务=RpcSs

Legacy= dword:00000001

ConfigFlags= dword:00000020

Class=LegacyDriver

ClassGUID={8ECC055D-047F-11D1-A537-0000F8753ED1}

DeviceDesc=远程过程调用(RPC)



[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_RPCSS\0000\Control]

ActiveService=RpcSs







问题极限问题,żewrejestrze



HKEY_LOCAL_MA CHINE \SYSTEM\ControlSet001 \ Enum \



问题是寄存器



HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Enum \



我没有权限修改那里的密钥,iis放在Windows Server 2008上,你认为吗?这个


$ b $bmobłoby是导致错误的主要原因?



我问候

student

Hi,
I put the web application on iis 7, where I join active directory, which is on a different local server:
DirectoryEntry directoryEntry = this.GetDirectoryEntry("IIS://" + Environment.UserDomainName + "/W3SVC/AppPools/"

+ applicationPool);

in the application pool is a user who connects to the active directory, the connection is on his nicknames.
I would like to use it to create users in Active Directory. All the time are errors:

System.Runtime.InteropServices.COMException (0x800706BA): Serwer RPC is unavailable.


Solutions in web:


"The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)" error may occurs when deploying VNC to a

remote computer or when using built-in management tools.
There can be a few reasons for this error:

The remote computer is blocked by the firewall.
Solution: Open the Group Policy Object Editor snap-in (gpedit.msc) to edit the Group Policy object (GPO) that

is used to manage Windows Firewall settings in your organization. Open Computer Configuration, open

Administrative Templates, open Network, open Network Connections, open Windows Firewall, and then open either

Domain Profile or Standard Profile, depending on which profile you want to configure. Enable the following

exception: "Allow Remote Administration Exception" and "Allow File and Printer Sharing Exception".

Host name or IP address is wrong or the remote computer is shutdown.
Solution: Verify correct host name or IP address.
The "TCP/IP NetBIOS Helper" service isn''t running.
Solution: Verity that "TCP/IP NetBIOS Helper" is running and set to auto start after restart.
The "Remote Procedure Call (RPC)" service is not running on the remote computer.
Solution: Verity that "Remote Procedure Call (RPC)" is running and set to auto start after restart.
The "Windows Management Instrumentation" service is not running on the remote computer.
Solution: Verity that "Windows Management Instrumentation" is running and set to auto start after restart.


Best of all, all of these services are implemented and tested. I noticed a lack of an entry in the registry:

LEGACY_RPCSS and perhaps found a solution:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_RPCSS]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_RPCSS\0000]
"Service"="RpcSs"
"Legacy"=dword:00000001
"ConfigFlags"=dword:00000020
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"DeviceDesc"="Remote Procedure Call (RPC)"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_RPCSS\0000\Control]
"ActiveService"="RpcSs"



Problem polega na tym, że w rejestrze

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\

The problem is that the register

HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Enum \

I do not have permission to modify the keys there, iis is placed on windows server 2008, do you think that this

mobłoby be the main cause of error?

I greet
student

推荐答案



1)转到服务并检查RPC是否正在运行。

2 )检查防火墙状态。

3)编辑组策略。



这些是我在windows7中使用的步骤。我想,这将是在服务器2008上工作。

如果没有,最好接近域概念。
Hi,
1)Go to services and check RPC is running.
2)Check the firewall status.
3)Edit group policy.

These are the steps i used in windows7.I think, this will work on server 2008.
If not,Its better to approach domain concept.


这篇关于在iis上添加用户活动目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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