Note that there are some explanatory texts on larger screens.

plurals
  1. PO.NET 4.0 upgrade error on MSI install - XML does not contain expected attribute error
    primarykey
    data
    text
    <p>We have an MSI to install windows service on client machine. Windows service calls the web service of our server to perform operations. Initially both the MSI and web service were built using .NET 2.0 framework.</p> <p>Last quarter we upgraded our systems to .NET 4.0. Though our web service is still ASP.NET i.e. asmx (and not WCF). Also I did set framework 4.0 as the prerequisite for MSI to install.</p> <p>One of our clients reported this issue:</p> <p>Client was using .NET framework 2.0, and had the older version of MSI installed in his system. When he tried to installed the .NET framework 4.0 version of the MSI, was prompted to install framework 4.0 (because of the prerequisite). Once the framework installation finished, he tried to install the MSI and got this error. Can someone please guide me to the resolution. I can provide details if needed.</p> <p><img src="https://i.stack.imgur.com/Lo7U7.jpg" alt="Error while upgrading to 4.0 MSI"></p> <p><strong>EDIT 1:</strong></p> <p>On more research, I found it is my AppName.installstate file. Uninstall removes this file, but upgrade does not do it. The file is lying in the install directory. On a closer look I can see "<a href="http://schemas.xmlsoap.org/soap/envelope/:Envelope" rel="nofollow noreferrer">http://schemas.xmlsoap.org/soap/envelope/:Envelope</a>" in the file contents. Any pointer would be greatly appreciated.</p> <p><strong>EDIT 2:</strong></p> <p>Custom action Install creates AppName.installstate file and custom action Uninstall deletes the file. In my case, I am doing an MSI upgrade which does not do anything to this file. When I compared the installstate file from 2.0 and 4.0 (both installed manually), I could see a huge difference in the XML syntax, schema and contents, the reason, I am getting serialization error. Now I need to know why AppName.installstate is not getting overwritten when upgraded. Doing lot of google, but landing nowhere. Looked at MSI install log, but no useful information.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload