ClickOnce deployment and customHostSpecified error

Some time ago now I wrote about doing manual ClickOnce deployment using the command line and FinalBuilder. One of my readers posted a reaction about the following error.

The customHostSpecified attribute is not supported for Windows Forms applications.

I did not have that specific error at the time, and the reader didn’t follow up on my reactions. But now I had the problem myself. Luckily I found the answer pretty fast. I used the old version of mage.exe from the .NET Framework 2.0 SDK. I needed to use the .NET Framework 4.0 SDK mage and my problem was solved. You can find that version right here:

C:Program Files (x86)Microsoft SDKsWindowsv7.0ABinNETFX 4.0 Toolsmage.exe

You may also like...

2 Responses

  1. Ido Ran says:

    Thank you for the detailed solution,
    The error message did not even point me to think about mage.exe version problems.

    Thanks and have a nice day,

  2. Eric says:

    Ok, what do I do if I get this error message AND I’m using Mage 4.0?

Leave a Reply

Your email address will not be published. Required fields are marked *