System.DirectoryServices produces .PageRequestManagerServerErrorException when deployed in production -


i getting error

message: sys.webforms.pagerequestmanagerservererrorexception: unknown error occurred while processing request on server. status code returned server was: 500

when running application in iis.

i think system.directory.services produces eror. not produce 1 on local machine.

below snippet of code.

string[] = 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(); 

error produced:

message: sys.webforms.pagerequestmanagerservererrorexception: unknown error occurred while processing request on server. status code returned server was: 500 line: 940 char: 13 code: 0 uri: http://hrmd/scriptresource.axd? d=qotxfiehqnpsyvjbhkkk60v8kyvgjujo4u_qpocxnkdwp8h53opf6xwrybsvhraj1rwb7mwhq0uuukoxxzp-__efny8u9hnsn9h4tg_rigg5a2mrwox2wpr4280girb57nz6ajhx2gkgc0sqkmnavw2&t=48e38e19

thanks in advance.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -