Bug when running a CAB application from a UNC path

Topics: CAB & Smart Client Software Factory
Aug 24, 2006 at 7:50 AM
originally posted by: joemomberg

When I run from a UNC path, e.g. \\server\share\app\cabapp.exe, I get an exception in ModuleLoaderService.cs at line 210:
Assembly file \\\server\share\app\file:\\server\share\app\BankShell.exe was not found.

What's happening is the constructor of ModuleInfo (ModuleInfo.cs line 54) is doing

assembly.CodeBase.Replace("file:///", "")

and this bombs out on UNC paths as they look like 'file://server/share". Has anyone else experienced this problem? It's easy to fix, but my organisation (a bank) has very strict licensing rules and we're not allowed to modify the CAB code. So, is this fixed somewhere, or is there a way around it?

Sep 13, 2006 at 1:13 AM
originally posted by: joemomberg

Quick note on this, I managed to sort it uot by replacing the ModuleLoaderService - this has to be done in app.config though, and not in code, as CAB uses it to load the shell as well, so it will bomb out trying to find the Shell assembly.