EldoS | Feel safer!

Software components for data protection, secure storage and transfer

FTPS on Silverlight 5 on Mac

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#18516
Posted: 12/19/2011 11:38:12
by Ag Ibragimov (Standard support level)
Joined: 12/19/2011
Posts: 5

Anyone has any idea why when I'm trying to create
Code
new TElSimpleFTPSClient()

using Silverlight 5 assemblies of BlackBox it works on Windows machines, but fails on Mac and
says:

Quote
Attempt by security transparent method 'SBCryptoProvWin32.TElWin32ProviderInfo.AcquireProvider()' to call native code through method 'SBWinCrypt.__Global.CryptAcquireContext(UInt32 ByRef, System.String, System.String, UInt32, UInt32)' failed. Methods must be security critical or security safe-critical to call native code.
#18517
Posted: 12/19/2011 12:44:27
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

The problem occurs due to absence of native Windows cryptographic provider on Mac OS X. Please try to disable the Win32 provider by running the following code at the very start of your application:

SBCryptoProvManager.DefaultCryptoProviderManager().Win32CryptoProvider.Enabled = false;
#18518
Posted: 12/19/2011 14:10:24
by Ag Ibragimov (Standard support level)
Joined: 12/19/2011
Posts: 5

Quote
Innokentiy Ivanov wrote:
SBCryptoProvManager.DefaultCryptoProviderManager().Win32CryptoProvider.Enabled = false;


Nope, It still throws the same exception but now on attempt to call that

SBCryptoProvManager.__Global.DefaultCryptoProviderManager().Win32CryptoProvider.Enabled = false;

exception:
Quote
Attempt by security transparent method 'SBCryptoProvWin32.TElWin32ProviderInfo.AcquireProvider()' to call native code through method 'SBWinCrypt.__Global.CryptAcquireContext(UInt32 ByRef, System.String, System.String, UInt32, UInt32)' failed. Methods must be security critical or security safe-critical to call native code.
#18519
Posted: 12/19/2011 14:42:08
by Eugene Mayevski (EldoS Corp.)

Just a thought - can you use Silverlight 4 assemblies on Mac? They don't have bindings to native code


Sincerely yours
Eugene Mayevski
#18520
Posted: 12/19/2011 15:15:48
by Ag Ibragimov (Standard support level)
Joined: 12/19/2011
Posts: 5

Quote
Eugene Mayevski wrote:
Just a thought - can you use Silverlight 4 assemblies on Mac? They don't have bindings to native code


Yay.. that worked! Spasibo Jenya!
#18521
Posted: 12/19/2011 15:43:31
by Ag Ibragimov (Standard support level)
Joined: 12/19/2011
Posts: 5

Although one more question? Why

Code
var client = new TElSimpleFTPSClient();
       client.Address = "192.168.1.39";
       client.Username = "Anonymous";
       client.Password = "empty@mail.com";
       client.OnCertificateValidate +=
             (object sender, TElX509Certificate certificate, ref bool validate) => validate = true;

        client.Open();
        client.Login();


Login works so painfully slow?

Oh I got that... I think because I'm using the trial version....
#18522
Posted: 12/19/2011 16:01:15
by Ken Ivanov (EldoS Corp.)

The evaluation version includes a bunch of intentionally made slowdowns (delays). Please request a time-limited "real" licence key here to be able to evaluate the product without the delays.
#18523
Posted: 12/19/2011 16:22:45
by Eugene Mayevski (EldoS Corp.)

Agzam, we can't send keys to invalid e-mail addresses. I picked your address from site profile, but if you used non-existing address there as well, then I don't see how we can help you if you are hiding from us.


Sincerely yours
Eugene Mayevski
#18529
Posted: 12/20/2011 08:55:36
by Ag Ibragimov (Standard support level)
Joined: 12/19/2011
Posts: 5

We're gonna buy full version... The library fits perfect to our needs and does even more. I wasted a few days and I could spend even more trying to find a way to bind all things together silverlight+ftp client+macosx.
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 1460 times

Number of guests: 1, 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!