CodeBugger Posted May 15, 2006 Posted May 15, 2006 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: Quote
Machaira Posted May 16, 2006 Posted May 16, 2006 Sounds like you need to talk to your network admins. :) Quote Here's what I'm up to.
emitrebel Posted May 16, 2006 Posted May 16, 2006 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") Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.