Pro / dkim-exchange

DKIM Signing Agent for Microsoft Exchange Server
Other
409 stars 143 forks source link

Install Error on Exchange 2013 #10

Closed mapthegod closed 10 years ago

mapthegod commented 10 years ago

During the Install-TransportAgent and subsequently Enable-TransportAgent i get the following error: [PS] C:\Users\Administrator.XXX\Desktop\dkim-exchange-fix-exchange2013>Install-TransportAgent -Name "Exchange DkimSigner" -TransportAgentFactory "Exchange.DkimSigner.DkimSigningRoutingAgentFactory" -AssemblyPath "C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll" Die Datei oder Assembly "file:///C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll" oder eine Abhängigkeitdavon wurde nicht gefunden. Der Vorgang wird nicht unterstützt. (Ausnahme von HRESULT: 0x80131515)

It seems as though the dll was not compiled right for 2013. I copyed the dev .dll from the Exchange 2013 Server and compiled the project in Visual Studio 2012. The generated .dll works just fine. I can provide the working .dll if required.

Pro commented 10 years ago

Which version of Windows Server do you have? 2008 R2, 2012 or 2012 R2?

mapthegod commented 10 years ago

2012 Datacenter

Pro commented 10 years ago

Strange. I just revalidated the current .dll on github by using the install script on my Windows Server 2012 R2 with Exchange 2013. I didn't got this error.

This may be related to security settings: Since the .dll was downloaded from the WWW, it may have gotten a "locked" flag. (see http://blog.codingoutloud.com/2010/03/05/the-project-location-is-not-trusted-dealing-with-the-dreaded-unblock/) Can you please verify if this flag is set if you follow the install instructions (use the downloaded dll instead of the one you compiled). See also this answer: http://stackoverflow.com/a/14116631/869402

Please let me know if this fixes the error.

mapthegod commented 10 years ago

I had those ideas myself, didn't work. Also tried changing the Permissions of the dll which also did not help.

Pro commented 10 years ago

Ok, then it may be related to the Exchange Dev dll. Can you confirm that your dev dlls have the same metadata: common.dll transport.dll

Pro commented 10 years ago

And please also send the output of the following command (executed in Exchange Management Shell):

[PS] C:\Windows\system32>Get-ExchangeServer | Format-Table Name, *Version*
Name                                    AdminDisplayVersion                     ExchangeVersion
----                                    -------------------                     ---------------
WS2012                                  Version 15.0 (Build 516.32)             0.1 (8.0.535.0)
mapthegod commented 10 years ago

transport common

[PS] C:\Users\Administrator.XXX\Desktop\dkim-exchange-fix-exchange2013>Get-ExchangeServer | Format-Table Name, Version

Name AdminDisplayVersion ExchangeVersion


XXX-EXCH01 Version 15.0 (Build 712.24) 0.1 (8.0.535.0) XXX-EXCH03 Version 15.0 (Build 712.24) 0.1 (8.0.535.0) XXX-EXCH02 Version 15.0 (Build 712.24) 0.1 (8.0.535.0)

I have Exchange 2013 CU2 running, seems like your DLLs are from Exchange 2013 CU1 or without updates.

Pro commented 10 years ago

Well that's most likely the problem. I've Ex2013 without any CU. So we need an additional version in the build process, this will never end....

Can you please add your compiled .dll to the git repo in a new folder Src/Exchange.DkimSigner/bin/Exchange 2013 CU2, update the install script adding the additional install option and then create a pull request? Thanks!

mapthegod commented 10 years ago

Will do so ;)