|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
ASP.Net/VB.Net - Retrieving from Active Directory
Hi,
I am trying to display the username from Active Directory in an asp.net web application using vb.net but I can't seem to do it. I can connect to AD using a windows application by adding a reference: System.DirectoryServices to my project and then just using SystemInformation.UserName in the form_load sub but it's not working when I try to do this in a web application. Not sure why it would work perfectly in a windows application but not a web application? Thanks. |
|
#2
|
|||
|
|||
|
for web you have to use impersonate option
<impersonate =true> in web.config file |
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > ASP.Net/VB.Net - Retrieving from Active Directory |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|