G
Guest
I get the error:
System.IO.FileNotFoundException: Could not find file "C:\mydir\myfile.xls"
Using the sub:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim Path As String = "C:\mydir\"
Dim File As String = "myfile.xls"
Dim PathFile As String
PathFile = Path & File
System.IO.File.Copy(PathFile, Path & "myfile2.xls", True)
End Sub
This is run in an ASP.Net application.
The web.config file uses the xml code:
<identity impersonate="true"/>
When the this xml code is commented out the File.Copy works but the rest of
the app fails.
Any work arounds?
Thanks, Mark
System.IO.FileNotFoundException: Could not find file "C:\mydir\myfile.xls"
Using the sub:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim Path As String = "C:\mydir\"
Dim File As String = "myfile.xls"
Dim PathFile As String
PathFile = Path & File
System.IO.File.Copy(PathFile, Path & "myfile2.xls", True)
End Sub
This is run in an ASP.Net application.
The web.config file uses the xml code:
<identity impersonate="true"/>
When the this xml code is commented out the File.Copy works but the rest of
the app fails.
Any work arounds?
Thanks, Mark