Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: Problems loading DLL Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
efreitasrj
Newbie
Newbie


Joined: 01 August 2008
Location: Brazil
Online Status: Offline
Posts: 9
Posted: 01 August 2008 at 1:36pm | IP Logged Quote efreitasrj

Hi guys,

I'm developing an application that will run as a Windows Service. My DLL needs to access MailBee.net DLL to invoke the POP methods.

Everything is running fine on my local computer. The problem starts to happen when I install my service in the production server.

When the service is started I get the following message :

System.BadImageFormatException: Could not load file or assembly 'MailBee.NET, Version=3.1.2.90, Culture=neutral, PublicKeyToken=cd85b70fb26f9fc1' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'MailBee.NET, Version=3.1.2.90, Culture=neutral, PublicKeyToken=cd85b70fb26f9fc1'
   at Tracker.Email.PopReader.PopRead()
   at Tracker.Email.Service.TrackerService.Run(Object state)


I've tried everything I could... Put the Mailbee DLL in the same folder as the other DLLs which are referenced, created a BIN folder (although this is NOT an ASP.NET app, but a Windows Service), etc, etc.

I don't know what else to try. I was really excited and was about to purchase your component, but if I don't solve this problem, I won't be able to use your product.

Any clues ?
Back to Top View efreitasrj's Profile Search for other posts by efreitasrj
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 01 August 2008 at 2:28pm | IP Logged Quote Andrew

Try to install MailBee.NET.dll into GAC (Global Assembly Cache) of the production server. You can access it by running %windir%/assembly through Start / Run.

Also, please check how MailBee.NET.dll is referenced in your project. If it's referenced from GAC of your local computer, try to delete the reference and create it again, but to the .dll on filesystem (C:\Program Files\MailBee.NET Objects\2.0\MailBee.NET.dll) and make sure you set "Copy Local" property of the reference to true.

Please let us know if this helps.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
efreitasrj
Newbie
Newbie


Joined: 01 August 2008
Location: Brazil
Online Status: Offline
Posts: 9
Posted: 01 August 2008 at 2:53pm | IP Logged Quote efreitasrj

Well I tried this:

gacutil /i MailBee.NET.dll

and I got the following prompt msg:

Failure adding assembly to the cache: An attempt was made to load a program with an incorrect format.
Back to Top View efreitasrj's Profile Search for other posts by efreitasrj
 
efreitasrj
Newbie
Newbie


Joined: 01 August 2008
Location: Brazil
Online Status: Offline
Posts: 9
Posted: 01 August 2008 at 3:09pm | IP Logged Quote efreitasrj

If I try to simply drag & drop I get the following msg:

The module MailBee.Net.dll was expected to contain an assemlbly manifest.

please guys help me purchase your product by giving me a solution to this!
Back to Top View efreitasrj's Profile Search for other posts by efreitasrj
 
efreitasrj
Newbie
Newbie


Joined: 01 August 2008
Location: Brazil
Online Status: Offline
Posts: 9
Posted: 01 August 2008 at 3:41pm | IP Logged Quote efreitasrj

Hi Andrew,

Thanks for the help. When I published my application through VS it corrupted the DLL. I found out comparing the sizes: the original was 560kb and the one on the server was only 490. Go figure.

After I manually uploaded the DLL again and registered on the GAC, everything started to work.

Thanks a lot for the support. You just got a new customer.
Back to Top View efreitasrj's Profile Search for other posts by efreitasrj
 

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