I've been getting the following warning message when launching Visual Studio 2010 recently:

"The procedure entry point EventUnregister could not be located in the dynamic link library ADVAPI32.dll"

I can't remember what programs I've installed recently that would cause this issue. I'd like to track it down and get rid of the warning. Thanks.

link|improve this question
What version of Windows are you using? – techie007 Mar 30 '11 at 19:18
Windows XP Professional Version 2002 SP3 – mobileTofu Mar 30 '11 at 19:48
feedback

2 Answers

up vote 0 down vote accepted

I'm betting you installed the VS 2010 Diagnostic Tool, which (apparently) doesn't work under XP, and seems to replace/corrupt the ADVAPI32.dll.

See the 'reviews' tab here: http://visualstudiogallery.msdn.microsoft.com/e8649e35-26b1-4e73-b427-c2886a0705f4/

Here's one of the reviews:

I installed it before having read that it isn't usable on XP. After deinstalling, i still got the entry point error and was still not able to debug my (C++) projects because of an NtClose error right at the start of a debug session. I only got rid of it via a reset to a system restore point.

So you may want to figure out if/when that tool was installed (Add/Remove Programs should tell you) and roll back to a restore point from before you installed it.

link|improve this answer
Hi techie007, Thanks much for the info. Yes I bet you are right. But how do I "figure out if/when that tool was installed (Add/Remove Programs should tell you) and roll back to a restore point from before you installed it"? Is there a step-by-step instruction somewhere? Much appreciated! – mobileTofu Mar 31 '11 at 15:22
Start->Control Panel->Add/Remove Programs is what I was suggesting. :) – techie007 Mar 31 '11 at 23:26
Hi techie007, Thanks for the reply. I've found this link (microsoft.com/windowsxp/using/helpandsupport/learnmore/…) to be helpful. Unfortunately, I didn't have any restore point created at the time I installed the Diagnostic Tool. – mobileTofu Apr 2 '11 at 2:05
feedback

I was able to solve this by removing the following file: C:\WINDOWS\system32\Microsoft.Internal.Performance.CodeMarkers.dll

Supposedly it´s something loaded with VS 2010 that uses the EventUnregister-method in advapi32.dll that doesn't exist in versions prior to Vista.

I can´t say that there´s no side effects to doing this but so far it works.

Found the solution here: Reviews - Visual Studio 2010 Diagnostics Tool

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.