Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: MethodAccessException was unhandled Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
otteporihs
Newbie
Newbie
Avatar

Joined: 13 November 2012
Location: United States
Online Status: Offline
Posts: 3
Posted: 13 November 2012 at 9:26am | IP Logged Quote otteporihs

Hi,

I'm evaluating MailBee for my project involving S/MIME.
My system: Windows 7, Visual Studio 2012 Premium
I selected MailBee>NET Objects for .NET 4.0/4.5 only during installation.

On my first try, I created a new .NET 4 Console project and add only 1 line of code in the program:
Code:
var smime = new MailBee.Security.Smime();

When running, I got this exception:
Code:
Attempt by security transparent method 'MailBee.Security.CryptoServiceProvider.a()' to call native code through method 'a.b.af+d.CryptGetDefaultProvider(UInt32, IntPtr, UInt32, IntPtr, UInt32 ByRef)' failed.  Methods must be security critical or security safe-critical to call native code.


I got the similar exception when running SMIMEDemo.exe directly.

Any suggestions?

Thanks,
Back to Top View otteporihs's Profile Search for other posts by otteporihs
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 13 November 2012 at 10:44am | IP Logged Quote Alex

You may try to reinstall, this time selecting .net 2.0 version only. It can work with .net 4.0 just like with .net 2.0. Does it make any difference if you use 2.0 version?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
otteporihs
Newbie
Newbie
Avatar

Joined: 13 November 2012
Location: United States
Online Status: Offline
Posts: 3
Posted: 13 November 2012 at 12:36pm | IP Logged Quote otteporihs

It works when I uninstall MailBee for .NET 4.0 and install MailBee for .NET 2.0. Our application will be optimized for .NET 4.0 and upgraded to .NET 4.5 in the future, so we hope to find the components built for 4.0 natively.
Back to Top View otteporihs's Profile Search for other posts by otteporihs
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 14 November 2012 at 2:30am | IP Logged Quote Igor

Understood, thank you. Developers will look into this.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 21 November 2012 at 3:42am | IP Logged Quote Igor

Please try the updated DLL build optimized for .NET 4.0 and let us know if the update helps you. Thanks.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
dmarecek
Newbie
Newbie


Joined: 23 November 2012
Location: Czech Republic
Online Status: Offline
Posts: 1
Posted: 23 November 2012 at 3:55am | IP Logged Quote dmarecek

Hello,

I have the same problem, and you "updated dll build" solved it. Nice. But, my question is - your last official version for download is 7.2.4.366. It is possible use this new version (7.3.4.380) for my production system????

THX David
Back to Top View dmarecek's Profile Search for other posts by dmarecek
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 23 November 2012 at 3:59am | IP Logged Quote Igor

Yes, it's safe to use the latest DLL in production environment, as it contains all the fixes and improvements available for the product, and if you're using older DLL (e.g. the one shipped with the installer) you might still encounter issues which were already fixed by us. We take safety of our customers very seriously and do our best to fix any smallest issues ASAP.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide