WodFtpDLXCom GetData and PutData under Windows Vis (General questions)
I'm using the wodFtpDLXComLib in a VB ActiveX DLL called by ASP code.
Under Windows Vista (IIS7) the GetData and PutData are failing.
In both cases, I check the LastError and there is none reported.
The code works fine under Windows XP (IIS5) and I believe Windows 2003 (IIS6).
When I was reviewing the knowledge base, I found that Damba states that GetData creates a file locally. http://www.weonlydo.com/index.asp?forum=1&action=view&topic=1192391348#1192393907
I want to verify that fact, and if it is true, find out where the file is created, so I can check the IIS user rights.
Thanks
Re: WodFtpDLXCom GetData and PutData under Windows
Hi Jerry,
Temp file on Windows Vista should be created in C:\Users\your_account\AppData\Local\Temp folder.
I have try it and it works for me perfectly.
Let us know how it goes.
Regards,
Drazen
Re: WodFtpDLXCom GetData and PutData under Windows
Jerry,
does your code work on XP? Can you paste your code here? I suspect you don't use Blocking mode...
Kreso
Re: WodFtpDLXCom GetData and PutData under Windows
Kreso,
It works fine on XP.
Here is a code snippet of the dll that uses the library.
The dll has other functions for database operations and file parsing for the web application.
Option Explicit
Private Sftp As New wodFtpDLXCom
Private Sub Class_Initialize()
Sftp.LicenseKey = xxxx
Sftp.Blocking = 1
Sftp.Protocol = 1
mRemoteDir = /
End Sub
Function GetData(fName As String) As String
On Error Resume Next
Sftp.GetData mRemoteDir + fName
If Sftp.LastError = 0 Then GetData = Sftp.ListItem
On Error GoTo 0
End Function
I suspect that woddrazen has the actual problem.
The web application uses anonymous access on intranets, and I don't believe that either the IUSR_ or IWAM accounts will have rights to any user folder.
I was using the GetData and PutData for extra security, and was surprised that a file was being used. I did not that I could not easily read the temp file, even though the transferred files are text. For now I have changed my functions to use GetFile and PutFile with my own temp file in a folder within the web application virtual folder.
Perhaps the next version of FtpDLX can allow the temp folder to be changed using a property.
Thank you both for your quick response.