Saturday, August 31, 2002

Windows.Identity Doesn't Work Under Windows 98

Here's a .NET bug submitted by Steve Walker:

I found a bug in that when you are running a Windows Forms Application on
Windows 98, You cannot use the Windows.Identity to retrieve the user login
name, it returns a system level token and a null user name is returned when
you access the .Name Property.

To work around this I check the current windows version and make an API call
to the GetUser API instead to retrieve User Login Name.

Microsoft has confirmed to me that this is a bug and told me that it would
be fixed in the next service pack.

Steve Walker
swalker@solutionsbysteve.com

I've updated the .NET Bug Registry with this info.

   11:15 AM

Content of this site is © Dejan Jelovic. All rights reserved.