0 votes

Hello all,
i have problem with the Mail.dll assembly. If i try to deploy the application i alwas get an error :
ErrDescription:=Die Datei oder Assembly "Mail, Version=3.0.15064.922, Culture=neutral, PublicKeyToken=6dc438ab78a525b3" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.

My Application is in VB6 uses a warpper in .Net 4 to get access to the mail.dll.
On my developmentsystem everthing is working fine. But when i try to deploy the application and all of its dependencies i get the error.

Dim oMail       As New sxcSysMailNet40.Mail
......
Set oMail = CreateObject("sxcSysMailNet40.Mail")
debug.print oMail.sGetLicenceStatus
by (400 points)

2 Answers

0 votes

Make sure that Mail.dll is installed in GAC.

You can use the installer for that or gacutil.exe.

by (297k points)
0 votes

even then i get this error....

ErrSource:=mRead.mReadThisAccount.Line(11); ErrDescription:=Die Datei oder Assembly "Mail, Version=3.0.15064.922, Culture=neutral, PublicKeyToken=6dc438ab78a525b3" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.

May be it is usefull to put some code in here....

the call started in out vb6 application

Dim oMail       As New sxcSysMailNet40.Mail
......
Set oMail = CreateObject("sxcSysMailNet40.Mail")
debug.print oMail.sGetLicenceStatus

oMail is an Object in our Warpper

Imports System.Text
Imports System.IO
Imports Limilabs.Client.IMAP
Imports Limilabs.Client.POP3
Imports Limilabs.Client.SMTP
Imports Limilabs.Mail
Imports Limilabs.Mail.MIME
Imports Limilabs.Mail.Headers
Imports Limilabs.Mail.Licensing
.....
    Public Function sGetLicenceStatus() As LicenseStatus
        sGetLicenceStatus = Limilabs.Mail.Licensing.LicenseHelper.GetLicenseStatus()

    End Function

Mail Registration in .net Wrapper

I tried to register with gacutil an the installer from your Website without success. The error is still there.

by (400 points)
reshown by
Is Mail.dll registered in GAC?
Yes mail.dll is registered in GAC

Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.1
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Der globale Assemblycache enthält die folgenden Assemblys:
.......
Mail, Version=3.0.15064.922, Culture=neutral, PublicKeyToken=6dc438ab78a525b3, processorArchitecture=MSIL
.....
Anzahl der Elemente = 2236
What is the difference between dev and production then?
Dev: Windows7 Pro, Visual Studio6 , Visual Studio 2010, Mail.dll installed via Installer from your Website.

Prod: Windows 2012 Server, no Development IDE
Is Mail.dll registered in GAC on the production server?
Yes the Shell-log was from the prod System
Can you remove it from GAC and run the installer on prod?
already did this without success
Is Mail.dll in GAC now?
Yes
mail.dll is registered in GAC

 Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.1
 Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

 Der globale Assemblycache enthält die folgenden Assemblys:
 .......
 Mail, Version=3.0.15064.922, Culture=neutral, PublicKeyToken=6dc438ab78a525b3, processorArchitecture=MSIL
 .....
I think I was wrong that installer adds Mail.dll to GAC (just checked the installer code). So my question is: how it can be in gac if you removed it?
...