Ask a Question related to ASP.NET Security, Design and Development.
-
Stephen Witter #1
System.IO.FileNotFoundException using file.copy
I am trying to copy a file to a network drive. I can do it on the
domain controller/web server but not from a client. Here is the code:
Dim impersonationContext As
System.Security.Principal.WindowsImpersonationCont ext
Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity
currentWindowsIdentity =
CType(User.Identity,System.Security.Principal.Wind owsIdentity)
impersonationContext = currentWindowsIdentity.Impersonate()
dim Temp as string="TestFile"
File.Copy("\\MyServer\Template.doc", "\\MyServer\" & Temp &".doc")
impersonationContext.Undo()
I get the error "System.IO.FileNotFoundException: Could not find file
\\Server\File..." when running it from the [authenticated] client
browser. I searched everywhere on the web and MSDN on this error but found
nothing. The error it occurs on the file copy statement The file.copy
statement is trying to copy a file on a different server than the web
server.
Any help is appreciated.
Stephen Witter Guest
-
FileNotFoundException
I need some help. I generated an enum using EnumBuilder and created an assembly called EnumAssembly.dll into the bin directory of my web service. ... -
WebServices and getting FileNotFoundException
From googling my problem before posting, I learned that this seems to be a very common problem with Web Services and dotnet. I read through... -
WebServices and FileNotFoundException
Hey, I am a newbie to Web Services. I have been struggling with a very strange problem for days. I want to write a simple "Hello World" Web... -
Inheriting from the CollectionBase causes weird Error: System.IO.FileNotFoundException
I am having a problem exposing a class inherited from the collection base class as a webservice. If I expose the collection on a web page all works... -
System.IO.File.Copy not copying and no error
I'd suggest wrapping the copy in a Try/Catch block just to be sure. Then throw a new exception, outputing your source/destination paths along with... -
She Ven Ng #2
Re: System.IO.FileNotFoundException using file.copy
I also facing the same problem. Did u manager to solve ur problem? If
yes, can u pls post ur solution?
Thanks.
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
She Ven Ng Guest



Reply With Quote

