1

In Visual Studio I created a C# executable that loads a clr library which then calls loadlibrary on a 64bit native dll an internal exception message box is shown. If I change the executable to be clr and set advanced option Randomized Base Address to No (/DynamicBase:NO) on the exe project, it loads fine. How to I get a native .net exe to not use ASLR?? Furthermore, how do I get this scenario working under IIS? -Thanks

Cod Monkey
  • 11
  • 1

1 Answers1

0

Found it. /HIGHENTROPYVA is enabled on native .net exes by default. using link -edit /HIGHENTROPYVA:no test.exe removed it and fixed the problem.

Cod Monkey
  • 11
  • 1