Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: downcasting Object types Pin
John Fisher1-Nov-02 12:40
John Fisher1-Nov-02 12:40 
GeneralRe: downcasting Object types Pin
Bilal1-Nov-02 15:17
Bilal1-Nov-02 15:17 
GeneralRe: downcasting Object types Pin
Paul Riley1-Nov-02 0:23
Paul Riley1-Nov-02 0:23 
GeneralRe: downcasting Object types Pin
Feng Qin3-Nov-02 21:33
Feng Qin3-Nov-02 21:33 
GeneralMD5withRSA signature verification Pin
bluestn31-Oct-02 15:39
bluestn31-Oct-02 15:39 
GeneralCryptoAPI - Cryptography - Com Pin
delcorral31-Oct-02 12:33
delcorral31-Oct-02 12:33 
GeneralRe: CryptoAPI - Cryptography - Com Pin
ian mariano1-Nov-02 7:32
ian mariano1-Nov-02 7:32 
GeneralDelete/Copy files from another machine! Pin
KoRn31-Oct-02 9:41
KoRn31-Oct-02 9:41 
Hi I have written an windows app with C# witch is supposed to syncronize 2 folders e.g

FROM: C:\Project\Project
TO: \\server\d$\my.project.com

I have made the entire source witch delete files/folders on TO and copy/create files if they don't exists.

My problem is when it tries to copy/delete files, I get permissions denied, I am running the program when I am logged in as administrator and I have administrations access on target machines.

I can open explorer and edit/delete the files witch it complains about.

What can I do to allow my app to copy/overwrite/delete files on the TO machine ?

Somehow as far as I can see, I can overwrite *.dll and *.pdb, but not *.aspx and *.cs

I have tried almost everything:

System.Security.Permissions.FileIOPermission

int token1;

WindowsIdentity mWI1 = WindowsIdentity.GetCurrent();
token1 = mWI1.Token.ToInt32();
IntPtr token2 = new IntPtr(token1);
ImpersonateLoggedOnUser(token2);

And many more, can it maybe be because the IIS is blocking those aspx files, in that case what can I do to overrule?

Because I have one similiar program with the name "InSync" with does overwrite the files when I run it with.
GeneralActive Directory Question Pin
Christian Merritt31-Oct-02 9:25
Christian Merritt31-Oct-02 9:25 
GeneralRe: Active Directory Question Pin
Nick Parker31-Oct-02 11:53
protectorNick Parker31-Oct-02 11:53 
General.Net Bug, Anyone else have this problem... Pin
T Jenniges31-Oct-02 7:43
T Jenniges31-Oct-02 7:43 
GeneralRe: .Net Bug, Anyone else have this problem... Pin
Stephane Rodriguez.31-Oct-02 7:53
Stephane Rodriguez.31-Oct-02 7:53 
GeneralRe: .Net Bug, Anyone else have this problem... Pin
T Jenniges31-Oct-02 8:01
T Jenniges31-Oct-02 8:01 
GeneralRe: .Net Bug, Anyone else have this problem... Pin
Stephane Rodriguez.31-Oct-02 8:09
Stephane Rodriguez.31-Oct-02 8:09 
QuestionHow to give focus to the child window in a SDI App Pin
kiranj31-Oct-02 6:27
kiranj31-Oct-02 6:27 
AnswerRe: How to give focus to the child window in a SDI App Pin
John Fisher1-Nov-02 12:28
John Fisher1-Nov-02 12:28 
GeneralCasting and WMI problem Pin
Anonymous31-Oct-02 5:19
Anonymous31-Oct-02 5:19 
GeneralRe: Casting and WMI problem Pin
Paul Riley31-Oct-02 5:48
Paul Riley31-Oct-02 5:48 
GeneralRe: Casting and WMI problem Pin
Anonymous31-Oct-02 11:31
Anonymous31-Oct-02 11:31 
QuestionHow to disabled some TabPage? Pin
Anonymous31-Oct-02 2:15
Anonymous31-Oct-02 2:15 
QuestionMessage or Callback? Pin
Daniel Strigl30-Oct-02 22:38
Daniel Strigl30-Oct-02 22:38 
AnswerRe: Message or Callback? Pin
James T. Johnson30-Oct-02 22:48
James T. Johnson30-Oct-02 22:48 
AnswerRe: Message or Callback? Pin
John Fisher31-Oct-02 9:07
John Fisher31-Oct-02 9:07 
GeneralRe: Message or Callback? Pin
Daniel Strigl4-Nov-02 0:54
Daniel Strigl4-Nov-02 0:54 
Generalcreating an add-in with c# Pin
Danny Rodriguez30-Oct-02 18:58
Danny Rodriguez30-Oct-02 18:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.