Why isn't an exception thrown when the right .NET framework version is not present? -


we have .net application targets .net 3.5. our clients run shared drive (very infrequently) in order have central config file location.

we have noticed if workstation accesses shared drive , runs program, not have .net 3.5 installed, nothing happens, no error, no exception, no log entry, doesn't launch.

  • why there no error message shown in windows clr?

  • is there can put @ beginning of code ensure proper error message displayed?

it not option run installer check prereqs, installing in 1 central location.

thanks.


ideally, wouldn't have have wrapper query .net version, seems program failing launch, , windows should reporting somewhere. can't believe silently fail.

try app.config;

<configuration>     <startup>         <supportedruntime version="v3.5" />     </startup> </configuration> 

i nice little dialog, so;

 --------------------------- moreverfoo.exe - .net framework initialization error --------------------------- run application, first must install 1 of following  versions of .net framework:   v3.5 contact application publisher instructions obtaining  appropriate version of .net framework. --------------------------- ok    --------------------------- 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -