Registering agent
Could not load file or assembly 'file:///C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll' or one of its
dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent], FileLoadException
+ FullyQualifiedErrorId : [Server=EXCHANGE2013,RequestId=c4faf8ee-f91c-4548-bd1f-4ebaf6bb0e0d,TimeStamp=02/03/2014
11:39:42] [FailureCategory=Cmdlet-FileLoadException] E9E2E55C,Microsoft.Exchange.Management.AgentTasks.InstallTra
nsportAgent
+ PSComputerName : exchange2013.xxx.xxx.xxx
check if the .dll's are unlocked:
- open the folder containing the downloaded .zip contents
- open the folder
.\Src\Exchange.DkimSigner\bin\
- select the corresponding Exchange version
- for all the .dll files in this folder (
ExchangeDkimSigner.dll
) make sure that they are unlocked: - Click Properties
- Go to the "General" tab
- Click on "Unlock file"
- Click OK
Could not load file or assembly 'file:///C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll' or one of its
dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent], BadImageFormatException
+ FullyQualifiedErrorId : 9AA5EBB5,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent
Change the target framework
- In Visual Studio, ight click on the project ("Exchange.DkimSigner")
- Go in the properties
- Go to the "Application" tab
- Change the target framework to .NET 3.5 (Exchange 2007 & 2010) or to .NET 4.0 (Exchange 2013)
copy-item : The process cannot access the file 'C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll' because it is
being used by another process.
- Open Powershell
- Execute
net stop W3SVC
- Delete the file
C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll
- Execute
net start W3SVC
- Rerun the install script
Registering agent:
Could not load file or assembly '...' or one of its dependencies. The module was expected to contain an assembly manifest
The .dll may be corrupted. Possible cause: you are using a FTP Client to put the .dll on the server.
You need to directly download the .zip from github to the server or transfer the files via Windows Share.
Another possible solution is to either restart your server or restart the WWW Publishing Service
:
net stop W3SVC
net start W3SVC