|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.NET Frameworkmicrosoft.public.dotnet.framework
Error: Invalid token for impersonation - it cannot be duplicated
Chavdar -
12 Oct 2007 11:49 PM - 5 messages
We randomly get an error "System.ArgumentException: Invalid token for impersonation - it cannot be duplicated" when executing IntPtr logonToken= WindowsIdentity.GetCurrent().Token; WindowsIdentity windowsIdentity = new WindowsIdentity(logonToken); ...
multiple references to only 1 object???
Pieter -
12 Oct 2007 9:56 AM - 11 messages
Hi, I've implemented some type of cache, to be able to point with multiple references to the same object. Although, this 1-object-stuff is broken if I do a refresh from the DataBase. For instance I declare 2 objects: ...
multi-key InputGesture in WPF
Dave Weeden -
11 Oct 2007 10:22 PM - 4 messages
Hi, Is it possible to create an InputGesture that is a multi-keystroke combination. e.g. like the Ctrl+E,C shortcut for the 'Comment Selection' command under Visual Studio's Edit->Advanced menu My first try was to OR the values together as follows: ...
Method Name Suggestion: Validate a Poor Choice?
Mike Hofer -
11 Oct 2007 5:59 PM - 10 messages
Please forgive the cross-post to multiple forums. I did it intentionally, but I *think* it was appropriate given the nature of my question. I'm working on an open source code library to help automate and clean up parameter validation code. It's almost ready to go into open beta. ...
How to get value of nullable of unknown type??
hvj -
11 Oct 2007 5:35 AM - 5 messages
Hi, I have a situation that I have a nullable type that can be a int?, double? or any other nullable type. How can I get the contained value of the nullable without knowing its type. I read that in the .NET2.0 beta2 there used to be a INullable ...
|
|||||||||||||||||||||||