Solved

Update KB2742596 succeeds but causes custom application to crash

Posted on 2013-02-04
8
1,151 Views
Last Modified: 2016-11-23
Recently our organization applied a Microsoft security update part of which was KB2742596. We have both Windows XP SP3 as well as Windows 7 systems. After the update  on Windows XP SP3 machines a custom application has stopped working. On start-up it simply crashes without any error message. I rebuilt the application with some exception handling and I get the following error message:

COM Error Occured in - Source:<EMPTY>, Description:<EMPTY>, Error: 16387

What could possibly cause this error? I also have to mention the same application if started from Visual Studio in Release mode with debugging enabled and Optimization disabled does not crash (standalone version does). Also, the COM error is not descriptive enough.

Environment: Windows XP SP3 on Dell Optiplex 760. .Net 3.5. Visual Studio 2008.
0
Comment
Question by:olmuser
  • 5
  • 3
8 Comments
 
LVL 93

Expert Comment

by:John Hurst
ID: 38852195
The Microsoft Article below says it might be for .NET Framework 2. I have a Windows 7 Pro 64-bit system that has .NET Frameworks 2, 3, and 4 and all versions in between. That update is not on my system and my system is fully up to date not calling for any updates.

http://www.microsoft.com/en-ca/download/details.aspx?id=36275

Can you try rolling back the update?  

... Thinkpads_User
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 38853371
The update you refer to is an XP update that was installed on my XP Pro Virtual Machine via Automatic Update on January 9 this year, so it is nearly a month old. It is not causing any issue on my XP machine and (as noted) is not installed on my Windows 7 machine.

XP says the update can be uninstalled via Add/Remove Programs.

Try your system again without the update and see if it makes a difference.

... Thinkpads_User
0
 
LVL 1

Author Comment

by:olmuser
ID: 38853453
@Thinkpads_User, thanks for the reply. Yes it does make a difference. Since we found the isssue we have rolled the upadate back and since then our application works. But I need to find what causes this behaviour of our application. There must be something with the way we use one of the .net 2 libraries, but its hard to say when/where the issue happens. The exception thrown is non descriptive(as above).
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 93

Expert Comment

by:John Hurst
ID: 38853466
I cannot help with your custom application because I do not now. My .NET 2 is .NET Framework 2.0 SP2 (on Windows 7).

You might download and run .NET Framework Setup Verifier to see that .NET 2 is properly installed and working.

http://cid-27e6a35d1a492af7.skydrive.live.com/self.aspx/Blog%7C_Tools/netfx%7C_setupverifier%7C_new.zip 

Then the only other thing I could suggest is to recompile your application.

... Thinkpads_User
0
 
LVL 1

Author Comment

by:olmuser
ID: 38860004
thanks for posting!
Product verification succeeds for all versions of .Net framework.
Re-compiling does not help in my case.
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 38860031
It is your application causing the problem so far as I can see. That update does not cause any other problems.

So then pending some sort of re-write of your custom application, the short/medium term solution for you at this point is to uninstall KB2742596 on any problem machines and hide the update so it will not re-install.

.... Thinkpads_User
0
 
LVL 1

Author Comment

by:olmuser
ID: 38860204
Well, that is what we ended up doing! But I am trying to find what's causing this issue, but without much luck
0
 
LVL 93

Accepted Solution

by:
John Hurst earned 500 total points
ID: 38860306
The update is a security update for .NET 2. The likelihood is that code has been strengthened to prevent strings and variables to go out of bounds. The is how bad hackers get in and this is probably what is happening.

So with XP dying and new versions of .NET coming out that won't run on XP, re-writing your application is probably all you can do.

The reason for the conflict is likely deep in your custom code and not anything Microsoft has done other than fix security.

.... Thinkpads_User
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question