EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Windows Phone sample?

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#22177
Posted: 10/25/2012 03:39:09
by Subramanyam .B (Basic support level)
Joined: 10/25/2012
Posts: 6

I can successfully run the FTPSBlackbox client samples but when I try to replicate that in a windows phone project I get exceptions with the my ftp sever connection. Are there any samples of using these new WP7 assemblies that are included?and my requirement is to upload an image file to my ftp server from windows phone 7.1 media library.
#22178
Posted: 10/25/2012 03:43:03
by Vsevolod Ievgiienko (EldoS Corp.)

Please refer to our sample for Windows Phone: \EldoS\SecureBlackbox.NET\Samples\C#\FTPSBlackbox\Client\WindowsPhone\SimpleFTPS
#22180
Posted: 10/25/2012 03:56:10
by Subramanyam .B (Basic support level)
Joined: 10/25/2012
Posts: 6

I was running the sample "SimpleFTPS" as you said..and tried to connect my ftp server and when i click the upload button at line "m_FtpsClient.Send(strm, "myFile.txt");" it shows an exception like "ftps connection is not present".in this following code:

[private void btnUpload_Click(object sender, RoutedEventArgs e)
{
IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication();


using (StreamWriter writeFile = new StreamWriter(new IsolatedStorageFileStream("myFile.txt", FileMode.Create, FileAccess.Write, myIsolatedStorage)))
{
string someTextData = "This is some text data to be saved in a new text file in the IsolatedStorage!";
writeFile.WriteLine(someTextData);
writeFile.Close();
}


IsolatedStorageFileStream strm = myIsolatedStorage.OpenFile("myFile.txt", FileMode.Open, FileAccess.Read);
try
{
m_FtpsClient.Send(strm, "myFile.txt");
}
finally
{
strm.Close();
}
MessageBox.Show("Upload complete");
}]
#22190
Posted: 10/25/2012 05:14:59
by Ken Ivanov (EldoS Corp.)

Subramanyam,

Could you please show us the log that the sample creates (both FTP command log and the trace output at the bottom of the sample's window)?
#22195
Posted: 10/25/2012 07:06:28
by Subramanyam .B (Basic support level)
Joined: 10/25/2012
Posts: 6

Innokentiy Ivanov,

Thanks for reply,but iam not get you..What is log?
#22197
Posted: 10/25/2012 08:01:36
by Ken Ivanov (EldoS Corp.)

It's the area of the main sample's window marked with an orange rectangle on the attached picture.


#22210
Posted: 10/25/2012 23:19:24
by Subramanyam .B (Basic support level)
Joined: 10/25/2012
Posts: 6

I am not getting message like TCP connection establishment..Ok i will send my windows logs both ftp and traced putput.


#22211
Posted: 10/25/2012 23:24:40
by Subramanyam .B (Basic support level)
Joined: 10/25/2012
Posts: 6

After Connecting, It shows an exception like bellow


#22212
Posted: 10/25/2012 23:27:46
by Subramanyam .B (Basic support level)
Joined: 10/25/2012
Posts: 6

And i am not getting any message like tcp connection establishment as you shown in your snapshot..and i got output as shown


#22218
Posted: 10/26/2012 03:43:02
by Ken Ivanov (EldoS Corp.)

Error 11001 is a winsock error standing for the WSAHOST_NOT_FOUND constant. This means that the network layer of the device can't resolve the IP address by the name of the server for some reason (it could be that the device just doesn't have connectivity at all).

You might wish to try connecting to the server by its IP address (which nslookup reports as 97.74.144.141 and check if connection works in this way.
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 30121 times

Number of guests: 36, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!