How to deal with files with a name longer than 259 characters?

.NET 4.6.2 Solution Use the \\?\C:\Verrrrrrrrrrrry long path syntax as described here. .NET Core Solution It just works because the framework adds the long path syntax for you. Pre .NET 4.6.2 Solution Also use the long path syntax and the Unicode version of the Win32 API function with P/Invoke. From Naming Files, Paths, and Namespaces: … Read more

Unable to load DLL (Module could not be found HRESULT: 0x8007007E)

From what I remember on Windows the search order for a dll is: Current Directory System folder, C:\windows\system32 or c:\windows\SysWOW64 (for 32-bit process on 64-bit box). Reading from the Path environment variable In addition I’d check the dependencies of the DLL, the dependency walker provided with Visual Studio can help you out here, it can … Read more

Google Chrome accessible tree cache issue with UI Automation

Scrolling in simple pages is optimized to not require computation from the renderer. Only the compositor and the GPU are needed to scroll therefore the render tree which is only updated from the renderer is still the same. Requiring the renderer to traverse the DOM and update the Accessibility tree during a scroll runs contrary … Read more

“An attempt was made to load a program with an incorrect format” even when the platforms are the same

If you try to run 32-bit applications on IIS 7 (and/or 64-bit OS machine), you will get the same error. So, from the IIS 7, right click on the applications’ application pool and go to “advanced settings” and change “Enable 32-Bit Applications” to “TRUE”. Restart your website and it should work.