Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: MethodAccessException on Login method Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mnoreen
Newbie
Newbie


Joined: 17 July 2012
Location: United States
Online Status: Offline
Posts: 19
Posted: 18 October 2012 at 1:35pm | IP Logged Quote mnoreen

I've just set up a brand new PC and decided to move VS2012 while I was at it. I then restored my development projects, all C#, .NET 4. I had a test console app that was working with Mailbee and VS2010. All it did was connect and login to a custom mailbox on our Exchange 2010 server, just to make sure the basic process was working.

Now, running that same console app under my new VS2012 setup, an exception is thrown as soon as the Login method is called. So, the Connect method works, but the next step fails with the following error:

"Attempt by security transparent method 'a.g.ad.a(Int32)' to call native code through method 'a.g.ad.FormatMessage(Int32, IntPtr, Int32, Int32, IntPtr ByRef, Int32, IntPtr)' failed. Methods must be security critical or security safe-critical to call native code."}     System.Exception {System.MethodAccessException}

The Mailbee.NET DLL is v4.0.30319.

Any ideas what I can do to resolve this?
Back to Top View mnoreen's Profile Search for other posts by mnoreen
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 19 October 2012 at 1:41am | IP Logged Quote Igor

Quote:
The Mailbee.NET DLL is v4.0.30319.


This looks like .NET Framework version number, I'd say. Current version of MailBee.NET.dll optimized for .NET Framework 4.0 is 7.2.4.375, it's available for download here. Can you confirm the issue is reproduced with the latest build?

--
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: 6103
Posted: 19 October 2012 at 1:44am | IP Logged Quote Igor

Small correction: version 7.2.4.379 has just been uploaded.

--
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