473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

impersonate not working for directory.

Hi all,

In web apage i want to copy file from one directory to some shared
path.

I set impersonate to true. Its copying the file using
system.io.file.copy. But system.io.directory.exist for checking
output directory existance is not working.

can anyone tell me why and reason behind this.

please help me asap.

thanks in advance.

Oct 26 '07 #1
3 1352
impersonate will only work with kerberos authentication, a credentials
forwarding turned on. ntlm security doe not support this (1 hop rule).

-- bruce (sqlwork.com)
archana wrote:
Hi all,

In web apage i want to copy file from one directory to some shared
path.

I set impersonate to true. Its copying the file using
system.io.file.copy. But system.io.directory.exist for checking
output directory existance is not working.

can anyone tell me why and reason behind this.

please help me asap.

thanks in advance.
Oct 26 '07 #2
What are you saying?, can you please expand your wisdom to enlighten us.

Thank you,
"bruce barker" <no****@nospam.comwrote in message
news:e2****************@TK2MSFTNGP06.phx.gbl...
impersonate will only work with kerberos authentication, a credentials
forwarding turned on. ntlm security doe not support this (1 hop rule).

-- bruce (sqlwork.com)
archana wrote:
>Hi all,

In web apage i want to copy file from one directory to some shared
path.

I set impersonate to true. Its copying the file using
system.io.file.copy. But system.io.directory.exist for checking
output directory existance is not working.

can anyone tell me why and reason behind this.

please help me asap.

thanks in advance.

Oct 26 '07 #3
Hi,

What i want is to check if directory exist or not. This directory is
on network drive.
How can i check that?

please help me asap.

thanks.

Oct 29 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Michelle | last post by:
Hello! I have an ASP.NET application (1.1 framework) that needs to be able to read/write files on a network share. The access to this file share will be fairly restricted, so I need to...
1
by: yurps | last post by:
Hello, I got a weird problem...I didn't set up this machine so I don't know what possibly went wrong...IIS set up after VS.NET.. On a virtual directory for a web app...I go to properties and...
1
by: moemeelaung | last post by:
Hi ASP/Windows experts out there I really need help with this Impersonate function. I have machine A and B. A hosts my ASP page which is to create a user account on the machine B. The...
12
by: Nils M. Lunde | last post by:
Hi! I've made a Web Service using C# that is using impersonation. The WS is working fine on WinXP and Win2003Server, but I'm having problem getting it to work on Win2000. The problem is that...
8
by: BLiTZWiNG | last post by:
After playing with the code shown and utilising Willy Denyottes' help, I have come to the conclusion that there is some form of difference between the managed WindowsIdentity.Impersonate() over the...
3
by: diephouse | last post by:
I seem to be having a problem accessing networks shares. For example, I try the following code: File.Exists(@"\\SERVER\share"); always returns false! Or even if I map the drive ...
2
by: Divya | last post by:
Hello, I am developing a simple move file utility to move files from one domain to another in the same internal network. My program runs fine when it reads the parameters (user, domain, password...
3
by: Kathy Burke | last post by:
Hi. Totally lost on this one (ok, I admit I'm USUALLY lost!). All works fine in dev environment (P4, localhost server IIS, XP Pro) Asp.net and .Net 1.1 In order to access doc files needed for...
2
by: rockdale | last post by:
Hi, all: My asp.net application calles MS speech 5.1 and generate a wav file on server's path. Everything runs perfectly on my development machine. But when I move the appl to production server,...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.