Security.dll and EnumerateSecurityPackagesW

DLL Hell is still with us to some extent. This one comes from the school of bitter experience. Don’t think of naming any of your dll’s security.dll. The problem is that Windows already uses the name security.dll, and will not load the corresponding system DLL if yours is already loaded (you can find a fuller explanation over at The Old New Thing).

In my case this caused the following nasty error to pop up when using Integrated Security for authentication on a web service call:

"An unhandled exception of type ‘System.EntryPointNotFoundException’
occurred in system.dll Additional information: Unable to find an entry point named
EnumerateSecurityPackagesW in DLL security.dll"

Of course with hindsight using the name security.dll seems pretty foolish now…

This entry was posted in Uncategorized. Bookmark the permalink.

62 Responses to Security.dll and EnumerateSecurityPackagesW

  1. says: Asus f3 Battery Toshiba pa3594u-1brs Battery Toshiba pa3593u-1bas Battery Toshiba pabas111 Battery Dell xps m1530 Battery Hp tx2000 Battery Hp pavilion tx1000 Battery Dell xps m1730 Battery Hp pavilion dv6 Battery Toshiba pa3395u-1brs Battery Toshiba pa3421u-1brs Battery Toshiba pa3451u-1brs Battery Toshiba pa3399u-1brs Battery Toshiba pa3399u-2bas Battery Toshiba satellite a100 Battery Toshiba satellite m40 Battery Toshiba satellite m45 Battery Toshiba satellite m55 Battery Toshiba pa3356u Battery Toshiba pa3356u-1bas Battery Toshiba pa3356u-1brs Battery Toshiba pa3356u-2brs Battery Toshiba pa3456u-1brs Battery Toshiba portege m500 Battery Toshiba pa3451u Battery Toshiba pabas067 Battery Toshiba pa3465u-1brs Battery Toshiba pa3534u-1brs Battery Toshiba pa3533u-1bas Battery Toshiba satellite a205 Battery Toshiba pa3534u-1bas Battery Uniwill 255-3s4400-g1l1 Battery Uniwill un255 Battery

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s