Click here to Skip to main content
15,885,908 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: status bar color Pin
Jeff Martin4-May-04 5:46
Jeff Martin4-May-04 5:46 
Generalmultiline column headers in a windows forms datagrid Pin
ricardojb1-May-04 15:06
ricardojb1-May-04 15:06 
GeneralWeb Service From Java Pin
Member 1697730-Apr-04 19:32
Member 1697730-Apr-04 19:32 
GeneralRe: Web Service From Java Pin
Colin Angus Mackay3-May-04 0:07
Colin Angus Mackay3-May-04 0:07 
GeneralRe: Web Service From Java Pin
ian mariano13-May-04 18:35
ian mariano13-May-04 18:35 
GeneralBack to the beginning Pin
RickZ28-Apr-04 18:22
RickZ28-Apr-04 18:22 
GeneralSystem.EntryPointNotFoundException Pin
taylo28-Apr-04 5:01
taylo28-Apr-04 5:01 
GeneralRe: System.EntryPointNotFoundException Pin
Mike Dimmick28-Apr-04 6:19
Mike Dimmick28-Apr-04 6:19 
When using P/Invokes, the Framework simply uses the Windows LoadLibraryEx function to load the library. You're therefore constrained by the DLL search order used by LoadLibrary.

I'm not sure exactly whether or when the Framework calls FreeLibrary. From my experience, I don't think it does, except possibly when unloading an AppDomain.

At a guess, I'd say your live server is running Windows 2000 and has a security.dll somewhere on the system - possibly in another virtual directory. When your application starts up, the ASPNET_WP worker process creates an AppDomain for your application. If somehow the current directory for the process is a directory which contains a security.dll, that will get loaded rather than the system's version, because the current directory appears before the system directory on Windows 2000. This problem will also occur on Windows XP before SP1. The default for XP SP1 and Windows Server 2003 is for the system directory to be searched before the current directory, but this can be altered by setting HKLM\System\CurrentControlSet\Control\Session Manager\SafeDllSearchMode to 0.

I think you could kludge this by P/Invoking the LoadLibrary function to explicitly load security.dll from the Windows directory. If you pass a path to LoadLibrary, that version will be loaded. Subsequently, any use of LoadLibrary without supplying the path information (as P/Invoke does) will use the version that's already loaded.

If you're going to do this - and I make no guarantees it will work - it probably needs to go in global.asax in an override of HttpApplication.Init.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: System.EntryPointNotFoundException Pin
taylo28-Apr-04 6:33
taylo28-Apr-04 6:33 
GeneralRe: System.EntryPointNotFoundException Pin
Mike Dimmick28-Apr-04 7:22
Mike Dimmick28-Apr-04 7:22 
GeneralRe: System.EntryPointNotFoundException Pin
taylo28-Apr-04 8:18
taylo28-Apr-04 8:18 
GeneralRe: System.EntryPointNotFoundException Pin
taylo3-May-04 9:52
taylo3-May-04 9:52 
GeneralUsing System.Data.SqlClient in MSDE install. Pin
ProffK28-Apr-04 0:59
ProffK28-Apr-04 0:59 
Generalword and power point support in .net Pin
seemeen27-Apr-04 20:47
seemeen27-Apr-04 20:47 
GeneralRe: word and power point support in .net Pin
Mike Ellison3-May-04 5:34
Mike Ellison3-May-04 5:34 
GeneralRe: word and power point support in .net Pin
seemeen4-May-04 20:38
seemeen4-May-04 20:38 
GeneralRe: word and power point support in .net Pin
Mike Ellison5-May-04 7:34
Mike Ellison5-May-04 7:34 
GeneralInstalling the DOT Net Framework Silently Pin
LeprosyLM27-Apr-04 4:00
LeprosyLM27-Apr-04 4:00 
GeneralDetermine Versions required in GAC for a particular Application Pin
Paul Farry26-Apr-04 21:26
professionalPaul Farry26-Apr-04 21:26 
GeneralHighlight Treeview Node Pin
Sreepathi26-Apr-04 19:22
Sreepathi26-Apr-04 19:22 
GeneralChecking for Installed Components/Libraries Pin
swcrissman26-Apr-04 7:32
swcrissman26-Apr-04 7:32 
Generalutf8 to unicode conversion.. Pin
Maverick25-Apr-04 23:24
Maverick25-Apr-04 23:24 
GeneralRe: utf8 to unicode conversion.. Pin
Mike Dimmick26-Apr-04 0:53
Mike Dimmick26-Apr-04 0:53 
Generaldates reminder from database Pin
kings_125-Apr-04 13:32
kings_125-Apr-04 13:32 
GeneralVisual Studio Service Packs Pin
Kevin McFarlane21-Apr-04 2:03
Kevin McFarlane21-Apr-04 2:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.