RPC服务器不可用时创建用户在Active Directory [英] The RPC server is unavailable while creating user in Active Directory

查看:535
本文介绍了RPC服务器不可用时创建用户在Active Directory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让我的asp.NET应用到Active Directory中注册新用户。使用ASP默认的Active Directory成员资格提供程序(.NET 4.5)

在登录作品就好了,我想创建一个新用户时收到以下错误:RPC服务器不可用。 (从HRESULT异常:0x800706BA)

http://i.imgur.com/PjjBxkJ.png (我知道这应该是一个形象,但我不能嵌入那些还没有)

这,只要我提交表单发生。虽然它也恰好与创建用户向导。

我已经尝试从以下回答类似的问题可能的解决办法:<一href="http://stackoverflow.com/a/25841025/4385713">http://stackoverflow.com/a/25841025/4385713

我也试过完全禁用防火墙(我知道,不好的做法,只是必须确保这不是说),但它仍然是行不通的。

ASP应用程序的本地PC上运行,在Active Directory安装在虚拟机中的Windows Azure上。

任何帮助将是AP preciated!

谢谢,
CAS

PS:我用的是下面的连接字符串和会员供应商:

 &LT;添加
           NAME =ADMembership
           TYPE =System.Web.Security.ActiveDirectoryMembershipProvider,System.Web程序,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a
           的applicationName =/
           的connectionStringName =ADConnectionString
           attributeMapUsername =sAMAccountName赋
           connectionUsername =USERNAME
           connectionPassword =密码/&GT;


&LT;添加名称=ADConnectionString的connectionString =LDAP://23.97.173.160:389 / CN =用户​​,DC = ictforevents1,DC = cloudapp,DC =净/&GT;
 

解决方案

我从连接字符串中除去端口解决了问题。

我不知道为什么这解决了这个问题,因为Microsoft技术支持向我保证,389是我所需要的端口。

I am trying to get my asp.NET application to register new users in Active Directory. using the default Active Directory Membership Provider in asp (.NET 4.5)

While logging in works just fine, I get the following error when trying to create a new user: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

http://i.imgur.com/PjjBxkJ.png (I know this should be an image, but I can't embed those yet)

This happens as soon as I submit the form. Though it also happens with the Create User Wizard.

I have already tried the possible solutions from the following answer to a similar question: http://stackoverflow.com/a/25841025/4385713

I also tried completely disabling the firewall (I know, bad practice, just had to make sure it wasn't that) but it still wouldn't work.

The asp application is running on my local PC, the Active Directory is installed on a VM in Windows Azure.

Any help would be appreciated!

Thanks,
Cas

PS: I use the following connection string and membership provider:

<add
           name="ADMembership"
           type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
           applicationName="/"
           connectionStringName="ADConnectionString"
           attributeMapUsername="sAMAccountName"
           connectionUsername="USERNAME"
           connectionPassword="PASSWORD"/>


<add name="ADConnectionString" connectionString="LDAP://23.97.173.160:389/CN=Users,DC=ictforevents1,DC=cloudapp,DC=net" />

解决方案

I resolved the issue by removing the port from the connection string.

I don't know exactly why this solved it because Microsoft Support assured me that 389 is the port I need.

这篇关于RPC服务器不可用时创建用户在Active Directory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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