The RPC server is unavailable while creating user in Active Directory

半世苍凉 提交于 2019-12-25 05:34:12

问题


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: https://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" />

回答1:


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.



来源:https://stackoverflow.com/questions/30709351/the-rpc-server-is-unavailable-while-creating-user-in-active-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!