mirror of
https://github.com/Pro/dkim-exchange.git
synced 2026-04-25 08:55:52 +03:00
[GH-ISSUE #3] Install-TransportAgent: Could not load file or assembly #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ChronoGuru on GitHub (Apr 11, 2013).
Original GitHub issue: https://github.com/Pro/dkim-exchange/issues/3
Following the instructions, I have the files in the file location mentioned. When I run the command for "Install-TransportAgent" this is the output error I receive:
"[PS] C:\Windows\system32>Install-TransportAgent -Name "Exchange DKIM" -TransportAgentFactory "Exchange.DkimSigner.DkimSi
gningRoutingAgentFactory" -AssemblyPath "C:\Program Files\Exchange DKIM\Exchange.DkimSigner.dll"
Install-TransportAgent : Could not load file or assembly 'file:///C:\Program Files\Exchange DKIM\Exchange.DkimSigner.dl
l' or one of its dependencies. The module was expected to contain an assembly manifest.
At line:1 char:23
tFactory" -AssemblyPath "C:\Program Files\Exchange DKIM\Exchange.DkimSigner.dll"
@ChronoGuru commented on GitHub (Apr 12, 2013):
I resolved this by renaming the files and commands from Exchange.DkimSigner.dl to ExchangeDkimSigner.dll......looks like the extra period in the filename was causing the issue.
Thank you very much for this! I spent a good portion of the day implementing it but so far it's working well! I can't believe the lengths we have to go through just to email Yahoo.
@Pro commented on GitHub (Apr 12, 2013):
Can you tell which OS and Exchange Version you use?
We are using Win 2008 R2 and Exchange 2010 (newest Service Pack) and didn't have that problem...
@ChronoGuru commented on GitHub (Apr 12, 2013):
Same actually, 2008 R2 and Exchange 2010 SP3. I'm not sure of the difference between our environments then unfortunately, I just know I had to do that to get it to work. For some reason it didn't like the extra period in the filename, so I had to change:
"Install-TransportAgent -Name "Exchange DKIM" -TransportAgentFactory "Exchange.DkimSigner.DkimSigningRoutingAgentFactory" -AssemblyPath "C:\Program Files\Exchange DKIM\Exchange.DkimSigner.dll"
to:
"Install-TransportAgent -Name "Exchange DKIM" -TransportAgentFactory "Exchange.DkimSigner.DkimSigningRoutingAgentFactory" -AssemblyPath "C:\Program Files\Exchange DKIM\ExchangeDkimSigner.dll"
As well as rename both the Exchange.DkimSigner.dll config and application extension to match.
@Pro commented on GitHub (Apr 12, 2013):
Ok, thanks.
I think this is related to:
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/9ad17869-63cc-4529-bfaf-9099db500e0d/
This means that renaming the file to any other filename (with or without extra period) fixes the problem.
I'll dig deeper, to find the cause of this problem.
@ChronoGuru commented on GitHub (Apr 12, 2013):
No problem, thanks again for uploading this! You're a life saver.
@Pro commented on GitHub (Nov 26, 2013):
Today I commited a new install script. This should fix common install problems.
Simply follow the the instructions here: https://github.com/Pro/dkim-exchange#update-from-version-05 or install from scratch https://github.com/Pro/dkim-exchange#installing-the-transport-agent