| Author |  | 
      
        | otteporihs Newbie
 
  
  
 Joined: 13 November 2012
 Location: United States
 Online Status: Offline
 Posts: 3
 | 
          Hi,
           | Posted: 13 November 2012 at 9:26am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          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?
           | Posted: 13 November 2012 at 10:44am | IP Logged |   |  
           | 
 |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | otteporihs Newbie
 
  
  
 Joined: 13 November 2012
 Location: United States
 Online Status: Offline
 Posts: 3
 | 
          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.
           | Posted: 13 November 2012 at 12:36pm | IP Logged |   |  
           | 
 |  
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Understood, thank you. Developers will look into this.
           | Posted: 14 November 2012 at 2:30am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Please try the updated DLL build optimized for .NET 4.0 and let us know if the update helps you. Thanks.
           | Posted: 21 November 2012 at 3:42am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | dmarecek Newbie
 
  
 
 Joined: 23 November 2012
 Location: Czech Republic
 Online Status: Offline
 Posts: 1
 | 
          Hello,
           | Posted: 23 November 2012 at 3:55am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          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.
           | Posted: 23 November 2012 at 3:59am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |