Solved

Corrupt VB.net ClickOnce Deployment

Posted on 2010-11-17
4
729 Views
Last Modified: 2012-05-10
I have a VB.NET (Built in VS 2008 SP1) ClickOnce Deployment.   I am no expert in the ClickOnce technology, but have been able to successfully deploy 1 application on our internal network to about 100 machines.

We recently had an issue where one of the published manifests (I think) on the server was accidentally opened (in Notepad) by someone which broke the signing/security.   Then, every time a client ran the application (to get the auto-update) many errors occurred (which I did not save unfortunately).  

Eventually, I restored from backup the network setup files to the server and that 'fixed' the issue.

Does anyone have an explanation of the role of these manifests in the application:

1)  company.application
2)  company.exe.config
3)  company.exe.manifest

I am guessing it is a no-no to edit these files directly - which is what caused the original problem.

What would be the procedure to Re-Deploy the application if did 'break'?

1) Uninstall the application at the client machine
2) Re-Publish a new Application to a new network location.
3) Re-install from this new publish location?

I am trying to do some disaster preparedness for any potential roadblocks....  I would appreciate any direction from the Experts!

Thanks.
0
Comment
Question by:browe68
  • 2
4 Comments
 
LVL 7

Expert Comment

by:EYoung
ID: 34160314
What I have done is as follows:

If the manifest is damaged, I just re-publish a new one.

If the client application is damaged or not able to update, then I uninstall it on the client machine and re-install from the Setup.exe.
0
 

Author Comment

by:browe68
ID: 34160768
Thanks EYoung.... How do you publish a new Manifest?   Just Publish the whole project?
0
 
LVL 7

Accepted Solution

by:
EYoung earned 300 total points
ID: 34161684
Yes, just publish the project again.  If that does not work, then delete the click-once folder (after saving it off to another location) and re-publish the project.  This should make it think you are publishing for the first time.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 200 total points
ID: 34162609
1)  company.application
     This contains the list of files and other settings required to run the app. This is used by the ClickOnce DLL file to deploy your application(in the same way MSI files are used by Windows Installer).
2)  company.exe.config
     This is the configuration file which stores the configuration of your program. You can also use this to store any app settings (Settings tab on Project properties).
3)  company.exe.manifest
     http://msdn.microsoft.com/en-us/library/aa374191%28VS.85%29.aspx
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question