i have a program of impersonation to update files in server , it;s working fine in windows xp , how can i do it in windows vista
any code
Printable View
i have a program of impersonation to update files in server , it;s working fine in windows xp , how can i do it in windows vista
any code
Some code samples would be nice, or at the very least the names of some of the methods you are using to perform the impersonation.
Have you tried your code in Vista yet - are you just asking a question of "will my code work?" or does your code not work when tested. If it's the latter, which, if any line(s) of code are failing and are any errors produced?
yeah - i run it in vista and it is not working ...
Again, you really have to give us plenty more information to go on here.
Define "not working" please and let us know the method calls you are attempting to use in your code to perform the impersonation so we have a vague chance of suggesting something of use to you. Otherwise it's all guesswork and there could be millions of reasons and suggestions we'll post - none of which may be applicable to you.
As a general sample, which is all I can give at the moment, I've finally found a really old post for you. It is written in VB6, so you will have to perform some conversion/re-coding, but the explaination and the API calls are still the same as can be used in .Net. I see no reason this shouldn't work in Vista that I can think of at the moment.
http://www.vbforums.com/showpost.php...94&postcount=8
Why would you need to impersonate a user in order to update files on a server? Are they only acccessible with a certain account? To update something on another system would depend upon the target system, not the client system. Are you even sure your app runs and is Vista compliant?
Very, very valid point! I just concentrated on the impersonation but and should have spotted that too. Very well pointed out there! :thumb:
Thanks. Perhaps if we could figure out what errors there actually are in rujnning the program on Vista then we can isolate the issue of updating the file(s) was my thought. plus clarification of the actual issue will help vastly too :D