Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Network admins at my company did something...took away privileges and add others and now my report interface no longer is able to read the user accessing the reports. This is important because there is code that is dependent upon the user that logs in. I need help trying to figure out what went wrong so I can fix it because they don't think they did anything wrong. Where do I start?

 

User.Identity.Name used to return the username logging into the application. Now it returns nothing, so certain users are unable to access their special reports.

 

Help?!?! :confused:

Posted
Network admins at my company did something...took away privileges and add others and now my report interface no longer is able to read the user accessing the reports. This is important because there is code that is dependent upon the user that logs in. I need help trying to figure out what went wrong so I can fix it because they don't think they did anything wrong. Where do I start?

 

User.Identity.Name used to return the username logging into the application. Now it returns nothing, so certain users are unable to access their special reports.

 

Help?!?! :confused:

 

 

You could try using using the system variable %USERNAME%. Replace user.identity.name with System.Environment.GetEnvironmentVariable("USERNAME")

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...