Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

File.Copy problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin Jackson - 15 Mar 2006 16:22 GMT
I'm getting the following exception throw when trying to copy a file from a
network share to a local folder.

1. The process that is doing the copying is running under a user
sqa-powerway\PDP3AppStaging
2. This user sqa-powerway\PDP3AppStaging was granted full control to the
destination folder and SHOULD have the correct access rights
3. The user has full control to the share point (on both share and security
tabs)
4. The process that is doing the copying is a server DLLHOST COM+
application running under sqa-powerway\PDP3AppStaging

The problem isn't with the share, it's with the destination file.

We can copy from the folder to the share no problem, but we cannot copy from
the share to the local folder.

The filename is a GUID

This makes no sense whatsoever!!!

Here's the exception.

General Information
*********************************************
Additional Info:
ExceptionManager.MachineName: SQA-V3-WA01
ExceptionManager.TimeStamp: 3/15/2006 9:20:19 AM
ExceptionManager.FullName: Microsoft.ApplicationBlocks.ExceptionManagement,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=3d0dc145a66e9e9a
ExceptionManager.AppDomainName: DefaultDomain
ExceptionManager.ThreadIdentity:
ExceptionManager.WindowsIdentity: SQA-POWERWAY\PDP3AppStaging

1) Exception Information
*********************************************
Exception Type: System.UnauthorizedAccessException
Message: Access to the path
"C:\WebDocStaging\Download\6dd31723-b671-44e3-8938-34d1aebfcd46" is denied.
TargetSite: Void WinIOError(Int32, System.String)
HelpLink: NULL
Source: mscorlib

StackTrace Information
*********************************************
  at System.IO.__Error.WinIOError(Int32 errorCode, String str)
  at System.IO.File.InternalCopy(String sourceFileName, String
destFileName, Boolean overwrite)
  at
Powerway.Service.DocumentManagement.MoveFileComponent.MoveFileFromStaging(String
sourceFileName, String destinationPath, String collisionFileName)
Kevin Jackson - 15 Mar 2006 19:30 GMT
Would not having the sqa-powerway\PDP3AppStaging assigned the "Access this
computer from the network" local policy/user rights assignment possibly
cause this?

> I'm getting the following exception throw when trying to copy a file from
> a network share to a local folder.
[quoted text clipped - 49 lines]
> Powerway.Service.DocumentManagement.MoveFileComponent.MoveFileFromStaging(String
> sourceFileName, String destinationPath, String collisionFileName)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.