Solved

Update KB2742596 succeeds but causes custom application to crash

Posted on 2013-02-04
8
1,145 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 91

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 91

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
 
LVL 91

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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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 91

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 91

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

930 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now