if it stopped working, then "something" changed.

You indicated that you rolled back to an older version from vss and have the
same problem.  That hints to me that it is an environmental issue.  For
example a Windows Update installed a security update that has  a pending
reboot which can sometimes trash your logon token (and hence thread's
windows identity).  Your domain controller got rebooted, while it was down,
your desktop needed to authenticate, and could not contact the
controller...reboot.

The domain controller has a pending reboot for a Windows Update.  <-- I find
this to be a common problem with some of our customers.

Check your "System" event log for errors with a "Source" of "Lsa".

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Knowlton,
Gerald F.
Sent: Wednesday, October 31, 2007 7:57 AM
To: [email protected]
Subject: [ADVANCED-DOTNET] Lost the My object.


Good morning;

I have this VB windows app that has suddenly lost the My object. That is
to say, when I am running the program both in the IDE and as a current
executable, My.User.Name equals "" or null. This error appeared suddenly
when prior, the application worked fine.

One of the things I am seeing - in the app.config file_ is in the
ConfigSections/SectionGroup name/section name is the
'RequirePermission="false" is tagged as a "warning". The warning message
says that "The requirePermission attribute is not declared".

I am importing the system.configuration object into the application.

I also attempted to get the value of
system.configuration.sectioninformation.requirepermission by using the
examples in the help file

Dim x as sectionInformation
Dim value as Boolean
Value = x.RequirePermission

but when I run this in the IDE, I get the error "Type
System.Configuration.SectionInformation' has no constructors" for the
value of x

Here is what I have done so far.

1. I have reinstalled VS2005 and .NET V2.0.
2. Older executables of this program run ok as executables.
3. I have rolled back the program in VSS to an earlier version - still
have the same problem.

Any thoughts anyone?


Best regards,


Jerry


===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to