Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find an entry point named 'GetCurrentPackageId' in DLL 'kernel32.dll' when using Visual Studio debugger

I have an ASP.NET which calls an asmx web service. It works fine on one machine with or without using the debugger in VS 2010. On another machine, it gives an error "Unable to find an entry point named 'GetCurrentPackageId' in DLL 'kernel32.dll'" in the web service constructor and when launched in the debugger. If the app is running without the debugger it runs fine. If the debugger is attached to w3wp.exe, the app runs fine and breakpoints are reached. This is in Windows 7 64bit. The same app exhibits the same behavior under VS11beta.

Any ideas why I get this error when using the debugger.

like image 698
Tony_Henrich Avatar asked Mar 18 '12 08:03

Tony_Henrich


2 Answers

I recently noticed the same thing started on a machine that previously worked just fine. The only change that occurred was the installation of Visual Studio 2011 Ultimate Beta 1. The problem has unfortunately persisted after the uninstall of 2011.

More specifically, it's happening with projects that were opened with the beta.

like image 117
simtel12 Avatar answered Nov 18 '22 02:11

simtel12


I was experiencing this problem and deleted my [projectname].suo file. This file exists in the directory where the .sln file is located.

Once I did this the problem no longer exists.

Be sure to back up this file before you try this, and know that you may have to reset a few things (startup project, etc)

like image 29
JHubbard80 Avatar answered Nov 18 '22 02:11

JHubbard80