Is the hotfix available for .Net version 1.1 only, or for both 1.0 and 1.1?  It 
seems that you read the docn for, and installed, a hotfix for 1.1.  Installing 
the updated version mentioned in the hotfix docn (1.1.4322.2327) would not 
update the 1.0 copy of system.windows.forms.dll.  Remember that you can have 
both 1.0 and 1.1 on the system at the same time.  If your app wants 1.1 but 
you're getting 1.0 when both are there, that's a different problem.  (Did you 
find the 1.0.5000.0 version being loaded by your app?)

If you can't get the same hotfix for 1.0, it's probably time to make sure that 
you require 1.1 -- for that, you can just check the assembly's version info.  
(There is a question of what you should do if the assembly is 
1.1.4322.more-than-2327 -- that could well be a version that has a different 
hotfix and doesn't include the one you require.  I think you should warn the 
user; it's an unlikely scenario, I'd think -- unless your clients are 
developers too.)

The best solution would be to have an executable test that produces different 
results (without causing a hang/crash, of course, if that's possible) based on 
whether the hotfix is in place.  Then you would just run the test; after all, 
if they have [the never-will-exist version] 1.2, nothing else you can do will 
determine (with certainty) whether the fix is in there.

Good luck...

At 09:21 AM 2/22/2006, James Berry wrote
>Our application requires a .net hotfix to be in place to avoid a
>particular problem in the windows forms namespace.
>
>We would like to put a warning in the system alerting users if the hot
>fix has not been installed, however it appears that the assembly version
>for the system.windows.forms assembly is still 1.0.5000.0
>
>Is there any way to tell programmatically whether the
>system.windows.forms.dll file has had any hot fixes applied? And if so,
>which ones?
>
>The KB article describing the hotfix indicates that the file attributes
>will have been updated. Perhaps this is the only way to know?  In which
>case, how can you read the appropriate details in an installation
>independent way?
>
>"The English version of this hotfix has the file attributes (or later
>file attributes) that are listed in the following table. The dates and
>times for these files are listed in Coordinated Universal Time (UTC).
>When you view the file information, it is converted to local time. To
>find the difference between UTC and local time, use the Time Zone tab in
>the Date and Time tool in Control Panel.
>
>   Date         Time   Version        Size       File name
>
>----------------------------------------------------------------------
>   25-May-2005  06:03  1.1.4322.2327  2,056,192
>System.windows.forms.dll"
>
>http://support.microsoft.com/Default.aspx?kbid=899511
>
>Best wishes
>James


J. Merrill / Analytical Software Corp

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to