System.web.mvc.dll has incorrect file version

Mark Griffin 1 Reputation point
2022-05-27T21:22:19.06+00:00

I noticed that after running an upgrade of my application, certain dlls were missing. Looking in the logs for the setup kit I got the same error for each missing dll.

MSI (c) (90:98) [16:42:57:429]: Disallowing installation of component: {D4CB4EE4-66D3-46EE-8D47-6C1B551A6850} since the same component with higher versioned keyfile exists

Looking into this more, I noticed a discrepancy between the product version and file version of all affected dlls. For system.web.mvc.dll the product version was "5.2.8-34876 (005f94e123afdf3111f23f0b982880f8db9b10a7)" and the file version removed the '8-' and just became "5.2.34876". I think this is causing wix to identify these dlls as being a lower version than the previous version of 5.2.7. I'm getting these dlls from nuget, but I haven't found anyone else talking about having a similar issue. Has anyone seen this before?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,249 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
    2022-05-30T02:34:54.98+00:00

    Hi @Mark Griffin ,
    The updater updated its files, but didn't tell the MSI (it didn't update the MSI, which is incorrect). The new MSI thought there was something newer on the machine and chose not to install its files, but the old package removed the files during the upgrade (it didn't notice the version update). Since the new installer chooses not to install the files, you end up with nothing...until it's fixed.

    To work around the problem, you need to move your RemoveExistingProducts action later. If you're using the MajorUpgrade element then Schedule='afterInstallExecute' or Schedule='afterInstallFinalize' should do the trick.
    Or you can try setting the REINSTALLMODE property to "amus" in the wxs file.<Property Id="REINSTALLMODE" Value="amus" />

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.