Author |
|
efreitasrj Newbie
Joined: 01 August 2008 Location: Brazil
Online Status: Offline Posts: 9
|
Posted: 01 August 2008 at 1:36pm | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 01 August 2008 at 2:28pm | IP Logged
|
|
|
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 |
|
|
efreitasrj Newbie
Joined: 01 August 2008 Location: Brazil
Online Status: Offline Posts: 9
|
Posted: 01 August 2008 at 2:53pm | IP Logged
|
|
|
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 |
|
|
efreitasrj Newbie
Joined: 01 August 2008 Location: Brazil
Online Status: Offline Posts: 9
|
Posted: 01 August 2008 at 3:09pm | IP Logged
|
|
|
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 |
|
|
efreitasrj Newbie
Joined: 01 August 2008 Location: Brazil
Online Status: Offline Posts: 9
|
Posted: 01 August 2008 at 3:41pm | IP Logged
|
|
|
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 |
|
|