473,379 Members | 1,174 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,379 software developers and data experts.

Copying a file to a network share

Hello, my app needs to copy a file from local TEMP folder to network
share. The network share is accessible via a domain ID.
I am trying to call LogonUser API, then ImpersonateLoggedOnUser, then
copy the file to this share. But I keep on getting errors. Even though
all the APIs return success, copying files still comes back with "Access
denied" type of errors.

Am I missing something here?

Thanks
Nov 21 '05 #1
2 2164
Hi,

Maybe this will help.
http://www.dotnet247.com/247referenc...28/144136.aspx

Ken
------------------
"Frank Rizzo" <no**@none.com> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
Hello, my app needs to copy a file from local TEMP folder to network
share. The network share is accessible via a domain ID.
I am trying to call LogonUser API, then ImpersonateLoggedOnUser, then
copy the file to this share. But I keep on getting errors. Even though
all the APIs return success, copying files still comes back with "Access
denied" type of errors.

Am I missing something here?

Thanks
Nov 21 '05 #2
Ken Tucker [MVP] wrote:
Hi,

Maybe this will help.
http://www.dotnet247.com/247referenc...28/144136.aspx
My code looks similar, but I'll give this a try tomorrow.
Thank you.

Ken
------------------
"Frank Rizzo" <no**@none.com> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
Hello, my app needs to copy a file from local TEMP folder to network
share. The network share is accessible via a domain ID.
I am trying to call LogonUser API, then ImpersonateLoggedOnUser, then
copy the file to this share. But I keep on getting errors. Even though
all the APIs return success, copying files still comes back with "Access
denied" type of errors.

Am I missing something here?

Thanks

Nov 21 '05 #3

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

Similar topics

3
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore...
0
by: surya | last post by:
Hi, I need to enable shadow copying network share folder assemblies. Currently if the path is given as the network share folder path, shadow copying is not enabled. Should something special be...
8
by: Ram Baruch | last post by:
Hi, I'm trying to use the File.Copy() function. It works well when the desenation file is local (Like: C:\dest\dest.exe). The problem is that when I'm trying to copy to a destenation that starts...
7
by: Frank Rizzo | last post by:
Hello, I've asked this question in the languages.vb group, but got no response, so I'll try my luck here. My app needs to copy a file from a local folder to a network share. The network share...
8
by: Lam | last post by:
HI anyone knows how can I open a mapped network file in C#? I try string file = @"T:\file.txt"; it shows me the error: "Could not find a part of the path" but if I copy the file to my C dirve,...
0
by: Frank Rizzo | last post by:
Hello, my app needs to copy a file on a network share. The network share is accessible via a domain ID, which has all possible folder rights assigned to it. I am using the impersonation code...
4
by: Sue | last post by:
Hello We have an application where the user would upload files (max size of 200 mb) from their client machine. This application will run on a web server (its a web server which would be used by...
0
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, We have a legacy asp application that uses a third party component to upload a file and saves it to a secure network share. The code sets the credentials for the secure network share on the...
0
by: cw808 | last post by:
Hi all. I'm new here but hoping I can get some help for my problem. My situation is that I need to upload files through a C# .NET web application to a file server. I done a search and followed...
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.