System.DirectoryServices在生产环境中部署时生成.PageRequestManagerServerErrorException
我得到了这个错误 消息:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码为:500 当我在IIS中运行应用程序时 我认为是System.Directory.Services产生了eror。这不会在我的本地机器上生成一个 下面是我的代码片段System.DirectoryServices在生产环境中部署时生成.PageRequestManagerServerErrorException,directoryservices,Directoryservices,我得到了这个错误 消息:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码为:500 当我在IIS中运行应用程序时 我认为是System.Directory.Services产生了eror。这不会在我的本地机器上生成一个 下面是我的代码片段 string[] a = Request.RequestContext.HttpContext.User.Identity.Name.Split('
string[] a = Request.RequestContext.HttpContext.User.Identity.Name.Split('\\');
System.DirectoryServices.DirectoryEntry ADEntry = new
System.DirectoryServices.DirectoryEntry("WinNT://" + a[0] + "/" + a[1]);
string Arranger = ADEntry.Properties["FullName"].Value.ToString();
产生的错误:
消息:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码为:500
电话号码:940
字符:13
代码:0
URI:http://hrmd/ScriptResource.axd? d=QOTXFIEHQNPSYVJBHKKK60V8KYVGJUJO4UqPOCxNKDWP8H53OPF6XWRYBSVHRAJ1RWB7WHQ0UUUKOXZP-"EfNy8U9HNSn9H4TG"钻机5A2MRWOX2WPR4280GIRB57NZ6AJHX2GKGC0SQKMNAVW2&t=48e38e19
提前谢谢