在IIS中使用LDAP的错误在本地计算机中正常工作 [英] Error in using LDAP in IIS which is working fine in local machine

查看:60
本文介绍了在IIS中使用LDAP的错误在本地计算机中正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<pre>"LDAP://xxxxxxx.co.uk" </pre>



我正在使用此ldap函数在我的项目中,它在我的本地机器上工作正常,但是当我在IIS中执行时它向我显示错误


I am using this ldap function in my project and it is working fine in my local machine, but when i execute in IIS it shows me an error

DirectoryEntry dsresult = sresult.GetDirectoryEntry();

<pre>Object reference not set to an instance of an object</pre>



我已经改变了这样的字符串,我试过它仍然显示我的错误。


I have changed the string like this and i tried still it shows me error.

"LDAP://dc=xxxxxx,dc=co,dc=uk"





请帮助我在LDAP功能中进行哪些更改以使项目在IIS中成功运行



Please help me what changes to be done in LDAP fuction to make the project run successfully in IIS

推荐答案

基于您的一点点信息提供,可能是因为运行ASP.NET代码的帐户对您要查询的目录没有读取权限。
Based on the little bit of information you've provided, it's probably because the account that your ASP.NET code is running under does not have Read permissions to the directory you're querying.


这篇关于在IIS中使用LDAP的错误在本地计算机中正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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