|
If you are using Active Directory, you can use the System.DirectoryServices.AccountManagement API to find details about a user and the groups he's associated with. You might want to try that (requires you to import System.DirectoryServices into your project).
|
|
|
|
|
Hi,
1. I wonder how to implement animations in WPF windows desktop app?
e.g. App startup form transitions in windows 8 metro start menu
2. & how to get the horizonatal scrollbar like metro start menu?
Regards,
NJ
============================================
The grass is always greener on the other side of the fence
|
|
|
|
|
Here[^]
Please reading the forums guide lines before posting.
|
|
|
|
|
|
"Attempted to read or write protected memory"
Above exception occurs when i add following lines to my code.
PosDamAx.IoXml ioxml;
ioxml = new PosDamAx.IoXml();
i have added reference to PosDamAx.dll
i have chosen the debugger as x86.
secondly i have uncheck suppress jit optimization box.
Also i want to share that the same code start running when i try it on another PC.
Both have installed VS 2010 and have same settings of debugger But the only difference is of architecture , code is running fine on 32bit while mine is 64bit.
|
|
|
|
|
You need to use your debugger to trap the actual failing piece of code. What you have shown above is unlikely to produce this error, unless the constructor for the PosDamAx class has a bug.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
That is likely because the PosDamAx object (which I am guessing is an ActiveX control) is 32 bit only. All of your projects in your solution must be set to compile as x86 and not as AnyCPU.
|
|
|
|
|
I have windows form , which contains treeview.
When i drag node and drop on windows explorer, i want event which will give me windows exploer path. Where I actually end node drag.
Does any body have solution for same.
|
|
|
|
|
|
I have Treeview on form, Tree view contain differnt nodes.
|
|
|
|
|
Somnath T Avhad wrote: I have Treeview on form, Tree view contain differnt nodes.
I have a treeview with different nodes, too. The world is so small!
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
even on intranet, sending objects back and forth eventually you'd run into deserialization exception and to handle this client must resend the request, that's how we deal with this.
- what's your experience on this?
dev
|
|
|
|
|
devvvy wrote: eventually you'd run into deserialization exception The first thing to do is investigate what exception is thrown and why.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Yes - but haven't you encountered the scenario you're wiring pretty same object but every so often deserialization exceptions thrown?
dev
|
|
|
|
|
devvvy wrote: but haven't you encountered the scenario you're wiring pretty same object but every so often deserialization exceptions thrown? No; what is your issue?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
|
devvvy wrote: solution here And a fairly obvious one. No wonder I never came across the problem.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
devvvy wrote: even on intranet, sending objects back and forth eventually you'd run into deserialization exception and to handle this client must resend the request, that's how we deal with this.
Not due to network-errors. What does the exception say?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
blows up when System.Runtime.Serialization.DataContractSerializer attempts to ReadObject(byte[])
this said, one other suggested it could be threading issue... not sure but easy enuf to test out (... testing now...)
dev
|
|
|
|
|
I deal with it by sending messages, not objects. And of course insuring that I read the message correctly.
|
|
|
|
|
it's actually object graphs -
dev
|
|
|
|
|
Doesn't matter.
Sockets only send data. So anyway you want to send an 'object' it is still data.
And thus one sends a message not data, where the message contains data.
|
|
|
|
|
|
Is the application multi-threaded?
If the answer is yes, then you probably have a synchronization problem (not having synchronization at all is a big problem).
Considering you are using TCP/IP, I can't say about any other problem. My serialization works everytime... and I have some servers that use serialization for all their tasks, multi-threaded, and they work for years without receiving serialization exceptions.
|
|
|
|
|