Strange GUID Error

Hi,

I've had this pop up on two separate computers now, so I thought I should try to track down the cause.

Background: We have an app that uses the WPF Automatic Updater component, and it also uses TurboActivate. This has been running for months with no problems. Also, we haven't published an update for several weeks.

The Symptoms: Run the app, but it doesn't come up normally. It comes up, instead, minimized for a moment, then closes and jumps directly to wyUpdate and starts performing an update. (Keep in mind, no update was published.) The "update" appears to go just fine. But, when you launch the app again, the following exception is thrown:

The version GUID doesn't match that of the product details file. Make sure you set the GUID using TurboActivate. Version GUID.

Simply replacing TurboActivate.dat with a "good" version (the version that was installed) clears the problem right up. However, this doesn't explain: a) How/why this happened in the first place, or; b) How we can prevent it from happening.

At this point, like I said, we're just talking about 2 machines out of hundreds, but it happened to both machines within a few minutes of each other. These machines are located in separate cities, installed the app months ago and haven't updated anything recently, and really have nothing in common except for this app. I'm not comfortable chalking it up to coincidence.

Any ideas?

-Brent

Hey Brent,

Any chance I can see the corrupt TurboActivate.dat? Send it to wyatt@wyday.com

TurboActivate only reads that file. It never writes to it (it never needs to). Also, if you were to update TurboActivate.dat as part of your updates, and if the update failed for whatever reason, wyUpdate would rollback all files & registry to the previous working version.

That's a long way of saying I have no idea what happened. None of our products modify that file.

Did you ask the user if they were touching the file? Were any other files corrupted?

Hi

I do also have some problems with my GUID.When I install my application on a NEW machine, the following exception is thrown when accessing anyof the TurboActivate methods like UseTrial, IsActivated,....:

System.BadImageFormatException: Es wurde versucht, eine Datei mit einem falschen Format zu laden. (Ausnahme von HRESULT: 0x8007000B) bei TurboActivate.Native.UseTrial(String versionGUID)

(Wrong Format Exception)....in TurboActivate.cs, Line 447

I did check the Version GUID with the website and also downloaded the .dat file again.the GUID in my app is also set before calling any methods or properties of TurboActivate.

i hope you can help me

cheerschris

Hey Chris,

This has nothing to do with the GUID. This is happening because your app is running as a 64-bit process, while the TurboActivate.dll you have included is for 32-bit processes. If you're making a .NET app, the solution is to change your app to always run as a 32-bit process:

[attachment=0]x86.png[/attachment]

Or, if you want to run your app as AnyCPU, when you deploy your app you must deploy either the x86 or x64 version of TurboActivate depending on the platform. But it's just easier to set the Platform type to "x86".

Tell me if this helps.

yeah that worked.

amazing, thank you very very much.

chris