Solved

Update KB2742596 succeeds but causes custom application to crash

Posted on 2013-02-04
8
1,170 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:Mydeen Yussouf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 95

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 95

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:Mydeen Yussouf
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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 95

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:Mydeen Yussouf
ID: 38860004
thanks for posting!
Product verification succeeds for all versions of .Net framework.
Re-compiling does not help in my case.
0
 
LVL 95

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:Mydeen Yussouf
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 95

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
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…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

691 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