Click here to Skip to main content
15,446,510 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to code following vb code to asp.net code Pin
Mycroft Holmes2-Jan-21 20:03
professionalMycroft Holmes2-Jan-21 20:03 
AnswerRe: how to code following vb code to asp.net code Pin
Richard Deeming4-Jan-21 23:04
mveRichard Deeming4-Jan-21 23:04 
QuestionUnable to read from web.config Pin
samflex11-Dec-20 7:35
Membersamflex11-Dec-20 7:35 
AnswerRe: Unable to read from web.config Pin
Richard MacCutchan11-Dec-20 7:42
mveRichard MacCutchan11-Dec-20 7:42 
GeneralRe: Unable to read from web.config Pin
samflex11-Dec-20 9:02
Membersamflex11-Dec-20 9:02 
GeneralRe: Unable to read from web.config Pin
Richard MacCutchan11-Dec-20 22:20
mveRichard MacCutchan11-Dec-20 22:20 
GeneralRe: Unable to read from web.config Pin
samflex12-Dec-20 4:16
Membersamflex12-Dec-20 4:16 
QuestionServer not recognizing AD info (SOLVED) Pin
samflex10-Dec-20 10:42
Membersamflex10-Dec-20 10:42 
Greetings experts,

I have been struggling with this now for about two days to no avail.

When a user loads our app on a browser, the app determines user's machine name and determines whether user should have a Read Only access to the app or Read/Write access based on two AD group names.

If the user does not belong to any of those groups, access to the app is denied the user with a message indicating so.

This works perfectly on my local machine.

However, when I deploy the app to our server, it does not record user's access level and is constantly denying user access to the app.

We have determined that the server can communicate with our AD.

I am pretty stumped by this.

Can someone please help with the code below and see if it could be written differently?

Many thanks in advance.

IPAddress hostIPAddress = IPAddress.Parse(Request.UserHostName);
IPHostEntry hostInfo = Dns.GetHostEntry(hostIPAddress);
string[] tempSystemName = hostInfo.HostName.Split('.');

WebLibrary.loadUserInformation(Request.LogonUserIdentity.Name, Request.UserHostAddress, tempSystemName[0]);
currentUser.Text = "Current User: " + WebLibrary.visitorFullName + "<br />Access: " + userType + "";


modified 11-Dec-20 13:12pm.

AnswerRe: Server not recognizing AD info Pin
Richard Deeming11-Dec-20 0:25
mveRichard Deeming11-Dec-20 0:25 
GeneralRe: Server not recognizing AD info Pin
samflex11-Dec-20 3:20
Membersamflex11-Dec-20 3:20 
GeneralRe: Server not recognizing AD info Pin
Richard Deeming11-Dec-20 3:29
mveRichard Deeming11-Dec-20 3:29 
GeneralRe: Server not recognizing AD info Pin
samflex11-Dec-20 7:12
Membersamflex11-Dec-20 7:12 
QuestionSSL Certificate problem with Local IIS, ADFS and Visual Studio Pin
Super Lloyd9-Dec-20 15:54
MemberSuper Lloyd9-Dec-20 15:54 
Questionpass the id to the modal Pin
Member 149089649-Nov-20 8:42
MemberMember 149089649-Nov-20 8:42 
AnswerRe: pass the id to the modal Pin
Richard Deeming9-Nov-20 22:02
mveRichard Deeming9-Nov-20 22:02 
QuestionASP.NET Code with Azure AD Authentication Not working in Chrome and Edge Pin
Member 111541884-Nov-20 4:51
MemberMember 111541884-Nov-20 4:51 
AnswerRe: ASP.NET Code with Azure AD Authentication Not working in Chrome and Edge Pin
Richard MacCutchan4-Nov-20 21:46
mveRichard MacCutchan4-Nov-20 21:46 
QuestionLogin using windows authentication using asp.net C# Pin
Member 1497830828-Oct-20 22:13
MemberMember 1497830828-Oct-20 22:13 
AnswerRe: Login using windows authentication using asp.net C# Pin
Richard Deeming28-Oct-20 22:57
mveRichard Deeming28-Oct-20 22:57 
QuestionAuto enter key press Pin
Member 1216078023-Oct-20 8:22
MemberMember 1216078023-Oct-20 8:22 
AnswerRe: Auto enter key press Pin
ZurdoDev23-Oct-20 9:04
professionalZurdoDev23-Oct-20 9:04 
GeneralRe: Auto enter key press Pin
Member 1216078023-Oct-20 15:30
MemberMember 1216078023-Oct-20 15:30 
AnswerRe: Auto enter key press Pin
ZurdoDev24-Oct-20 1:27
professionalZurdoDev24-Oct-20 1:27 
QuestionModal show information Pin
Member 1490896420-Oct-20 0:59
MemberMember 1490896420-Oct-20 0:59 
QuestionRe: Modal show information Pin
ZurdoDev20-Oct-20 1:44
professionalZurdoDev20-Oct-20 1:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.