Scott Hather2



I've been using ClickOnce for about year now (and regretting it), here my latest problem.

I've deployed my app on about 20 PCs, and they working fine apart from one, it won't update to the latest version, it gets to about 25% and then says it can't continue, the details suggest for one of the DLL files: The manifest may not be valid or the file could not be opened. Once again, this does not happen on the other PCs.

Heres what I've done so far:

uninstalled completely, deleted the cache (app folders in the users profile), ran mage.exe -cc to make sure, but still no change.

It also says the xxxxxx.dll is not a valid portable Executable (PE) file...but it seems to be on the other PCs

So, before I format the hard drive and re-install windows, is there another step I can take to resolve this problem

Maybe a registry entry I can delete.

Thanks in advance,

Scott




Re: CliickOnce : Manifest may not be valid

Eric Knox - MSFT


When this happens, the steps I've seen recommended are:

1. Try uninstalling the application and reinstalling it. [you did that]

2. Try running: mage -cc [you did that]

3. Delete the ClickOnce application store [you did part of this]

a. Make sure the DFSVC.EXE process isnĄ¯t running ¨C if it is, try killing the process
b. Delete the application store folder %userprofile%\Local Settings\Apps
c. Delete the folder %userprofile%\Local Settings\Apps
d. Delete HKCU\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment

Please note that I only added steps #1 and #2 for other folks reading this thread -- I realize that you've already tried these. I believe that #3 should only be used after #1 and #2 are not successful.

Would you try #3 and let me know if it helps resolve the problem on this one machine

hth,

e-






Re: CliickOnce : Manifest may not be valid

Scott Hather2


Thanks Eric,
Step 3.d. seem to do the trick.

I'd noticed the "SideBySide" (under Deployment) key before, but was reluctant to just blindly delete it.

Many thanks,
Scott






Re: CliickOnce : Manifest may not be valid

DavideB

I just wanted to let you know that it happened to us on a couple of client computers just today. We solved it following your instructions.

We distributed our app via ClickOnce for the last 8 months with no problem (like this) and this is the first new site install of the month. Is it something related to a recent Windows update

I find it really hard, to say the least, to have to manually operate on the remote client machines to solve a problem no end-user would be able to approach. This is even more true when you consider we are using ClickOnce to enable distribution to a high number of clients with a nearly zero impact.






Re: CliickOnce : Manifest may not be valid

Rikard Pavelic

Hi!
I've just got that error
File {0} is not a valid Portable Executable (PE) file.
for my app which was working fine until now.

I tried all this steps and nothing worked.

I also checked for
  • Run components not signed with Authenticode
  • Run components signed with with Authenticode
and they were allowed.

Is there anything else I can try

Thanks