mirror of
https://github.com/Pro/dkim-exchange.git
synced 2026-04-25 08:55:52 +03:00
[GH-ISSUE #6] Any chance for Exchange 2013?!! #4
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 @scorniglion on GitHub (Jul 5, 2013).
Original GitHub issue: https://github.com/Pro/dkim-exchange/issues/6
Hi there,
Sorry to be so cheeky, but I tried to recompile dkim-exchange with VS 2012, under .Net 4.0 target. The procedure went fine, but Exchange won't send any more emails…!
I'm not exactly sure where to look for in the hundreds of various log files.
Any chance of a hand there?
Thanks for your help.
Regards
Sebastien
@Pro commented on GitHub (Jul 5, 2013):
Hey!
Thanks for trying! This is most probably due to an exception thrown during execution...
If the code caused exceptions they should be logged in the EventLog (http://technet.microsoft.com/en-us/library/bb726966.aspx) not in log files.
Try to look there (Check administrative logs, application logs, think there is even one for Exchange) and then post the error message here. If you can't find any, write a response here and we can try out additional steps...
@Pro commented on GitHub (Jul 5, 2013):
Ah, I forgot:
Try also to filter for Event Source 'Exchange DKIM'
This will be created by executing the file "Create key.reg" contained in this repo.
Make sure that you did this step! (It's also mentioned in the readme file)
@scorniglion commented on GitHub (Jul 5, 2013):
Ok. I had one stupid problem, my private key got named with a hidden ".txt" extension, I found it thanks to the Exchange DKIM filter.
But now, nothing related pops out in the Event Log.
I do get a lot of these though, even without dkim-exchange enabled:
Log Name: Application
Source: MSExchange Common
Date: 7/5/2013 4:28:44 PM
Event ID: 106
Task Category: General
Level: Error
Keywords: Classic
User: N/A
Computer: SQL.makeitdynamic.com
Description:
Performance counter updating error. Counter name is MailItem dehydrate total, category name is MSExchangeTransport Database. Optional code: 1. Exception: The exception thrown is : System.InvalidOperationException: Instance '_total' already exists with a lifetime of Process. It cannot be recreated or reused until it has been removed or until the process using it has exited.
at System.Diagnostics.SharedPerformanceCounter.FindInstance(Int32 instanceNameHashCode, String instanceName, CategoryEntry* categoryPointer, InstanceEntry** returnInstancePointerReference, Boolean activateUnusedInstances, PerformanceCounterInstanceLifetime lifetime, Boolean& foundFreeInstance)
at System.Diagnostics.SharedPerformanceCounter.GetCounter(String counterName, String instanceName, Boolean enableReuse, PerformanceCounterInstanceLifetime lifetime)
at System.Diagnostics.SharedPerformanceCounter..ctor(String catName, String counterName, String instanceName, PerformanceCounterInstanceLifetime lifetime)
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.IncrementBy(Int64 value)
at Microsoft.Exchange.Diagnostics.ExPerformanceCounter.IncrementBy(Int64 incrementValue)
Last worker process info : System.ArgumentException: Process with an Id of 36240 is not running.
at System.Diagnostics.Process.GetProcessById(Int32 processId)
at Microsoft.Exchange.Diagnostics.ExPerformanceCounter.GetLastWorkerProcessInfo()
Processes running while Performance counter failed to update:
10772 MSExchangeTransportLogSearch
548 wininit
33612 conhost
5196 mssearch
848 nvwmi64
316 RavMonD
5584 SPWRITER
1272 msdtc
6012 sqlwriter
34884 iexplore
16780 conhost
2556 MSExchangeHMHost
34012 popwndexe
824 nvvsvc
5712 WmiPrvSE
37884 mmc
37120 InetMgr
3400 inetinfo
15248 w3wp
5984 conhost
3448 noderunner
13308 fdhost
1668 hostcontrollerservice
3820 rundll32
4248 msmdsrv
36140 RsTray
6400 Microsoft.Exchange.Directory.TopologyService
9416 MSExchangeMailboxReplication
3812 sqlservr
1656 nvwmi64
4240 Microsoft.Exchange.Pop3Service
13284 fdhost
12420 conhost
12848 fdlauncher
10692 MSExchangeThrottling
10260 Microsoft.Exchange.ServiceHost
1636 nvxdsync
37052 w3wp
340 smss
37836 cmd
3352 sqlservr
6792 Microsoft.Exchange.AntispamUpdateSvc
8084 Microsoft.Exchange.Imap4Service
756 svchost
11528 notepad
12524 rundll32
37816 EdgeTransport
9368 Microsoft.Exchange.Pop3
26176 winlogon
5916 SQLAGENT
7632 Microsoft.Exchange.Search.Service
4612 ReportingServicesService
36832 cmd
34776 iexplore
8484 MSExchangeMailboxAssistants
36928 powershell
2016 Microsoft.Office.Server.Conversions.LoadBalancer
3736 conhost
14916 SPUCWorkerProcessProxy
1576 c2wtshost
18384 svchost
3728 MSExchangeHMWorker
30448 dwm
29584 taskhost
13636 SPUCHostService
36908 conhost
8460 scanningprocess
5872 sqlbrowser
4576 WSSADMIN
33452 iexplore
1556 svchost
2848 noderunner
16364 w3wp
29568 notepad
3276 noderunner
1120 svchost
7148 WmiPrvSE
11208 w3wp
4560 svchost
13084 fdlauncher
34028 w3wp
2828 mqsvc
1100 svchost
5116 sftracing
660 lsm
584 winlogon
6256 Ec2Config
652 lsass
11424 UMWorkerProcess
35128 w3wp
9696 Microsoft.Exchange.Pop3Service
644 services
1504 spoolsv
2360 Microsoft.Exchange.Diagnostics.Service
8872 Microsoft.Exchange.Imap4
3220 noderunner
35600 iexplore
7524 Microsoft.Exchange.EdgeSyncSvc
13988 w3wp
1056 svchost
31212 explorer
13540 SPUCWorkerProcess
2760 sqlservr
4464 w3wp
9220 conhost
26028 devenv
4904 ReportingServicesService
3032 msmdsrv
36364 conhost
34208 w3wp
17724 conhost
1144 svchost
1016 RsMgrSvc
36788 csrss
5324 wsstracing
1008 LogonUI
5748 conhost
6176 XenGuestAgent
35064 w3wp
2716 updateservice
8748 conhost
556 csrss
7020 msexchangerepl
1416 TrustedInstaller
2088 sqlservr
11232 Microsoft.Exchange.Store.Worker
2272 MsDtsSrvr
8736 Microsoft.Exchange.Imap4
4852 rundll32
540 svchost
7004 Microsoft.Exchange.Pop3
21224 scanningprocess
12600 VSSVC
31988 Microsoft.Exchange.RpcClientAccess.Service
31552 MSExchangeTransport
1812 Microsoft.Office.Server.Conversions.Launcher
4396 mssearch
9272 conhost
5300 OWSTIMER
504 svchost
3520 ForefrontActiveDirectoryConnector
1364 fms
496 csrss
13196 VCDDaemon
8680 Microsoft.Exchange.Imap4Service
6092 WebAnalyticsService
12556 svchost
10432 MSExchangeSubmission
916 svchost
2208 rundll32
28928 rdpclip
8236 conhost
12972 svchost
1332 taskeng
4344 SMSvcHost
5636 SQLAGENT
10376 w3wp
6060 svchost
9076 Microsoft.Exchange.Store.Service
10368 umservice
6056 conhost
35428 w3wp
6912 MSExchangeDelivery
8204 scanningprocess
6048 WMSvc
17684 mssdmn
1304 svchost
872 nvSCPAPISvr
10784 Microsoft.Exchange.UM.CallRouter
13800 XenDpriv
28884 iexplore
12936 svchost
4 System
7760 MSExchangeFrontendTransport
0 Idle
Performance Counters Layout information: A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : inqueue(56145953) RefCount=1 SpinLock=0 Offset=48552, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=1 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : smtpin(81392C98) RefCount=1 SpinLock=0 Offset=44384, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=2 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : queue(B351294) RefCount=1 SpinLock=0 Offset=40216, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat event 8(ED0419E7) RefCount=1 SpinLock=0 Offset=36048, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat event 6(ED0419E9) RefCount=1 SpinLock=0 Offset=31880, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat event 3(ED0419EC) RefCount=1 SpinLock=0 Offset=27712, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat event 1(ED0419EE) RefCount=1 SpinLock=0 Offset=23544, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=3 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat(B874BB3) RefCount=1 SpinLock=0 Offset=19376, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : mail(7C6FB7CC) RefCount=1 SpinLock=0 Offset=15208, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=6 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : other(ADC98A1) RefCount=1 SpinLock=0 Offset=11040, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 10432, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 10432 StartupTime: 130170686519816083, currentInstance : _total(CFBEE918) RefCount=1 SpinLock=0 Offset=32, categoryName: MSExchangeTransport Database
Event Xml:
106
2
1
0x80000000000000
1123078
Application
SQL.makeitdynamic.com
1
MailItem dehydrate total
MSExchangeTransport Database
The exception thrown is : System.InvalidOperationException: Instance '_total' already exists with a lifetime of Process. It cannot be recreated or reused until it has been removed or until the process using it has exited.
at System.Diagnostics.SharedPerformanceCounter.FindInstance(Int32 instanceNameHashCode, String instanceName, CategoryEntry* categoryPointer, InstanceEntry** returnInstancePointerReference, Boolean activateUnusedInstances, PerformanceCounterInstanceLifetime lifetime, Boolean& foundFreeInstance)
at System.Diagnostics.SharedPerformanceCounter.GetCounter(String counterName, String instanceName, Boolean enableReuse, PerformanceCounterInstanceLifetime lifetime)
at System.Diagnostics.SharedPerformanceCounter..ctor(String catName, String counterName, String instanceName, PerformanceCounterInstanceLifetime lifetime)
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.IncrementBy(Int64 value)
at Microsoft.Exchange.Diagnostics.ExPerformanceCounter.IncrementBy(Int64 incrementValue)
Last worker process info : System.ArgumentException: Process with an Id of 36240 is not running.
at System.Diagnostics.Process.GetProcessById(Int32 processId)
at Microsoft.Exchange.Diagnostics.ExPerformanceCounter.GetLastWorkerProcessInfo()
Processes running while Performance counter failed to update:
10772 MSExchangeTransportLogSearch
548 wininit
33612 conhost
5196 mssearch
848 nvwmi64
316 RavMonD
5584 SPWRITER
1272 msdtc
6012 sqlwriter
34884 iexplore
16780 conhost
2556 MSExchangeHMHost
34012 popwndexe
824 nvvsvc
5712 WmiPrvSE
37884 mmc
37120 InetMgr
3400 inetinfo
15248 w3wp
5984 conhost
3448 noderunner
13308 fdhost
1668 hostcontrollerservice
3820 rundll32
4248 msmdsrv
36140 RsTray
6400 Microsoft.Exchange.Directory.TopologyService
9416 MSExchangeMailboxReplication
3812 sqlservr
1656 nvwmi64
4240 Microsoft.Exchange.Pop3Service
13284 fdhost
12420 conhost
12848 fdlauncher
10692 MSExchangeThrottling
10260 Microsoft.Exchange.ServiceHost
1636 nvxdsync
37052 w3wp
340 smss
37836 cmd
3352 sqlservr
6792 Microsoft.Exchange.AntispamUpdateSvc
8084 Microsoft.Exchange.Imap4Service
756 svchost
11528 notepad
12524 rundll32
37816 EdgeTransport
9368 Microsoft.Exchange.Pop3
26176 winlogon
5916 SQLAGENT
7632 Microsoft.Exchange.Search.Service
4612 ReportingServicesService
36832 cmd
34776 iexplore
8484 MSExchangeMailboxAssistants
36928 powershell
2016 Microsoft.Office.Server.Conversions.LoadBalancer
3736 conhost
14916 SPUCWorkerProcessProxy
1576 c2wtshost
18384 svchost
3728 MSExchangeHMWorker
30448 dwm
29584 taskhost
13636 SPUCHostService
36908 conhost
8460 scanningprocess
5872 sqlbrowser
4576 WSSADMIN
33452 iexplore
1556 svchost
2848 noderunner
16364 w3wp
29568 notepad
3276 noderunner
1120 svchost
7148 WmiPrvSE
11208 w3wp
4560 svchost
13084 fdlauncher
34028 w3wp
2828 mqsvc
1100 svchost
5116 sftracing
660 lsm
584 winlogon
6256 Ec2Config
652 lsass
11424 UMWorkerProcess
35128 w3wp
9696 Microsoft.Exchange.Pop3Service
644 services
1504 spoolsv
2360 Microsoft.Exchange.Diagnostics.Service
8872 Microsoft.Exchange.Imap4
3220 noderunner
35600 iexplore
7524 Microsoft.Exchange.EdgeSyncSvc
13988 w3wp
1056 svchost
31212 explorer
13540 SPUCWorkerProcess
2760 sqlservr
4464 w3wp
9220 conhost
26028 devenv
4904 ReportingServicesService
3032 msmdsrv
36364 conhost
34208 w3wp
17724 conhost
1144 svchost
1016 RsMgrSvc
36788 csrss
5324 wsstracing
1008 LogonUI
5748 conhost
6176 XenGuestAgent
35064 w3wp
2716 updateservice
8748 conhost
556 csrss
7020 msexchangerepl
1416 TrustedInstaller
2088 sqlservr
11232 Microsoft.Exchange.Store.Worker
2272 MsDtsSrvr
8736 Microsoft.Exchange.Imap4
4852 rundll32
540 svchost
7004 Microsoft.Exchange.Pop3
21224 scanningprocess
12600 VSSVC
31988 Microsoft.Exchange.RpcClientAccess.Service
31552 MSExchangeTransport
1812 Microsoft.Office.Server.Conversions.Launcher
4396 mssearch
9272 conhost
5300 OWSTIMER
504 svchost
3520 ForefrontActiveDirectoryConnector
1364 fms
496 csrss
13196 VCDDaemon
8680 Microsoft.Exchange.Imap4Service
6092 WebAnalyticsService
12556 svchost
10432 MSExchangeSubmission
916 svchost
2208 rundll32
28928 rdpclip
8236 conhost
12972 svchost
1332 taskeng
4344 SMSvcHost
5636 SQLAGENT
10376 w3wp
6060 svchost
9076 Microsoft.Exchange.Store.Service
10368 umservice
6056 conhost
35428 w3wp
6912 MSExchangeDelivery
8204 scanningprocess
6048 WMSvc
17684 mssdmn
1304 svchost
872 nvSCPAPISvr
10784 Microsoft.Exchange.UM.CallRouter
13800 XenDpriv
28884 iexplore
12936 svchost
4 System
7760 MSExchangeFrontendTransport
0 Idle
Performance Counters Layout information: A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : inqueue(56145953) RefCount=1 SpinLock=0 Offset=48552, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=1 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : smtpin(81392C98) RefCount=1 SpinLock=0 Offset=44384, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=2 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : queue(B351294) RefCount=1 SpinLock=0 Offset=40216, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat event 8(ED0419E7) RefCount=1 SpinLock=0 Offset=36048, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat event 6(ED0419E9) RefCount=1 SpinLock=0 Offset=31880, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat event 3(ED0419EC) RefCount=1 SpinLock=0 Offset=27712, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat event 1(ED0419EE) RefCount=1 SpinLock=0 Offset=23544, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=3 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : cat(B874BB3) RefCount=1 SpinLock=0 Offset=19376, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : mail(7C6FB7CC) RefCount=1 SpinLock=0 Offset=15208, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 37816, counter : datarow seeks total Value=6 SpinLock=0 Lifetime=Type: 1 ProcessId: 37816 StartupTime: 130175081051672477, currentInstance : other(ADC98A1) RefCount=1 SpinLock=0 Offset=11040, categoryName: MSExchangeTransport Database
A process is holding onto a transport performance counter. processId : 10432, counter : datarow seeks total Value=0 SpinLock=0 Lifetime=Type: 1 ProcessId: 10432 StartupTime: 130170686519816083, currentInstance : _total(CFBEE918) RefCount=1 SpinLock=0 Offset=32, categoryName: MSExchangeTransport Database
Could it be related?
Thanks!
@Pro commented on GitHub (Jul 5, 2013):
Hmm, strange error, never seen it before.
Did you already try to restart the Exchange Transport Agent (In services.msc).
Or maybe there are somehow two instances running : http://social.msdn.microsoft.com/Forums/vstudio/en-US/ccb93e1f-bfd0-47dc-b119-dd8b0748477f/logging-into-a-configurtion-service
NOTE:
if changed something in the code to get it working it would be nice to send a merge request.
It would also help other users if you can commit the compiled .dll for Exchange 2013. Thanks!
@scorniglion commented on GitHub (Jul 5, 2013):
Found the problem on the web: it's got to do with Perf Counters, I don't believe it will affect DKIM
FYI: http://www.ntsystems.it/post/Exchange-2013-clean-install-but-many-MSExchange-Common-106-errors.aspx
I haven't touched anything to the code, single-handedly the .Net version target (to 4.0).
@scorniglion commented on GitHub (Jul 5, 2013):
Hi there. The Perf Counters must have been a problem: it's working like a charm now!!!
Thanks for your quick support
@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
In a few days I'll also push newly compiled version for Exchange 2013 (after it's installed in Virtual Box and tested)
@Pro commented on GitHub (Nov 27, 2013):
The "official" Exchange 2013 dll is now available and tested on Windows Server 2012 R2.
@scorniglion commented on GitHub (Nov 27, 2013):
Thanks for letting me know, we¹ll try it out on our deployment and keep you
posted too.
Just to make sure: did you have to make any changes to the code base for
Exchange 2013, as I didn¹t have to do anything but change the framework
target and ³recompile² with the previous version?
@Pro commented on GitHub (Nov 27, 2013):
No, I didn't change anything in the functionality of the code but changed handling of the configuration file (code cleanup). Thus you should follow https://github.com/Pro/dkim-exchange#update-from-version-05
It would have been enough to change the target framework to .Net 4.0 to successfully compile.
Please post any issues here on github (open a new one). Thanks for testing!